NtInfoCmdSensor_s

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
struct NtInfoCmdSensor_s

NT_INFO_CMD_READ_SENSOR specific data. The group, adapterNo/portNo and grpIndex must be initialized for the relevant sensor. For example, to read sensor 2 from port 4, do the following: info.u.cmd = NT_INFO_CMD_READ_SENSOR; info.u.sensor.source = NT_SENSOR_SOURCE_PORT; info.u.sensor.sourceIndex= 4; info.u.sensor.sensorIndex = 2; NT_ReadInfo(h, &info);

Definition at line 643 of file stream_info.h.

Data Fields

enum NtSensorSource_e

source

The source of the sensor - either a port or adapter sensor. More...

uint32_t

sourceIndex

The source index - either adapter number or port number on which the sensor resides. More...

uint32_t

sensorIndex

The sensor index within the source index, for example, 2 for sensor 2 on port 4. More...

struct NtInfoSensor_s

data

The sensor data. More...

Field Documenation

enum NtSensorSource_e source

The source of the sensor - either a port or adapter sensor.

Definition at line 628 of file stream_info.h.

Referenced by GetSensorData(), and main().

uint32_t sourceIndex

The source index - either adapter number or port number on which the sensor resides.

Definition at line 645 of file stream_info.h.

Referenced by GetSensorData(), and main().

uint32_t sensorIndex

The sensor index within the source index, for example, 2 for sensor 2 on port 4.

Definition at line 646 of file stream_info.h.

Referenced by GetSensorData(), and main().

struct NtInfoSensor_s data

The sensor data.

Definition at line 646 of file stream_info.h.

Referenced by DumpSensor(), and main().