stream_info.h

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
Napatech Software Suite: include/ntapi/stream_info.h File Reference
stream_info.h File Reference

Go to the source code of this file.

Data Structures

struct  NtInfoSystem_s
 
struct  NtversionAvr_s
 
union  Ntpciid_u
 
struct  Ntpciid_u::Ntpciid_s
 
union  Ntfpgaid_u
 
struct  NtInfoWis_v1_s
 
struct  NtInfoGlobalSync_s
 
struct  NtInfoSDRAMInfo_s
 
struct  NtInfoPCIeInfo_s
 
struct  NtInfoBondingInfo_t
 
struct  NtInfoAdapter_v6_s
 
union  NtInfoAdapter_v6_s::Ntbusid_v6_u
 
struct  NtInfoAdapter_v6_s::Ntbusid_v6_u::Ntbusid_v6_s
 
struct  NtLinkCapabilities_s
 
struct  NtNIMLinkLength_s
 
struct  NtBypassPortInfo_s
 
struct  NtInfoPort_v9_s
 
struct  NtInfoSensor_s
 
struct  NtInfoStreamId_s
 
struct  NtInfoHostBuffer_v1_s
 
struct  NtInfoStreams_s
 
struct  NtInfoTimeSyncSample_s
 
struct  NtInfoTimeSync_v4_s
 
struct  NtInfoTimeSyncStatusExt_s
 
struct  NtInfoTimeSyncStatistics_s
 
struct  NtInfoCmdSystem_s
 
struct  NtInfoCmdAdapter_v6_s
 
struct  NtInfoCmdPort_v9_s
 
struct  NtInfoCmdSensor_s
 
struct  NtInfoCmdHostBuffer_v1_s
 
struct  NtInfoCmdStream_s
 
struct  NtInfoCmdstreamID_s
 
struct  NtInfoCmdTimeSync_v4_s
 
struct  NtInfoCmdTimeSyncStat_s
 
struct  NtInfoCmdTimeSyncStatusExt_s
 
struct  NtPTPTimestamp_s
 
struct  NtPTPPortStat_s
 
struct  NtPTPPort_s
 
struct  NtPTPclkQuality_s
 
struct  NtPTPdefaultDs_s
 
struct  NtPTPcurrentDs_s
 
struct  NtPTPparentDs_s
 
struct  NtPTPtimePropertiesDs_s
 
struct  NtPTPportDs_s
 
struct  NtPTPDataSets_s
 
struct  NtPTPImplCfg_s
 
struct  NtInfoPTP_v2_s
 
struct  NtInfoCmdPTP_v2_s
 
struct  NtInfoProductInfo_v2_s
 
struct  NtInfoReadProductInfo_v2_s
 
struct  NtInfoFilterUsage3ga_s
 
struct  NtInfoFilterUsage4ga_s
 
struct  NtInfoFilterUsage_v1_s
 
struct  NtInfoCmdFilterUsage_v1_s
 
struct  NtInfoPortPathDelay_s
 
struct  NtInfoCmdPortPathDelay_s
 
struct  NtInfoPropertyValue_s
 
struct  NtInfoProperty_s
 
struct  NtInfo_s
 
union  NtInfo_s::NtInfo_u
 

Macros

#define NT_TIME_SYNC_CLOCK_RATE_ADJ_UNKNOWN   1000000000
 Used for timeSyncClockRateAdjustment and timeSyncOSClockRateAdjustment parameters to indicate that no clock rate adjustment is retrievable. More...
 
#define NT_PATH_DELAY_RX_DIR   0
 
#define NT_PATH_DELAY_TX_DIR   1
 

Typedefs

typedef struct NtInfoSensor_s NtInfoSensor_t
 
typedef struct NtInfoSensor_sNtInfoSensor_p
 
typedef struct NtInfoProductInfo_v2_s NtInfoProductInfo_v2_t
 
typedef struct NtInfoFilterUsage3ga_s NtInfoFilterUsage3ga_t
 
typedef struct NtInfoFilterUsage4ga_s NtInfoFilterUsage4ga_t
 
typedef struct NtInfoFilterUsage_v1_s NtInfoFilterUsage_v1_t
 
typedef struct NtInfoPortPathDelay_s NtInfoPortPathDelayInfo_t
 
typedef struct NtInfoPropertyValue_s NtInfoPropertyValue_t
 
