Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_SetTxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Enables or disables the Transmitter of the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_GetTxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outenable) |
Reads the state of the Transmitter of the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_SetRxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Enables or disables the receiver of the channel specified. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_GetRxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outenable) |
Reads the receiver enabled / disabled status of the channel specified. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_WriteWord (int32_t cardIndex, int32_t module, int32_t channel, uint32_t wordvalue) |
This function will add a 32-bit word to the transmit FIFO of the specified channel. The single word is passed as a parameter. (For A4 modules, the Tx FIFO is incremented after internally writing the lower 16-bit word). | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_ReadWord (int32_t cardIndex, int32_t module, int32_t channel, bool_t timeStampEnabled, uint16_t *outstatus, uint32_t *outdata, uint32_t *outtimestamp) |
This function reads the status, 32-bit data, and the timestamp (if enabled) from the receive FIFO of the specified channel. If the channel is an ARINC-568 channel, only data is read (no status or timestamp). | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_TransmitBuffer (int32_t cardIndex, int32_t module, int32_t channel, int32_t msglen, uint32_t *msgbuf, int32_t *outmsglen) |
This function will write multiple 32-bit words of data to the transmit FIFO of the specified channel. Pointers to a buffer and a length are passed as parameters. The actual number of words placed in the buffer is returned. If the available space in the FIFO is less than the number of messages being placed in the FIFO, the messages are not placed in the FIFO and instead, the available space in the FIFO is returned in a variable. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_ReadFifo (int32_t cardIndex, int32_t module, int32_t channel, bool_t timeStampEnabled, uint32_t msglen, uint32_t *outstatus, uint32_t *outdata, uint32_t *outtimestamp, int32_t *outnummsgs) |
This function reads the status, the 32-bit ARINC data, and the time stamp (if time stamping is enabled) from the receive FIFO of the specified channel for the number of words (of data) specified (up to 255). | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_ReadFifoMBox (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outdata) |
This function will read one word (A4: 16-bit, AR1: 32-bit) from the FIFO of the specified channel. In MailBox Mode, this word contains the SDI/Label of the MailBox with a new message. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR_ReadMBox (int32_t cardIndex, int32_t module, int32_t channel, bool_t timeStampEnabled, int32_t label, uint16_t *outstatus, uint32_t *outdata, uint32_t *outtimestamp) |
This will read the ARINC data and associated status (and timestamp, if enabled) from the Mailbox specified by the label for the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_GetRxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outenable ) |
Reads the receiver enabled / disabled status of the channel specified.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
outenable | : (Output) Receiver enabled (1) or disabled (0). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_GetTxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | outenable ) |
Reads the state of the Transmitter of the specified channel.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
outenable | : (Output) Transmit enabled (1) or disabled (0). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_ReadFifo | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | timeStampEnabled, | ||
uint32_t | msglen, | ||
uint32_t * | outstatus, | ||
uint32_t * | outdata, | ||
uint32_t * | outtimestamp, | ||
int32_t * | outnummsgs ) |
This function reads the status, the 32-bit ARINC data, and the time stamp (if time stamping is enabled) from the receive FIFO of the specified channel for the number of words (of data) specified (up to 255).
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
timeStampEnabled | : (Input) Indication if timestamp is enabled. |
msglen | : (Input) Number of ARINC messages to read back. Note outstatus, outdata and outdata parameters must have memory allocated for this number of ARINC messages. |
outstatus | : (Output) FIFO status word. |
outdata | : (Output) 32-bit data word. |
outtimestamp | : (Output) Time stamp. |
outnummsgs | : (Output) Number of ARINC msgs read from FIFO. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_ReadFifoMBox | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint32_t * | outdata ) |
This function will read one word (A4: 16-bit, AR1: 32-bit) from the FIFO of the specified channel. In MailBox Mode, this word contains the SDI/Label of the MailBox with a new message.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
outdata | : (Output) Single word read from FIFO which represents SDI/Label of received ARINC message. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_ReadMBox | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | timeStampEnabled, | ||
int32_t | label, | ||
uint16_t * | outstatus, | ||
uint32_t * | outdata, | ||
uint32_t * | outtimestamp ) |
This will read the ARINC data and associated status (and timestamp, if enabled) from the Mailbox specified by the label for the specified channel.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
timeStampEnabled | : (Input) Indication if timestamp is enabled. |
label | : (Input) Least 10 bits of ARINC Word comprising SDI/Label (0 - 1023). |
outstatus | : (Output) 16-bit status word. |
outdata | : (Output) 32-bit data word value (16-bit Hi Word + 16-bit Lo word). |
outtimestamp | : (Output) 32-bit Time Stamp (if time stamping is enabled). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_ReadWord | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | timeStampEnabled, | ||
uint16_t * | outstatus, | ||
uint32_t * | outdata, | ||
uint32_t * | outtimestamp ) |
This function reads the status, 32-bit data, and the timestamp (if enabled) from the receive FIFO of the specified channel. If the channel is an ARINC-568 channel, only data is read (no status or timestamp).
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
timeStampEnabled | : (Input) Indication if timestamp is enabled. |
outstatus | : (Output) 16-bit status word. |
outdata | : (Output) 32-bit data word. |
outtimestamp | : (Output) 32-bit Time Stamp (If time stamping is enabled). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_SetRxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Enables or disables the receiver of the channel specified.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
enable | : (Input) Enable (1) or disable (0) the receiver. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_SetTxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Enables or disables the Transmitter of the specified channel.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
enable | : (Input) Transmit enable (1) or disable (0). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_TransmitBuffer | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
int32_t | msglen, | ||
uint32_t * | msgbuf, | ||
int32_t * | outmsglen ) |
This function will write multiple 32-bit words of data to the transmit FIFO of the specified channel. Pointers to a buffer and a length are passed as parameters. The actual number of words placed in the buffer is returned. If the available space in the FIFO is less than the number of messages being placed in the FIFO, the messages are not placed in the FIFO and instead, the available space in the FIFO is returned in a variable.
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
msglen | : (Input) Number of 32-bit words of data in msgbuffer. |
msgbuf | : (Input) Arinc messages. |
outmsglen | : (Output) Number of 32-bit words placed on Tx FIFO or if there isn't enough room in the TX Fifo, the number of messages that can be placed on the Tx FIFO. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_WriteWord | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint32_t | wordvalue ) |
This function will add a 32-bit word to the transmit FIFO of the specified channel. The single word is passed as a parameter. (For A4 modules, the Tx FIFO is incremented after internally writing the lower 16-bit word).
cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
wordvalue | : (Input) 32-bit word value to write. |