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

Functions

static bool_t AR_Transmit_run ()
 Run_AR_Transmit queries the user for the card, module and channel to configure as the ARINC transmitter as well as the data rate (high (100KHz) or low (12.5KHz)) and the mode of message transmission (FIFO Immediate, Scheduled or FIFO Triggered). Methods in the naibrd library are invoked to configure the ARINC 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 AR_TxFIFO (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ar_tx_mode_t txmode)
 
static bool_t AR_TxSchedule (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ar_tx_mode_t txmode)
 
static const char * commandToStr (naibrd_ar_sched_cmd_t cmd)
 
static void waitForStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t status)
 
int32_t ar429_xmit (void)
 The purpose of the ar429_xmit is to illustrate the methods to call in the naibrd library to configure the ARINC channel to transmit ARINC messages in FIFO mode.
 

Variables

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

Function Documentation

◆ ar429_xmit()

int32_t ar429_xmit ( void )

The purpose of the ar429_xmit is to illustrate the methods to call in the naibrd library to configure the ARINC channel to transmit ARINC 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 AR_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.

◆ AR_Transmit_run()

static bool_t AR_Transmit_run ( )
static

Run_AR_Transmit queries the user for the card, module and channel to configure as the ARINC transmitter as well as the data rate (high (100KHz) or low (12.5KHz)) and the mode of message transmission (FIFO Immediate, Scheduled or FIFO Triggered). Methods in the naibrd library are invoked to configure the ARINC 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.

◆ AR_TxFIFO()

static bool_t AR_TxFIFO ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_ar_tx_mode_t txmode )
static

◆ AR_TxSchedule()

static bool_t AR_TxSchedule ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_ar_tx_mode_t txmode )
static

◆ commandToStr()

static const char * commandToStr ( naibrd_ar_sched_cmd_t cmd)
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_ARXmit.txt"
static