Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
static bool_t | Run_M1553_RT_Receive_FIFO (int32_t cardIndex, int32_t module, uint32_t modid) |
static int32_t | UpdateTxDataBlock (uint16_t DevNum, naibrd_1553_rt_subaddress_t Subaddress) |
static int32_t | UpdateTxBuffer (uint16_t DevNum, uint16_t nDataBlkID) |
static int32_t | ProcessMessages (uint16_t DevNum, naibrd_1553_rt_subaddress_t Subaddress, int32_t duration) |
int32_t | m1553_rt_recv_fifo (void) |
The purpose of the M1553_RT_Receive_FIFO is to illustrate the methods to call in the naibrd library to configure the 1553 channel as a Remote Terminal, legalize Subaddress 2 for Tx, Rx and Broadcast messages, and set it up to receive data using double buffers and transmit data from two alternating Tx buffers (active and inactive). If a Rx message is received, the received data and message information will be displayed via message FIFO. If a Tx message is received, the data in the active Tx buffer will be sent to the bus. While the RT is running, Tx buffer data will be updated periodically by incrementing all 32 data words of Tx data. If a Tx message is received, the message information will be displayed via message FIFO. This application demonstrates the usage of the following naibrd 1553 routines. | |
Variables | |
static const int8_t * | DEF_CONFIG_FILE = (int8_t *)"default_1553_rt_recv_fifo.txt" |
static const uint16_t | DATA_BLOCK_ID_TX1 = 1 |
static const uint16_t | DATA_BLOCK_ID_TX2 = 2 |
static const uint16_t | DATA_BLOCK_ID_RX = 3 |
static const uint16_t | DATA_BLOCK_ID_BCST = 4 |
static const int32_t | DEF_RT_CHANNEL = 1 |
static const int16_t | DEF_RT_DEV_NUM = 1 |
static const uint16_t | DEF_RT_ADDRESS = 1 |
static const uint16_t | DEF_RT_SUBADDR = 2 |
static const uint16_t | RTBC_WORDCNT = 32 |
static int32_t | currDataBlock |
int32_t m1553_rt_recv_fifo | ( | void | ) |
The purpose of the M1553_RT_Receive_FIFO is to illustrate the methods to call in the naibrd library to configure the 1553 channel as a Remote Terminal, legalize Subaddress 2 for Tx, Rx and Broadcast messages, and set it up to receive data using double buffers and transmit data from two alternating Tx buffers (active and inactive). If a Rx message is received, the received data and message information will be displayed via message FIFO. If a Tx message is received, the data in the active Tx buffer will be sent to the bus. While the RT is running, Tx buffer data will be updated periodically by incrementing all 32 data words of Tx data. If a Tx message is received, the message information will be displayed via message FIFO. This application demonstrates the usage of the following naibrd 1553 routines.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |