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

Functions

static bool_t Run_m1553_bc_send_msg_fifo (int32_t cardIndex, int32_t module, uint32_t modid)
 Run_m1553_bc_send_msg_fifo initializes the 1553 device as a bus controller (BC) 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_BcDatBlkCreate naibrd_1553_BcMessageCreateBcToRt naibrd_1553_BcMessageCreateRtToBC naibrd_1553_BcMessageCreateMode naibrd_1553_BcMessageCreateRtToRt 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 RunSendMessage (int32_t cardIndex, int32_t module, int32_t channel)
 
int32_t m1553_bc_send_msg_fifo (void)
 The purpose of the m1553_bc_send_msg_fifo is to illustrate the methods to call in the naibrd library to configure the 1553 channel as a Bus Controller and to send a 1553 message out.
 

Variables

static const int8_t * DEF_CONFIG_FILE = (int8_t *)"default_1553BC_SendMessage_FIFO.txt"
 

Function Documentation

◆ m1553_bc_send_msg_fifo()

int32_t m1553_bc_send_msg_fifo ( void )

The purpose of the m1553_bc_send_msg_fifo is to illustrate the methods to call in the naibrd library to configure the 1553 channel as a Bus Controller and to send a 1553 message out.

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.

  • ConfigDevice
  • DisplayDeviceCfg
  • GetBoardSNModCfg
  • CheckModule

◆ Run_m1553_bc_send_msg_fifo()

static bool_t Run_m1553_bc_send_msg_fifo ( int32_t cardIndex,
int32_t module,
uint32_t modid )
static

Run_m1553_bc_send_msg_fifo initializes the 1553 device as a bus controller (BC) 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_BcDatBlkCreate naibrd_1553_BcMessageCreateBcToRt naibrd_1553_BcMessageCreateRtToBC naibrd_1553_BcMessageCreateMode naibrd_1553_BcMessageCreateRtToRt 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.

◆ RunSendMessage()

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

Variable Documentation

◆ DEF_CONFIG_FILE

const int8_t* DEF_CONFIG_FILE = (int8_t *)"default_1553BC_SendMessage_FIFO.txt"
static