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

Functions

static bool_t Run_m1553_bc_send_msg (int32_t cardIndex, int32_t module, uint32_t modid)
 Run_m1553_bc_send_msg 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_BcCmdCreate naibrd_1553_BcFrmCreate naibrd_1553_BcDatBlkWrite naibrd_1553_BcStart naibrd_1553_BcStop naibrd_1553_Free.
 
static bool_t RunSendMessage (int32_t cardIndex, int32_t module, int32_t channel, uint32_t modid)
 
int32_t m1553_bc_send_msg (void)
 The purpose of the m1553_bc_send_msg 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.txt"
 

Function Documentation

◆ m1553_bc_send_msg()

int32_t m1553_bc_send_msg ( void )

The purpose of the m1553_bc_send_msg 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()

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

Run_m1553_bc_send_msg 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_BcCmdCreate naibrd_1553_BcFrmCreate naibrd_1553_BcDatBlkWrite naibrd_1553_BcStart naibrd_1553_BcStop naibrd_1553_Free.

◆ RunSendMessage()

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

Variable Documentation

◆ DEF_CONFIG_FILE

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