beautypg.com

Tapnamsiz, Enum type, Port_duplex_t – ADLINK aTCA-N700 User Manual

Page 20: Port_speed_t, Port_link_status_t

background image

Switch Manager API Programming Guide

20

TAPNAMSIZ

Define the maximum length of a NIC device name.

Enum Type

port_duplex_t

typedef enum port_duplex_e{

PORT_DUPLEX_FULL = 0,

PORT_DUPLEX_HALF = 1,

} port_duplex_t;

Define the codes of port duplex mode.

port_speed_t

typedef enum port_speed_e{

PORT_SPEED_10M = 10,

PORT_SPEED_100M = 100,

PORT_SPEED_1G = 1000,

PORT_SPEED_10G = 10000,

} port_speed_t;

Define the codes of port speed mode.

port_link_status_t

typedef enum port_link_status_e{ /*Heritage*/

PORT_LINK_STATUS_DOWN = 0,

PORT_LINK_STATUS_UP = 1,

PORT_LINK_STATUS_FAILED = 2,

PORT_LINK_STATUS_REMOTE_FAULT = 3,

} port_link_status_t;

Define the codes of port physical link status.