Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
ar568_xmit.c File Reference

Functions

static bool_t AR568_Transmit_run ()
 Run_AR568_Transmit queries the user for the card, module and channel to configure as the ARINC-568 transmitter and the mode of message transmission (FIFO Immediate, or FIFO Triggered). Methods in the naibrd library are invoked to configure the ARINC-568 channel. Once the ARINC channel is configured: 1) In FIFO Immediate mode, the user enters the number of words to transmit. When the Tx FIFO is loaded with data, transmission begins immediately and the program polls the channel status to check Tx FIFO Almost Empty and if true, more data (if any) is loaded into the Tx FIFO to keep the transmission going. 2) In FIFO Triggered mode, the user enters the number of words to transmit. When the Tx FIFO is loaded with data, transmission does not begin immediately. Instead the user will be asked to send a trigger to initiate transmission and the program polls the channel status to check Tx FIFO Almost Empty and if true, more data (if any) is loaded into the Tx FIFO to keep the transmission going.
 
static bool_t AR568_TxFIFO (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ar568_tx_mode_t txmode)
 
static void waitForStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t status)
 
int32_t AR568_Transmit (void)
 The purpose of the AR568_Transmit is to illustrate the methods to call in the naibrd library to configure the ARINC-568 channel to transmit ARINC-568 messages in FIFO mode.
 

Variables

static const int8_t * CONFIG_FILE = (int8_t *)"default_AR568Xmit.txt"
 

Function Documentation

◆ AR568_Transmit()

int32_t AR568_Transmit ( void )

The purpose of the AR568_Transmit is to illustrate the methods to call in the naibrd library to configure the ARINC-568 channel to transmit ARINC-568 messages in FIFO mode.

The following system configuration routines from the nai_sys_cfg.c file are called to assist with the configuration setup for this program prior to calling the naibrd 1553 routines.

  • ConfigDevice
  • DisplayDeviceCfg
  • GetBoardSNModCfg
  • CheckModule

Note, the AR568_Transmit application can run in conjunction with the AR_Receive, AR_ReceiveInterruptEther or AR_ReceiveInterruptBus applications to illustrate ARINC transmit and receive operations together with the NAI ARINC module.

◆ AR568_Transmit_run()

static bool_t AR568_Transmit_run ( )
static

Run_AR568_Transmit queries the user for the card, module and channel to configure as the ARINC-568 transmitter and the mode of message transmission (FIFO Immediate, or FIFO Triggered). Methods in the naibrd library are invoked to configure the ARINC-568 channel. Once the ARINC channel is configured: 1) In FIFO Immediate mode, the user enters the number of words to transmit. When the Tx FIFO is loaded with data, transmission begins immediately and the program polls the channel status to check Tx FIFO Almost Empty and if true, more data (if any) is loaded into the Tx FIFO to keep the transmission going. 2) In FIFO Triggered mode, the user enters the number of words to transmit. When the Tx FIFO is loaded with data, transmission does not begin immediately. Instead the user will be asked to send a trigger to initiate transmission and the program polls the channel status to check Tx FIFO Almost Empty and if true, more data (if any) is loaded into the Tx FIFO to keep the transmission going.

◆ AR568_TxFIFO()

static bool_t AR568_TxFIFO ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_ar568_tx_mode_t txmode )
static

◆ waitForStatus()

static void waitForStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t status )
static

Variable Documentation

◆ CONFIG_FILE

const int8_t* CONFIG_FILE = (int8_t *)"default_AR568Xmit.txt"
static