Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
static bool_t | Run_m1553_ext_loopback_fifo (int32_t cardIndex, int32_t module, uint32_t modid) |
m1553_ext_loopback_fifo initializes the 1553 device as a bus controller (BC), FIFO mode NAIBRD_1553_MESSAGE_FIFO_MODE, and sends out a message. This routine demonstrates the following API functions in the 1553 naibrd library: naibrd_1553_Open naibrd_1553_Init naibrd_1553_BcDataBlkCreate naibrd_1553_BcMsgCreateBcToRt naibrd_1553_BcCmdCreate naibrd_1553_BcFrmCreate naibrd_1553_BcDataBlkWrite naibrd_1553_ClearMsgFIFO naibrd_1553_BcStart naibrd_1553_BcStop naibrd_1553_GetMsgFIFOCount naibrd_1553_ReadMsgFIFO naibrd_1553_DecodeFIFOMsg naibrd_1553_GetMsgFIFOFullStatus naibrd_1553_Free | |
static bool_t | RunExternalLoopbackFIFO (int32_t cardIndex, int32_t module, int32_t channelBC, uint32_t modid) |
static int32_t | ProcessMessages (uint16_t devnum, naibrd_1553_rt_subaddress_t Subaddress) |
static int32_t | UpdateTxDataBlock (uint16_t DevNum, naibrd_1553_rt_subaddress_t Subaddress) |
static int32_t | UpdateTxBuffer (uint16_t DevNum, uint16_t nDataBlkID) |
int32_t | m1553_ext_loopback_fifo (void) |
The purpose of the m1553_ext_loopback_fifo is to illustrate the methods to call in the naibrd library to configure one 1553 channel as a Bus Controller and another 1553 channel as a Remote Terminal and complete a 1553 Message transaction between the two channels. For the message transaction to complete successfully, the Bus Controller channel and Remote Terminal channel must be on the same module and connected over a 1553 bus. The BC channel is configured for normal (non-Message FIFO) mode and the RT channel is configured for Message FIFO mode. | |
Variables | |
static const int8_t * | DEF_CONFIG_FILE = (int8_t *)"default_1553_External_Loopback.txt" |
static int32_t | currDataBlock |
int32_t m1553_ext_loopback_fifo | ( | void | ) |
The purpose of the m1553_ext_loopback_fifo is to illustrate the methods to call in the naibrd library to configure one 1553 channel as a Bus Controller and another 1553 channel as a Remote Terminal and complete a 1553 Message transaction between the two channels. For the message transaction to complete successfully, the Bus Controller channel and Remote Terminal channel must be on the same module and connected over a 1553 bus. The BC channel is configured for normal (non-Message FIFO) mode and the RT channel is configured for Message FIFO mode.
The message on the RT channel will be decoded using FIFO mode. Note: FIFO mode is available for the FTA, FTB, FTC, FTD, and FTF only.
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.
|
static |
|
static |
m1553_ext_loopback_fifo initializes the 1553 device as a bus controller (BC), FIFO mode NAIBRD_1553_MESSAGE_FIFO_MODE, and sends out a message. This routine demonstrates the following API functions in the 1553 naibrd library: naibrd_1553_Open naibrd_1553_Init naibrd_1553_BcDataBlkCreate naibrd_1553_BcMsgCreateBcToRt naibrd_1553_BcCmdCreate naibrd_1553_BcFrmCreate naibrd_1553_BcDataBlkWrite naibrd_1553_ClearMsgFIFO naibrd_1553_BcStart naibrd_1553_BcStop naibrd_1553_GetMsgFIFOCount naibrd_1553_ReadMsgFIFO naibrd_1553_DecodeFIFOMsg naibrd_1553_GetMsgFIFOFullStatus naibrd_1553_Free
|
static |
|
static |
|
static |
|
static |
|
static |