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

Functions

static bool_t AR_Receive_Summary_run (int32_t cardIndex, int32_t module, uint32_t moduleID)
 AR_Receive_Summary_run queries the user for the card and module to configure the ARINC receiver as well as the data rate (high (100kHz) or low (12.5 kHz)). The receiving ARINC channel is configured for FIFO receive mode.
 
static bool_t RxAndDisplayFIFOMsgs (int32_t cardIndex, int32_t module, uint32_t moduleID, bool_t useInterrupt)
 
static void FetchNewMessagesFromRxFIFO (int32_t cardIndex, int32_t module, int32_t channel)
 
static void SampleCallBack (uint32_t vector)
 
int32_t ar429_recv_summary (void)
 The purpose of ar429_recv_summary is to illustrate the methods to call in the naibrd library to configure channels 1, 2, 5, 6, 7 and 8 for message receive operation and poll the Rx summary register (or utilize interrupts) to ascertain which channels contain new ARINC message(s) in their respective Rx FIFO buffer. The summary register is bit-mapped by channel (bit index zero is channel 1) and mirrors the "Rx Data Available" bit in the Channel Status registers. If unread messages are present in the FIFO of a particular channel, the corresponding bit will be set to '1' in the Rx summary register.
 

Variables

static const int8_t * CONFIG_FILE = (const int8_t *)"default_ARRecv_Summary.txt"
 
static bool_t bTimestampEnabled = NAI_TRUE
 
static bool_t irqFlag = NAI_FALSE
 

Function Documentation

◆ ar429_recv_summary()

int32_t ar429_recv_summary ( void )

The purpose of ar429_recv_summary is to illustrate the methods to call in the naibrd library to configure channels 1, 2, 5, 6, 7 and 8 for message receive operation and poll the Rx summary register (or utilize interrupts) to ascertain which channels contain new ARINC message(s) in their respective Rx FIFO buffer. The summary register is bit-mapped by channel (bit index zero is channel 1) and mirrors the "Rx Data Available" bit in the Channel Status registers. If unread messages are present in the FIFO of a particular channel, the corresponding bit will be set to '1' in the Rx summary register.

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 ARINC routines.

  • ConfigDevice
  • DisplayDeviceCfg
  • GetBoardSNModCfg
  • CheckModule

◆ AR_Receive_Summary_run()

static bool_t AR_Receive_Summary_run ( int32_t cardIndex,
int32_t module,
uint32_t moduleID )
static

AR_Receive_Summary_run queries the user for the card and module to configure the ARINC receiver as well as the data rate (high (100kHz) or low (12.5 kHz)). The receiving ARINC channel is configured for FIFO receive mode.

◆ FetchNewMessagesFromRxFIFO()

static void FetchNewMessagesFromRxFIFO ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

◆ RxAndDisplayFIFOMsgs()

static bool_t RxAndDisplayFIFOMsgs ( int32_t cardIndex,
int32_t module,
uint32_t moduleID,
bool_t useInterrupt )
static

◆ SampleCallBack()

static void SampleCallBack ( uint32_t vector)
static

Variable Documentation

◆ bTimestampEnabled

bool_t bTimestampEnabled = NAI_TRUE
static

◆ CONFIG_FILE

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

◆ irqFlag

bool_t irqFlag = NAI_FALSE
static