typedef struct NtInfo_s NtInfo_t
 
typedef struct NtInfoStream_s * NtInfoStream_t
 

Enumerations

enum  NtInfoCmd_e {
  NT_INFO_CMD_READ_UNKNOWN =0, NT_INFO_CMD_READ_SYSTEM, NT_INFO_CMD_READ_COMPAT_0, NT_INFO_CMD_READ_COMPAT_1,
  NT_INFO_CMD_READ_SENSOR, NT_INFO_CMD_READ_COMPAT_3, NT_INFO_CMD_READ_STREAM, NT_INFO_CMD_READ_COMPAT_2,
  NT_INFO_CMD_READ_COMPAT_5, NT_INFO_CMD_READ_COMPAT_4, NT_INFO_CMD_READ_COMPAT_6, NT_INFO_CMD_READ_HOSTBUFFER_V1,
  NT_INFO_CMD_READ_COMPAT_9, NT_INFO_CMD_READ_STREAMID, NT_INFO_CMD_READ_COMPAT_10, NT_INFO_CMD_READ_TIMESYNC_STATUS_EXT,
  NT_INFO_CMD_READ_COMPAT_7, NT_INFO_CMD_READ_COMPAT_8, NT_INFO_CMD_READ_COMPAT_19, NT_INFO_CMD_READ_COMPAT_11,
  NT_INFO_CMD_READ_COMPAT_12, NT_INFO_CMD_READ_COMPAT_15, NT_INFO_CMD_READ_COMPAT_23, NT_INFO_CMD_READ_COMPAT_21,
  NT_INFO_CMD_READ_PATH_DELAY, NT_INFO_CMD_READ_COMPAT_13, NT_INFO_CMD_READ_COMPAT_14, NT_INFO_CMD_READ_COMPAT_17,
  NT_INFO_CMD_READ_COMPAT_16, NT_INFO_CMD_READ_TIMESYNC_STAT, NT_INFO_CMD_READ_PTP_V2, NT_INFO_CMD_READ_COMPAT_18,
  NT_INFO_CMD_READ_ADAPTER_V6, NT_INFO_CMD_READ_COMPAT_20, NT_INFO_CMD_READ_COMPAT_22, NT_INFO_CMD_READ_COMPAT_24,
  NT_INFO_CMD_READ_TIMESYNC_V4, NT_INFO_CMD_READ_PRODUCT_INFO_V2, NT_INFO_CMD_READ_FILTERUSAGE_V1, NT_INFO_CMD_READ_PROPERTY,
  NT_INFO_CMD_READ_PORT_V9
}
 
enum  { NT_AVR_NOT_VALID = 0, NT_AVR_VALID_2 = 1, NT_AVR_VALID_1 = 2 }
 
enum  NtPortFeatureMask_e {
  NT_PORT_FEATURE_DMA_TRANSMIT =1LL<<0, NT_PORT_FEATURE_HARDSLICE_AT_MAXFRAMESIZE =1LL<<1, NT_PORT_FEATURE_IPV4_TX_CHECKSUM_CALC =1LL<<2, NT_PORT_FEATURE_UDP_TX_CHECKSUM_CALC =1LL<<3,
  NT_PORT_FEATURE_TCP_TX_CHECKSUM_CALC =1LL<<4, NT_PORT_FEATURE_INJECT_TX_TS =1LL<<5, NT_PORT_FEATURE_TIMED_TX =1LL<<6, NT_PORT_FEATURE_BYPASS =1LL<<7,
  NT_PORT_FEATURE_DISABLE =1LL<<8, NT_PORT_FEATURE_64BIT_TIMESTAMP =1LL<<9, NT_PORT_FEATURE_RX_ONLY =1LL<<10, NT_PORT_FEATURE_TX_REPLICATE =1LL<<11,
  NT_PORT_FEATURE_FCS_TX_CHECKSUM_CALC =1LL<<12
}
 
enum  NtNimIdentifier_e {
  NT_NIM_UNKNOWN = 0x00, NT_NIM_GBIC = 0x01, NT_NIM_FIXED = 0x02, NT_NIM_SFP_SFP_PLUS = 0x03,
  NT_NIM_300_PIN_XBI = 0x04, NT_NIM_XEN_PAK = 0x05, NT_NIM_XFP = 0x06, NT_NIM_XFF = 0x07,
  NT_NIM_XFP_E = 0x08, NT_NIM_XPAK = 0x09, NT_NIM_X2 = 0x0A, NT_NIM_DWDM = 0x0B,
  NT_NIM_QSFP = 0x0C, NT_NIM_QSFP_PLUS = 0x0D, NT_NIM_QSFP28 = 0x11, NT_NIM_CFP4 = 0x12
}
 
