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

Functions

static bool_t AR_Interrupt_run ()
 AR_Interrupt_run 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)). Methods in the naibrd library are invoked to configure the ARINC channel. The user-specified ARINC channel is configured with the Tx FIFO Threshold set to 32 messages, which means that the Tx FIFO Full status bit will be set and, if enabled, an interrupt will be generated when the Tx FIFO reaches 32 messages at any point in time. In order to be able to accumulate messages in the Tx FIFO, the Tx FIFO send mode is set to Triggered Mode, which requires the user to send a Trigger signal in order for the contents of the Tx FIFO to get sent out. This code demonstrates how to program the ARINC module to generate an interrupt when the Tx FIFO Full event occurs.
 
static void myIsr (uint32_t vector)
 
static bool_t AR_TxFIFO (int32_t cardIndex, int32_t module, int32_t channel, naibrd_ar_tx_mode_t txmode)
 
int32_t ar429_interrupt (void)
 The purpose of the ar429_interrupt is to illustrate the methods to call in the naibrd library to configure the ARINC channel to run in Tx mode and generate an interrupt when the Tx FIFO is full.
 

Variables

static const int8_t * CONFIG_FILE = (int8_t *)"default_ARXmit.txt"
 
static volatile int32_t irqFlag
 
static int32_t irqCount
 
static uint32_t receivedVector
 

Function Documentation

◆ ar429_interrupt()

int32_t ar429_interrupt ( void )

The purpose of the ar429_interrupt is to illustrate the methods to call in the naibrd library to configure the ARINC channel to run in Tx mode and generate an interrupt when the Tx FIFO is full.

◆ AR_Interrupt_run()

static bool_t AR_Interrupt_run ( )
static

AR_Interrupt_run 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)). Methods in the naibrd library are invoked to configure the ARINC channel. The user-specified ARINC channel is configured with the Tx FIFO Threshold set to 32 messages, which means that the Tx FIFO Full status bit will be set and, if enabled, an interrupt will be generated when the Tx FIFO reaches 32 messages at any point in time. In order to be able to accumulate messages in the Tx FIFO, the Tx FIFO send mode is set to Triggered Mode, which requires the user to send a Trigger signal in order for the contents of the Tx FIFO to get sent out. This code demonstrates how to program the ARINC module to generate an interrupt when the Tx FIFO Full event occurs.

◆ AR_TxFIFO()

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

◆ myIsr()

static void myIsr ( uint32_t vector)
static

Variable Documentation

◆ CONFIG_FILE

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

◆ irqCount

int32_t irqCount
static

◆ irqFlag

volatile int32_t irqFlag
static

◆ receivedVector

uint32_t receivedVector
static