stream_event.h

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: include/ntapi/stream_event.h File Reference
stream_event.h File Reference

Detailed Description

This header file contains the STREAMTYPE_EVENT interface

Definition in file stream_event.h.

#include "ntapi/commontypes.h"
#include "ntapi/stream_config.h"

Go to the source code of this file.

Functions

int NT_EventOpen (NtEventStream_t *hStream, const char *name, uint32_t eventMask)
 Opens an event stream and initializes event queues, etc. More...
 
int NT_EventRead (NtEventStream_t hStream, NtEvent_t *event, uint32_t timeout)
 Reads an event from an event queue. More...
 
int NT_EventWrite (NtEventStream_t hStream, enum NtEventRaise_e eventId)
 
int NT_EventClose (NtEventStream_t hStream)
 Releases the stream and clears event queues, etc. More...
 

Data Structures

struct  NtEventPort_s
 
struct  NtEventPtpPort_s
 
struct  NtSDRAMFillLevel_s
 
struct  NtSDRAMFillLevel_s::NtHostBuffer_s
 
struct  NtSDRAMFillLevel_s::NtStream_s
 
struct  NtEventSensor_s
 
struct  NtEventTimeSync_s
 
struct  NtEventTimeSyncStateMachine_s
 
struct  NtEvent_s
 
union  NtEvent_s::NtEvent_u
 

Macros

#define MAX_SDRAM_FILL_LEVEL_STREAMS   256
 

Typedefs

typedef struct NtEvent_s NtEvent_t
 
typedef struct NtEventStream_s * NtEventStream_t
 

Enumerations

enum  NtEventSource_e {
  NT_EVENT_SOURCE_NONE = 0, NT_EVENT_SOURCE_PORT = (1 << 0), NT_EVENT_SOURCE_SENSOR = (1 << 1), NT_EVENT_SOURCE_CONFIG = (1 << 2),
  NT_EVENT_SOURCE_TIMESYNC = (1 << 3), NT_EVENT_SOURCE_SDRAM_FILL_LEVEL = (1 << 4), NT_EVENT_SOURCE_PTP_PORT = (1 << 5), NT_EVENT_SOURCE_TIMESYNC_STATE_MACHINE = (1 << 6),
  NT_EVENT_SOURCE_ALL, NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER0 = (1 << 23), NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER1 = (1 << 24), NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER2 = (1 << 25),
  NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER3 = (1 << 26), NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER4 = (1 << 27), NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER5 = (1 << 28), NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER6 = (1 << 29),
  NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ADAPTER7 = (1 << 30), NT_EVENT_LISTEN_TIMESTAMP_SAMPLE_ALL
}
 
enum  NtEventRaise_e { NT_EVENT_SAMPLE_TIMESTAMP = 1 }
 
enum  NtEventPort_e {
  NT_EVENT_PORT_LINK_UP, NT_EVENT_PORT_LINK_DOWN, NT_EVENT_RXAUI_LINK_ERROR, NT_EVENT_PORT_BYPASS_ACTIVATED,
  NT_EVENT_PORT_BYPASS_DEACTIVATED, NT_EVENT_PORT_NIM_INSERTED, NT_EVENT_PORT_NIM_REMOVED
}
 
enum  NtEventSensor_e { NT_EVENT_SENSOR_ALARM_STATE_ENTRY, NT_EVENT_SENSOR_ALARM_STATE_EXIT }
 
enum  NtEventTimeSync_e { NT_EVENT_TIMESYNC_PPS_REQUEST_TIME }
 
enum  NtEventTimeSyncStateMachine_e {
  NT_EVENT_TIMESYNC_TIME_REFERENCE_LOST, NT_EVENT_TIMESYNC_TIME_REFERENCE_SELECT, NT_EVENT_TIMESYNC_TIME_REFERENCE_SELECT_FAIL, NT_EVENT_TIMESYNC_TIME_IN_SYNC,
  NT_EVENT_TIMESYNC_TIME_OUT_OF_SYNC, NT_EVENT_TIMESYNC_PTP_STATE_CHANGE, NT_EVENT_TIMESYNC_TIME_STAMP_CLOCK_SET, NT_EVENT_TIMESYNC_EXTERNAL_DEVICE_LOST_SYNC_SIGNAL,
  NT_EVENT_TIMESYNC_EXTERNAL_DEVICE_OUT_OF_SYNC, NT_EVENT_TIMESYNC_EXTERNAL_DEVICE_LOST_TIME_OF_DAY
}