stream_config.h

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.6
Napatech Software Suite: include/ntapi/stream_config.h File Reference
stream_config.h File Reference

Detailed Description

This header file is the STREAMTYPE_CONFIG interface

Definition in file stream_config.h.

Go to the source code of this file.

Functions

int NT_ConfigOpen (NtConfigStream_t *hStream, const char *name)
 Opens a configuration stream. More...
 
int NT_ConfigClose (NtConfigStream_t hStream)
 Closes a configuration stream. More...
 
int NT_ConfigRead (NtConfigStream_t hStream, NtConfig_t *data)
 Reads data from a configuration stream. More...
 
int NT_ConfigWrite (NtConfigStream_t hStream, NtConfig_t *data)
 Writes data to a configuration stream. More...
 
int NT_NTPL (NtConfigStream_t hStream, const char *ntplBuffer, NtNtplInfo_t *info, uint32_t validate)
 Sends an NTPL line buffer to the parser. More...
 

Data Structures

struct  NtPortSettingsManual_s
 
struct  NtPortSettingsAdvertise_s
 
struct  NtPortSettings_v2_s
 
struct  NtConfigPort_v2_s
 
struct  NtConfigTimestampRead_s
 
struct  NtConfigTimestampRead_s::NtConfigTimestampReadData_s
 
struct  NtConfigTimestampWrite_s
 
struct  NtConfigTimestampWrite_s::NtConfigTimestampWriteData_s
 
struct  NtConfigTimesyncWrite_s
 
struct  NtConfigTimesyncWrite_s::NtConfigTimesyncWriteData_s
 
struct  NtConfigTimesyncReset_s
 
struct  NtConfigPtpImplData_s
 
struct  NtConfigPtpImpl_s
 
struct  NtConfigSensor_s
 
struct  NtConfigSensor_s::NtConfigSensorData_s
 
struct  NtConfigGlobalSyncWrite_s
 
struct  NtConfigGlobalSyncWrite_s::NtConfigWriteGlobalSyncData_s
 
struct  NtConfigBypassData_s
 
struct  NtConfigBypass_s
 
union  NtConfigBypass_s::NtConfigBypassParam_u
 
struct  NtConfigBypassWatchdogTimerData_s
 
struct  NtConfigBypassWatchdogTimer_s
 
union  NtConfigBypassWatchdogTimer_s::NtConfigBypassWatchdogTimerParam_u
 
struct  NtConfigBypassWatchdogTimeoutData_s
 
struct  NtConfigBypassWatchdogTimeout_s
 
union  NtConfigBypassWatchdogTimeout_s::NtConfigBypassWatchdogTimeoutParam_u
 
struct  NtConfigAdapterMonitor_s
 
struct  NtConfigTransmitOnTimestamp_s
 
struct  NtConfigTransmitOnTimestamp_s::NtConfigTransmitOnTimestampData_s
 
struct  NtNimRawData_s
 
struct  NtConfigNimAccess_s
 
union  NtConfigNimAccess_s::NtNimAccess_u
 
struct  NtConfigPtpPortData_s
 
struct  NtConfigPtpPort_s
 
struct  NtNtplParserErrorData_s
 
struct  NtNtplInfo_s
 
union  NtNtplInfo_s::NtplReturnData_u
 
struct  NtVpd_s
 
union  NtVpd_s::data_u
 
struct  NtConfig_s
 
union  NtConfig_s::NtConfig_u
 

Macros

#define NT_MAX_NTPL_BUFFER_SIZE   (4*1024)
 NTPL maximum buffer size. More...
 
#define VPD_USER_SIZE   400
 

Typedefs

typedef struct NtConfigStream_s * NtConfigStream_t
 
typedef struct NtConfigPtpImplData_s NtConfigPtpImplData_t
 
typedef struct NtConfigBypassData_s NtConfigBypassData_t
 
typedef struct NtConfigBypassWatchdogTimerData_s NtConfigBypassWatchdogTimerData_t
 
typedef struct NtConfigBypassWatchdogTimeoutData_s NtConfigBypassWatchdogTimeoutData_t
 
typedef struct NtConfigNimAccess_sNtConfigNimAccess_p
 
typedef struct NtConfigPtpPortData_s NtConfigPtpPortData_t
 
typedef struct NtConfigPtpPort_s NtConfigPtpPort_t
 
typedef struct NtNtplInfo_s NtNtplInfo_t
 
typedef struct NtVpd_s NtVpd_t
 
typedef struct NtConfig_s NtConfig_t
 

Enumerations

enum  NtConfigParm_e {
  NT_CONFIG_PARM_UNKNOWN =0, NT_CONFIG_PARM_PORT_COMPAT_0 = 1, NT_CONFIG_PARM_ADAPTER_TIMESTAMP, NT_CONFIG_PARM_ADAPTER_TIMESYNC,
  NT_CONFIG_PARM_SENSOR, NT_CONFIG_PARM_RESERVED_0, NT_CONFIG_PARM_BYPASS_ADAPTER, NT_CONFIG_PARM_BYPASS_PORT,
  NT_CONFIG_PARM_BYPASS_ADAPTER_WATCHDOG_TIMEOUT, NT_CONFIG_PARM_BYPASS_PORT_WATCHDOG_TIMEOUT, NT_CONFIG_PARM_BYPASS_ADAPTER_WATCHDOG_TIMER, NT_CONFIG_PARM_BYPASS_PORT_WATCHDOG_TIMER,
  NT_CONFIG_PARM_ADAPTER_GLOBAL_SYNC, NT_CONFIG_PARM_NIM_ACCESS, NT_CONFIG_PARM_VPD, NT_CONFIG_PARM_PTP_PORT,
  NT_CONFIG_PARM_ADAPTER_TIMESYNC_RESET, NT_CONFIG_PARM_ADAPTER_PTP_IMPL_CFG, NT_CONFIG_PARM_PORT_COMPAT_1, NT_CONFIG_PARM_ADAPTER_MONITOR,
  NT_CONFIG_PARM_PORT_TRANSMIT_ON_TIMESTAMP, NT_CONFIG_PARM_PORT_SETTINGS_V2
}
 
enum  NtTimeSyncReset_e {
  NT_TIMESYNC_RESET_INVALID = 0, NT_TIMESYNC_RESET_COMPAT_0, NT_TIMESYNC_RESET_PTP_PORT_STAT, NT_TIMESYNC_RESET_HARD_RESET_TIME_TO_REF,
  NT_TIMESYNC_RESET_TS_STATISTICS
}
 
enum  NtNimAccessType_e { NT_NIM_READ_DATA_LIN }
 
enum  NtNTPLCommands_e { NT_NTPL_PARSER_VALIDATE_NORMAL, NT_NTPL_PARSER_VALIDATE_PARSE_ONLY }
 
enum  NtNTPLReturnType_e { NT_NTPL_PARSER_NORMAL, NT_NTPL_PARSER_ERROR_DATA }
 
enum  NtVpdCommands_e { NT_VPD_USER_DATA }
 

Macro Definition Documentation

#define NT_MAX_NTPL_BUFFER_SIZE   (4*1024)

NTPL maximum buffer size.

Definition at line 530 of file stream_config.h.