Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR568_SetTxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Enables or disables the Transmitter of the specified channel. The enabling of the transmitter should occur after configuration of the channel is completed by the user. In particular, make sure to set the Tx Mode with naibrd_AR568_SetTransmitSendMode() prior to enabling the transmitter. Otherwise, the module may exhibit undefined behavior. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR568_GetTxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outenable) |
Reads the state of the Transmitter of the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR568_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_AR568_GetRxEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outenable) |
Reads the receiver enabled / disabled status of the channel specified. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR568_LoadTxFifo (int32_t cardIndex, int32_t module, int32_t channel, int32_t txCount, const uint32_t *p_buffer, int32_t *p_outtxCount) |
This function will write multiple 32-bit words of data to the transmit FIFO of the specified channel. A pointer to a buffer and 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 the output variable. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AR568_ReadRxFifo (int32_t cardIndex, int32_t module, int32_t channel, int32_t rxCount, uint32_t *p_outdata, int32_t *p_outrxCount) |
This function reads the 32-bit ARINC-568 data from the receive FIFO of the specified channel for the number of words (of data) specified (up to 1024). | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR568_GetRxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | p_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]). |
p_outenable | : (Output) Receiver enabled (1) or disabled (0). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR568_GetTxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | p_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]). |
p_outenable | : (Output) Transmit enabled (1) or disabled (0). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR568_LoadTxFifo | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
int32_t | txCount, | ||
const uint32_t * | p_buffer, | ||
int32_t * | p_outtxCount ) |
This function will write multiple 32-bit words of data to the transmit FIFO of the specified channel. A pointer to a buffer and 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 the output 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]). |
txCount | : (Input) Number of 32-bit words of data in p_buffer. |
p_buffer | : (Input) Arinc messages. |
p_outtxCount | : (Output) Number of 32-bit words placed on Tx FIFO. Or if there is not enough room in the FIFO, this value will indicate how much room there is available and status will return NAI_ERROR_FULL. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR568_ReadRxFifo | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
int32_t | rxCount, | ||
uint32_t * | p_outdata, | ||
int32_t * | p_outrxCount ) |
This function reads the 32-bit ARINC-568 data from the receive FIFO of the specified channel for the number of words (of data) specified (up to 1024).
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]). |
rxCount | : (Input) Number of ARINC messages to read back. Note p_outdata must have enough memory allocated for this number of ARINC messages. |
p_outdata | : (Output) 32-bit data word. |
p_outrxCount | : (Output) Number of ARINC msgs read from FIFO. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR568_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_AR568_SetTxEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Enables or disables the Transmitter of the specified channel. The enabling of the transmitter should occur after configuration of the channel is completed by the user. In particular, make sure to set the Tx Mode with naibrd_AR568_SetTransmitSendMode() prior to enabling the transmitter. Otherwise, the module may exhibit undefined behavior.
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 (NAI_TRUE) or disable (NAI_FALSE). |