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

Functions

static bool_t Run_M1760_EEPROM_Copy (int32_t cardIndex, int32_t module, uint32_t modid)
 
bool_t Get1760EEPROMWriteZeros (bool_t defWriteZeros, bool_t *bWriteZeros)
 
int32_t M1760_EEPROM_Copy (void)
 The purpose of the M1760_EEPROM_Copy application is to illustrate the methods to call in the naibrd library to program the serial EEPROM with data from the HI-6131 registers and RAM. Only FTJ/FTK modules are supported in this application.
 

Variables

static const int8_t * CONFIG_FILE = (int8_t *)"default_1760_EEPROMCopy.txt"
 
static const int32_t DEF_CHANNEL = 1
 
static const int16_t DEF_DEV_NUM = 1
 
static const bool_t DEF_WRITE_ZEROS = NAI_FALSE
 

Function Documentation

◆ Get1760EEPROMWriteZeros()

bool_t Get1760EEPROMWriteZeros ( bool_t defWriteZeros,
bool_t * bWriteZeros )

◆ M1760_EEPROM_Copy()

int32_t M1760_EEPROM_Copy ( void )

The purpose of the M1760_EEPROM_Copy application is to illustrate the methods to call in the naibrd library to program the serial EEPROM with data from the HI-6131 registers and RAM. Only FTJ/FTK modules are supported in this application.

NOTE: To run this application and copy to EEPROM successfully after power-up, the device must be reset at least once via software by setting and resetting the Master Reset bit. This is automatically performed in the call to naibrd_1760_Initialize(). For instance, running the M1553_RT_Receive sample application on the desired 1760 channel, then running M1760_EEPROM_Copy on the same channel should allow successful programming of the EEPROM.

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

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

Variable Documentation

◆ CONFIG_FILE

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

◆ DEF_CHANNEL

const int32_t DEF_CHANNEL = 1
static

◆ DEF_DEV_NUM

const int16_t DEF_DEV_NUM = 1
static

◆ DEF_WRITE_ZEROS

const bool_t DEF_WRITE_ZEROS = NAI_FALSE
static