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

Enumerations

enum  arfuncgen_commands { AR_FUNCGEN_CMD_RX_WITHOUT_VALIDATION , AR_FUNCGEN_CMD_RX_WITH_VALIDATION , AR_FUNCGEN_CMD_RX_WITH_MAILBOX , AR_FUNCGEN_CMD_COUNT }
 

Functions

static bool_t AR_Receive_run ()
 AR_Receive_run queries the user for the card, module and channel to configure as the ARINC receiver as well as the data rate (high (100KHz) or low (12.5 kHz)) and how to retrieve the ARINC messages. Methods in the naibrd library are invoked to configure the ARINC channel.
 
static nai_status_t AR_RxWithoutValidation (int32_t paramCount, int32_t *p_params)
 
static nai_status_t AR_RxWithValidation (int32_t paramCount, int32_t *p_params)
 
static nai_status_t AR_RxWithMailbox (int32_t paramCount, int32_t *p_params)
 
static bool_t RxAndDisplayFIFOMsgs (int32_t cardIndex, int32_t module, int32_t channel)
 
static bool_t RxandDisplayFIFOandMailBox (int32_t cardIndex, int32_t module, int32_t channel)
 
static void EnableValidation (int32_t cardIndex, int32_t module, int32_t channel)
 
int32_t main (void)
 The purpose of the AR_Receive is to illustrate the methods to call in the naibrd library to configure the ARINC channel to receive ARINC messages. ARINC data messages can be retrieved as follows: a) Using Validation to selectively receive data that match enabled SDI/Labels, or b) Using Mailbox mode to read mailboxes of the matched SDI/Labels found in the receive FIFO, or c) Receiving all of the transmitted data in the receive FIFO (without validation).
 

Variables

static const int8_t * CONFIG_FILE = (const int8_t *)"default_ARRecv.txt"
 
static naiapp_cmdtbl_params_t AR_FuncGenMenuCmds []
 
static bool_t bTimestampEnabled = NAI_FALSE
 

Enumeration Type Documentation

◆ arfuncgen_commands

Enumerator
AR_FUNCGEN_CMD_RX_WITHOUT_VALIDATION 
AR_FUNCGEN_CMD_RX_WITH_VALIDATION 
AR_FUNCGEN_CMD_RX_WITH_MAILBOX 
AR_FUNCGEN_CMD_COUNT 

Function Documentation

◆ AR_Receive_run()

static bool_t AR_Receive_run ( )
static

AR_Receive_run queries the user for the card, module and channel to configure as the ARINC receiver as well as the data rate (high (100KHz) or low (12.5 kHz)) and how to retrieve the ARINC messages. Methods in the naibrd library are invoked to configure the ARINC channel.

◆ AR_RxWithMailbox()

nai_status_t AR_RxWithMailbox ( int32_t paramCount,
int32_t * p_params )
static

◆ AR_RxWithoutValidation()

nai_status_t AR_RxWithoutValidation ( int32_t paramCount,
int32_t * p_params )
static

◆ AR_RxWithValidation()

nai_status_t AR_RxWithValidation ( int32_t paramCount,
int32_t * p_params )
static

◆ EnableValidation()

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

◆ main()

int32_t main ( void )

The purpose of the AR_Receive is to illustrate the methods to call in the naibrd library to configure the ARINC channel to receive ARINC messages. ARINC data messages can be retrieved as follows: a) Using Validation to selectively receive data that match enabled SDI/Labels, or b) Using Mailbox mode to read mailboxes of the matched SDI/Labels found in the receive FIFO, or c) Receiving all of the transmitted data in the receive FIFO (without validation).

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.

  • ClearDeviceCfg
  • QuerySystemCfg
  • DisplayDeviceCfg
  • GetBoardSNModCfg
  • SaveDeviceCfg

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

◆ RxandDisplayFIFOandMailBox()

static bool_t RxandDisplayFIFOandMailBox ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

◆ RxAndDisplayFIFOMsgs()

static bool_t RxAndDisplayFIFOMsgs ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

Variable Documentation

◆ AR_FuncGenMenuCmds

naiapp_cmdtbl_params_t AR_FuncGenMenuCmds[]
static
Initial value:
=
{
{"NORMAL", "AR Receive Without Validation", AR_FUNCGEN_CMD_RX_WITHOUT_VALIDATION, AR_RxWithoutValidation},
{"VALID", "AR Receive With Validation ", AR_FUNCGEN_CMD_RX_WITH_VALIDATION, AR_RxWithValidation},
{"MAILBOX", "AR Receive Using Mailbox ", AR_FUNCGEN_CMD_RX_WITH_MAILBOX, AR_RxWithMailbox}
}
static nai_status_t AR_RxWithMailbox(int32_t paramCount, int32_t *p_params)
Definition ar429_recv.c:385
static nai_status_t AR_RxWithoutValidation(int32_t paramCount, int32_t *p_params)
Definition ar429_recv.c:341
@ AR_FUNCGEN_CMD_RX_WITH_VALIDATION
Definition ar429_recv.c:37
@ AR_FUNCGEN_CMD_RX_WITHOUT_VALIDATION
Definition ar429_recv.c:36
@ AR_FUNCGEN_CMD_RX_WITH_MAILBOX
Definition ar429_recv.c:38
static nai_status_t AR_RxWithValidation(int32_t paramCount, int32_t *p_params)
Definition ar429_recv.c:363

◆ bTimestampEnabled

bool_t bTimestampEnabled = NAI_FALSE
static

◆ CONFIG_FILE

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