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

Functions

static bool_t Run_M1760_RT_Program_EEPROM (int32_t cardIndex, int32_t module, uint32_t modid)
 
int32_t M1760_RT_Program_EEPROM (void)
 The purpose of the M1760_RT_Program_EEPROM is to illustrate the methods to call in the naibrd library to configure the FTJ or FTK channel as a Remote Terminal, create buffers and legalize Subaddresses 2 and 15 for Rx messages, create buffers and legalize Subaddress 23 for Tx messages and copy the current configuration to the module EEPROM so that when the module is rebooted, the channel will auto-initialize with this configuration. With this configuration, the channel will respond with clear status (within 100 ms from power-up) to Rx messages on subaddresses 2 and 15. Additionally, the channel will respond with clear status and data to Tx messages on subaddress 23. This application demonstrates the usage of the following naibrd 1553 routines.
 

Variables

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

Function Documentation

◆ M1760_RT_Program_EEPROM()

int32_t M1760_RT_Program_EEPROM ( void )

The purpose of the M1760_RT_Program_EEPROM is to illustrate the methods to call in the naibrd library to configure the FTJ or FTK channel as a Remote Terminal, create buffers and legalize Subaddresses 2 and 15 for Rx messages, create buffers and legalize Subaddress 23 for Tx messages and copy the current configuration to the module EEPROM so that when the module is rebooted, the channel will auto-initialize with this configuration. With this configuration, the channel will respond with clear status (within 100 ms from power-up) to Rx messages on subaddresses 2 and 15. Additionally, the channel will respond with clear status and data to Tx messages on subaddress 23. This application demonstrates the usage of the following naibrd 1553 routines.

  • naibrd_1553_GetChannelCount
  • naibrd_1553_Open
  • naibrd_1553_Initialize
  • naibrd_1553_RtGetAddress
  • naibrd_1553_RtDataBlockCreate
  • naibrd_1553_RtDataBlockMapToSubaddress
  • naibrd_1553_RtDataBlockWrite
  • naibrd_1553_RtStart
  • naibrd_1553_RtStop
  • naibrd_1760_SetEEPROMUnlock
  • naibrd_1760_SetEECOPY
  • naibrd_1760_GetDeviceReady
  • naibrd_1553_Free

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_M1760_RT_Program_EEPROM()

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

Variable Documentation

◆ CONFIG_FILE

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