Software Library API naibrd 1.62
See all documentation at naii.docs.com
nai.h
Go to the documentation of this file.
1
4typedef enum nai_status
5{
60
64
65 /* Gen4 Error codes */
66 NAI_ERROR_ETHER_GENERAL_GEN4 = -0x8000, /* Error- General */
67 NAI_ERROR_ETHER_INVALID_MSG_PREAMBLE_GEN4 = -0x8001, /* Error- Invalid Msg Preamble */
68 NAI_ERROR_ETHER_INVALID_MSG_SEQ_NUM_GEN4 = -0x8002, /* Error- Invalid Msg Sequence Number */
69 NAI_ERROR_ETHER_INVALID_MSG_TYPECODE_GEN4 = -0x8003, /* Error- Invalid Msg Typecode */
70 NAI_ERROR_ETHER_INVALID_MSG_LENGTH_GEN4 = -0x8004, /* Error- Invalid Msg Length */
71 NAI_ERROR_ETHER_INVALID_MSG_POSTAMBLE_GEN4 = -0x8005, /* Error- Invalid Msg Postamble*/
72 NAI_ERROR_ETHER_INVALID_PAYLOAD_SIZE_GEN4 = -0x8006, /* Error- Invalid Payload Size */
73 NAI_ERROR_ETHER_COMMAND_NOT_IMPLEMENTED_GEN4 = -0x8007, /* Error- Command not implemented */
74 NAI_ERROR_ETHER_INVALID_CONFIG_TYPECODE_GEN4 = -0x8010, /* Error- Invalid Config Typecode*/
75 NAI_ERROR_ETHER_INVALID_OPERATION_TYPECODE_GEN4 = -0x8011, /* Error- Invalid Operation Typecode*/
76 NAI_ERROR_ETHER_INVALID_MB_INFOTYPE_GEN4 = -0x8012, /* Error- Invalid MB InfoType*/
77 NAI_ERROR_ETHER_INVALID_MOD_INFOTYPE_GEN4 = -0x8013, /* Error- Invalid Module InfoType*/
78 NAI_ERROR_ETHER_INVALID_MOD_ID_GEN4 = -0x8014, /* Error- Invalid Module ID */
79 NAI_ERROR_ETHER_OPENING_EEPROM_GEN4 = -0x8015, /* Error Opening EEPROM */
80 NAI_ERROR_ETHER_READING_EEPROM_GEN4 = -0x8016, /* Error Reading EEPROM */
81 NAI_ERROR_ETHER_WRITING_EEPROM_GEN4 = -0x8017, /* Error Writing EEPROM */
82 NAI_ERROR_ETHER_INVALID_PAYLOAD_LENGTH_GEN4 = -0x8018, /* Error- Invalid Payload Length */
83 NAI_ERROR_ETHER_INFOTYPE_READONLY_GEN4 = -0x8019, /* Error- InfoType Read Only */
84 NAI_ERROR_ETHER_READING_MOD_INFO_GEN4 = -0x801A, /* Error Reading Module Info */
85 NAI_ERROR_ETHER_WRITING_MOD_INFO_GEN4 = -0x801B, /* Error Writing Module Info */
86 NAI_ERROR_ETHER_INVALID_MOD_SLOT_NUM_GEN4 = -0x801C, /* Error- Invalid Module Slot Number */
87 NAI_ERROR_ETHER_FILE_NOT_RECEIVED_GEN4 = -0x8020, /* Error- Did not receive file */
88 NAI_ERROR_ETHER_EXTRACTING_FILE_GEN4 = -0x8021, /* Error Extracting Contents */
89 NAI_ERROR_ETHER_FFMAPFILE_NOT_FOUND_GEN4 = -0x8022, /* Error- FFMapFile not found */
90 NAI_ERROR_ETHER_FFMAPFILE_INVALID_ENTRY_GEN4 = -0x8023, /* Error- FFMapFile Invalid enr */
91 NAI_ERROR_ETHER_FLASHFILE_NOT_FOUND_GEN4 = -0x8024, /* Error- FlashFile not found */
92 NAI_ERROR_ETHER_FLASHFILE_LENGTH_MISMATCH_GEN4 = -0x8025, /* Error- FlashFile Length mismatch */
93 NAI_ERROR_ETHER_FLASHFILE_CHECKSUM_MISMATCH_GEN4 = -0x8026, /* Error- FlashFile Checksum mismatch*/
94 NAI_ERROR_ETHER_FLASHFILE_WRITING_TO_FLASH_GEN4 = -0x8027, /* Error- FlashFile writing to flash*/
95 NAI_ERROR_ETHER_EXEMODE_MUST_BE_IN_CFG_MODE_GEN4 = -0x8030, /* Error- Execution Mode must be in config mode */
96 NAI_ERROR_ETHER_EXEMODE_MUST_BE_IN_OP_MODE_GEN4 = -0x8031, /* Error- Execution Mode must be in operation mode */
97 NAI_ERROR_ETHER_MODULE_LINK_DOWN_GEN4 = -0x8032, /* Error- Module link down */
98
99 NAI_ERROR_ETHER_INVALID_BLOCK_ID_GEN4 = -0x8100, /* Error- Invalid Block ID */
100 NAI_ERROR_ETHER_INVALID_TDR_ID_GEN4 = -0x8101, /* Error- Invalid TDR ID */
101 NAI_ERROR_ETHER_INVALID_IDR_ID_GEN4 = -0x8102, /* Error- Invalid IDR ID */
102 NAI_ERROR_ETHER_INVALID_REG_COUNT_GEN4 = -0x8103, /* Error- Invalid Register Count */
103 NAI_ERROR_ETHER_BLOCK_NOT_CONFIGURED_GEN4 = -0x8104, /* Error- Block Not Configured */
104 NAI_ERROR_ETHER_TDR_NOT_CONFIGURED_GEN4 = -0x8105, /* Error- TDR Not Configured */
105 NAI_ERROR_ETHER_IDR_NOT_CONFIGURED_GEN4 = -0x8106, /* Error- IDR Not Configured */
106
107 /* SERDES Errors codes */
108 NAI_ERROR_SERDES_WRONG_SLOT_NUM = -0x8201, /* Error - wrong slot number */
109 NAI_ERROR_SERDES_INVALID_SLOT_ID = -0x8202, /* Error - invalid slot ID */
110 NAI_ERROR_SERDES_UNEXPECTED_PAYLOAD_COUNT = -0x8203, /* Error - unexpected payload count */
111 NAI_ERROR_SERDES_MODULE_NOT_FOUND = -0x8204, /* Error - module not found */
112 NAI_ERROR_SERDES_MIS_ALIGNED_BYTE_ENABLE = -0x8205, /* Error - mis-aligned byte enabled */
113 NAI_ERROR_SERDES_INVALID_PARAMETER_VALUE = -0x8206, /* Error - invalid parameter value */
114 NAI_ERROR_SERDES_SYSTEM_NOT_READY = -0x8207, /* Error - system not ready */
115 NAI_ERROR_SERDES_MODULE_NOT_READY = -0x8208, /* Error - module not ready */
116 NAI_ERROR_SERDES_UNABLE_TO_ALLOCATE_MEMORY = -0x8209, /* Error - unable to allocate memory */
117 NAI_ERROR_SERDES_COMMAND_NOT_RECOGNIZED = -0x820A, /* Error - command not recognized */
118 NAI_ERROR_SERDES_TX_FIFO_NOT_EMPTY_TIMEOUT = -0x820B, /* Error - TX FIFO not empty timeout */
119 NAI_ERROR_SERDES_RX_FIFO_PKT_NOT_READY_TIMEOUT = -0x820C, /* Error - RX FIFO Packet not ready timeout */
120 NAI_ERROR_SERDES_DETECT_MODULES_TIMEOUT = -0x820D, /* Error - detect module timeout */
121 NAI_ERROR_SERDES_I2C_DEVICE_NOT_FOUND = -0x820E, /* Error - I2C device not found */
122 NAI_ERROR_SERDES_UNABLE_TO_LOCK_MUTEX = -0x820F, /* Error - unable to lock mutex */
123 NAI_ERROR_SERDES_UNABLE_TO_UNLOCK_MUTEX = -0x8210, /* Error - unable to unlock mutex */
124
138typedef uint8_t nai_intf_t;
148typedef uint32_t nai_maskreg_op_t;
uint32_t nai_maskreg_op_t
Definition nai.h:148
nai_status
Definition nai.h:5
@ NAI_ERROR_INVALID_COMMUTATION_POLES
Definition nai.h:46
@ NAI_ERROR_PROTOCOL_FUNCTION_MISMATCH
Definition nai.h:58
@ NAI_ERROR_INVALID_MODULE
Definition nai.h:20
@ NAI_ERROR_INVALID_CARD
Definition nai.h:19
@ NAI_ERROR_FUNCTION_SPECIFIC_ERROR
Definition nai.h:59
@ NAI_ERROR_ETHER_FLASHFILE_WRITING_TO_FLASH_GEN4
Definition nai.h:94
@ NAI_ERROR_ETHER_FFMAPFILE_NOT_FOUND_GEN4
Definition nai.h:89
@ NAI_ERROR_INVALID_ADDRESS
Definition nai.h:11
@ NAI_ERROR_ETHER_INVALID_MSG_TYPECODE_GEN4
Definition nai.h:69
@ NAI_ERROR_ETHER_INVALID_OPERATION_TYPECODE_GEN4
Definition nai.h:75
@ NAI_ERROR_ETHER_INVALID_MSG_POSTAMBLE_GEN4
Definition nai.h:71
@ NAI_ERROR_SERDES_WRONG_SLOT_NUM
Definition nai.h:108
@ NAI_ERROR_FULL
Definition nai.h:29
@ NAI_ERROR_INVALID_MESSAGE
Definition nai.h:23
@ NAI_ERROR_TIMEOUT
Definition nai.h:15
@ NAI_ERROR_OVERFLOW
Definition nai.h:25
@ NAI_ERROR_SERDES_UNABLE_TO_LOCK_MUTEX
Definition nai.h:122
@ NAI_ERROR_ETHER_EXEMODE_MUST_BE_IN_CFG_MODE_GEN4
Definition nai.h:95
@ NAI_ERROR_INVALID_WIDTH
Definition nai.h:18
@ NAI_ERROR_1553_DATA_WRAPAROUND_ERROR
Definition nai.h:55
@ NAI_ERROR_SERDES_UNABLE_TO_ALLOCATE_MEMORY
Definition nai.h:116
@ NAI_ERROR_ETHER_INVALID_IDR_ID_GEN4
Definition nai.h:101
@ NAI_ERROR_INVALID_RATIO
Definition nai.h:47
@ NAI_ERROR_SERDES_MIS_ALIGNED_BYTE_ENABLE
Definition nai.h:112
@ NAI_ERROR_ETHER_FFMAPFILE_INVALID_ENTRY_GEN4
Definition nai.h:90
@ NAI_ERROR_SERDES_DETECT_MODULES_TIMEOUT
Definition nai.h:120
@ NAI_ERROR_UNKNOWN_VALUE
Definition nai.h:63
@ NAI_ERROR_INVALID_ENCODER_RES
Definition nai.h:45
@ NAI_ERROR_NOT_SUPPORTED
Definition nai.h:61
@ NAI_ERROR_ETHER_INVALID_MOD_INFOTYPE_GEN4
Definition nai.h:77
@ NAI_ERROR_NOT_MASTER
Definition nai.h:26
@ NAI_ERROR_CONNECTION_LOST
Definition nai.h:32
@ NAI_ERROR_ETHER_OPENING_EEPROM_GEN4
Definition nai.h:79
@ NAI_ERROR_ETHER_WRITING_MOD_INFO_GEN4
Definition nai.h:85
@ NAI_ERROR_PERMISSION_DENIED
Definition nai.h:56
@ NAI_ERROR_NOT_READY
Definition nai.h:31
@ NAI_ERROR_FRAMING_PARITY
Definition nai.h:36
@ NAI_ERROR_INVALID_SIZE
Definition nai.h:9
@ NAI_ERROR_ETHER_READING_EEPROM_GEN4
Definition nai.h:80
@ NAI_ERROR_ETHER_INFOTYPE_READONLY_GEN4
Definition nai.h:83
@ NAI_ERROR_SERDES_UNEXPECTED_PAYLOAD_COUNT
Definition nai.h:110
@ NAI_ERROR_INVALID_IO_PARAM
Definition nai.h:48
@ NAI_ERROR_SERDES_I2C_DEVICE_NOT_FOUND
Definition nai.h:121
@ NAI_ERROR_ETHER_WRITING_EEPROM_GEN4
Definition nai.h:81
@ NAI_SUCCESS
Definition nai.h:6
@ NAI_ERROR_ETHER_GENERAL_GEN4
Definition nai.h:66
@ NAI_ERROR_ETHER_READING_MOD_INFO_GEN4
Definition nai.h:84
@ NAI_ERROR_UNKNOWN
Definition nai.h:62
@ NAI_ERROR_ETHER_BLOCK_NOT_CONFIGURED_GEN4
Definition nai.h:103
@ NAI_ERROR_ETHER_INVALID_CONFIG_TYPECODE_GEN4
Definition nai.h:74
@ NAI_ERROR_NOT_OPEN
Definition nai.h:33
@ NAI_ERROR_SERDES_UNABLE_TO_UNLOCK_MUTEX
Definition nai.h:123
@ NAI_ERROR_SERDES_TX_FIFO_NOT_EMPTY_TIMEOUT
Definition nai.h:118
@ NAI_ERROR_SERDES_SYSTEM_NOT_READY
Definition nai.h:114
@ NAI_ERROR_ETHER_FILE_NOT_RECEIVED_GEN4
Definition nai.h:87
@ NAI_ERROR_ETHER_EXTRACTING_FILE_GEN4
Definition nai.h:88
@ NAI_ERROR_SERDES_MODULE_NOT_READY
Definition nai.h:115
@ NAI_ERROR_INT_CONNECT_FAILED
Definition nai.h:52
@ NAI_ERROR_INVALID_ADDRBOUND
Definition nai.h:12
@ NAI_ERROR_ETHER_FLASHFILE_NOT_FOUND_GEN4
Definition nai.h:91
@ NAI_ERROR_MORE_DATA
Definition nai.h:44
@ NAI_ERROR_NOT_FOUND
Definition nai.h:14
@ NAI_ERROR_INVALID_VALUE
Definition nai.h:7
@ NAI_ERROR_INVALID_COMMAND
Definition nai.h:13
@ NAI_ERROR_ETHER_INVALID_TDR_ID_GEN4
Definition nai.h:100
@ NAI_ERROR_ETHER_FLASHFILE_LENGTH_MISMATCH_GEN4
Definition nai.h:92
@ NAI_ERROR_BUS_TIMEOUT
Definition nai.h:39
@ NAI_ERROR_FRAMING
Definition nai.h:35
@ NAI_ERROR_ETHER_COMMAND_NOT_IMPLEMENTED_GEN4
Definition nai.h:73
@ NAI_ERROR_MESSAGE_MISMATCH
Definition nai.h:24
@ NAI_ERROR_ETHER_INVALID_MOD_SLOT_NUM_GEN4
Definition nai.h:86
@ NAI_ERROR_ETHER_INVALID_PAYLOAD_SIZE_GEN4
Definition nai.h:72
@ NAI_ERROR_SERDES_INVALID_PARAMETER_VALUE
Definition nai.h:113
@ NAI_ERROR_ETHER_INVALID_MB_INFOTYPE_GEN4
Definition nai.h:76
@ NAI_ERROR_VME_ADDR_TRANSLATION
Definition nai.h:50
@ NAI_ERROR_ETHER_FLASHFILE_CHECKSUM_MISMATCH_GEN4
Definition nai.h:93
@ NAI_ERROR_INVALID_TYPECODE
Definition nai.h:10
@ NAI_ERROR_ETHER_INVALID_MSG_PREAMBLE_GEN4
Definition nai.h:67
@ NAI_ERROR_BUS_READ_ERR
Definition nai.h:42
@ NAI_ERROR_LOCK_FAILED
Definition nai.h:17
@ NAI_ERROR_1553_MESSAGE_ERROR
Definition nai.h:54
@ NAI_ERROR_NO_MESSAGE
Definition nai.h:37
@ NAI_ERROR_INVALID_MODE
Definition nai.h:8
@ NAI_ERROR_COMM_ERROR
Definition nai.h:16
@ NAI_ERROR_INVALID_CHANNEL
Definition nai.h:21
@ NAI_ERROR_SERDES_INVALID_SLOT_ID
Definition nai.h:109
@ NAI_ERROR_ETHER_INVALID_PAYLOAD_LENGTH_GEN4
Definition nai.h:82
@ NAI_ERROR_ETHER_INVALID_MSG_LENGTH_GEN4
Definition nai.h:70
@ NAI_ERROR_EMPTY
Definition nai.h:30
@ NAI_ERROR_INVALID_RANGE
Definition nai.h:40
@ NAI_ERROR_OPEN_FAILED
Definition nai.h:22
@ NAI_ERROR_INT_DISCONNECT_FAILED
Definition nai.h:53
@ NAI_ERROR_ETHER_INVALID_BLOCK_ID_GEN4
Definition nai.h:99
@ NAI_ERROR_ETHER_INVALID_MSG_SEQ_NUM_GEN4
Definition nai.h:68
@ NAI_ERROR_UNLOCK_FAILED
Definition nai.h:57
@ NAI_ERROR_ETHER_MODULE_LINK_DOWN_GEN4
Definition nai.h:97
@ NAI_ERROR_BIT_FAILED
Definition nai.h:49
@ NAI_ERROR_ETHER_EXEMODE_MUST_BE_IN_OP_MODE_GEN4
Definition nai.h:96
@ NAI_ERROR_ETHER_IDR_NOT_CONFIGURED_GEN4
Definition nai.h:105
@ NAI_ERROR_SERDES_COMMAND_NOT_RECOGNIZED
Definition nai.h:117
@ NAI_ERROR_DISCONNECTED
Definition nai.h:27
@ NAI_ERROR_WRONG_DEVICE
Definition nai.h:41
@ NAI_ERROR_PARITY
Definition nai.h:34
@ NAI_ERROR_BSP_VME_TABLE
Definition nai.h:51
@ NAI_ERROR_SERDES_RX_FIFO_PKT_NOT_READY_TIMEOUT
Definition nai.h:119
@ NAI_ERROR_ETHER_INVALID_REG_COUNT_GEN4
Definition nai.h:102
@ NAI_ERROR_SERDES_MODULE_NOT_FOUND
Definition nai.h:111
@ NAI_ERROR_WATCHDOG
Definition nai.h:38
@ NAI_ERROR_ETHER_TDR_NOT_CONFIGURED_GEN4
Definition nai.h:104
@ NAI_ERROR_BUS_WRITE_ERR
Definition nai.h:43
@ NAI_ERROR_IN_USE
Definition nai.h:28
@ NAI_ERROR_ETHER_INVALID_MOD_ID_GEN4
Definition nai.h:78
uint8_t nai_intf_t
Definition nai.h:138
nai_maskreg_op
Definition nai.h:140
@ NAI_MASKREG_OP_CLEAR
Definition nai.h:141
@ NAI_MASKREG_OP_SET
Definition nai.h:142
@ NAI_MASKREG_OP_TOGGLE
Definition nai.h:143
nai_intf
Definition nai.h:127
@ NAI_INTF_PROC
Definition nai.h:131
@ NAI_INTF_VME
Definition nai.h:128
@ NAI_INTF_PCI
Definition nai.h:130
@ NAI_INTF_I2C
Definition nai.h:132
@ NAI_INTF_ONBOARD
Definition nai.h:133
@ NAI_INTF_ETHER
Definition nai.h:129
enum nai_status nai_status_t