enum  NtPortStatusMask_e { NT_PORT_IFG_BYTE_MODE =1LL<<0 }
 
enum  NtTsStatSupport_e { NT_TIMESYNC_STATISTICS_NO_SUPPORT = 0, NT_TIMESYNC_STATISTICS_PTP_ONLY = 1, NT_TIMESYNC_STATISTICS_FULL_SUPPORT = 2 }
 
enum  NtPTPNetProt_e {
  NT_PTP_NETW_PROTOCOL_NA = 0, NT_PTP_NETW_PROTOCOL_IPV4_UDP = 1, NT_PTP_NETW_PROTOCOL_IPV6_UDP = 2, NT_PTP_NETW_PROTOCOL_IEEE802_3 = 3,
  NT_PTP_NETW_PROTOCOL_DEVICENET = 4, NT_PTP_NETW_PROTOCOL_CONTROLNET = 5, NT_PTP_NETW_PROTOCOL_PROFINET = 6
}
 
enum  NtPTPFilter_e { NT_PTP_FILTER_NONE = 0, NT_PTP_FILTER_MIN = 1, NT_PTP_FILTER_PDV = 2 }
 
enum  NtPTPTimeSource_e {
  NT_PTP_TIMESOURCE_NA = 0, NT_PTP_TIMESOURCE_ATOMIC = 0x10, NT_PTP_TIMESOURCE_GPS = 0x20, NT_PTP_TIMESOURCE_TER_RADIO = 0x30,
  NT_PTP_TIMESOURCE_PTP = 0x40, NT_PTP_TIMESOURCE_NTP = 0x50, NT_PTP_TIMESOURCE_HAND_SET = 0x60, NT_PTP_TIMESOURCE_OTHER = 0x90,
  NT_PTP_TIMESOURCE_OSCILLATOR = 0xA0
}
 
enum  NtPTPDelayMech_e { NT_PTP_DELAY_MECHANISM_NA = 0x00, NT_PTP_DELAY_MECHANISM_E2E = 0x01, NT_PTP_DELAY_MECHANISM_P2P = 0x02, NT_PTP_DELAY_MECHANISM_DISABLED = 0xFE }
 
enum  NtPTPClockType_e {
  NT_PTP_CLOCK_TYPE_ORDINARY = 0, NT_PTP_CLOCK_TYPE_BOUNDARY = 1, NT_PTP_CLOCK_TYPE_P2P_TRANSPARENT = 2, NT_PTP_CLOCK_TYPE_E2E_TRANSPARENT = 3,
  NT_PTP_CLOCK_TYPE_MANAGEMENT = 4
}
 
enum  NtProductInfoType_e {
  NT_PRODUCT_INFO_TYPE_NONE =0, NT_PRODUCT_INFO_TYPE_GEN1, NT_PRODUCT_INFO_TYPE_GEN2, NT_PRODUCT_INFO_TYPE_NTBPE,
  NT_PRODUCT_INFO_TYPE_GEN3
}
 
enum  NtPathDelayStatus_e { NT_PATH_DELAY_SUCCESS = 0x0, NT_PATH_DELAY_NOT_SUPPORTED = 0x1, NT_PATH_DELAY_LINK_DOWN = 0x2, NT_PATH_DELAY_UNKNOWN_NIM = 0x4 }
 
enum  NtPropertyType_e { NT_PROPERTY_TYPE_INT = 0, NT_PROPERTY_TYPE_UINT, NT_PROPERTY_TYPE_STRING }
 

Functions

int NT_InfoOpen (NtInfoStream_t *hStream, const char *name)
 Opens an info stream. More...
 
int NT_InfoRead (NtInfoStream_t hStream, NtInfo_t *info)
 Reads data from an info stream. More...
 
int NT_InfoClose (NtInfoStream_t hStream)
 Closes an info stream. More...
 

Detailed Description

This is the header file of the STREAMTYPE_INFO interface.

Definition in file stream_info.h.