8#ifndef APP_MODULE_EEDATA_H_
9#define APP_MODULE_EEDATA_H_
12#define MAX_BYTES_PER_SUBINDEX 32
13#define MAX_EEPROM_MEMORY 0x1800
14#define EEPROM_RECORD_SIZE 32
15#define EEPROM_ERASE_SIZE 0x60
16#define EEPROM_PAGE_SIZE 3
17#define EEPROM_START_ADDRESS ((127 - EEPROM_PAGE_SIZE) * FLASH_PAGE_SIZE)
19#define MAX_FLASH_MEMORY FLASH_SIZE
20#define FLASH_RECORD_SIZE 32
#define UNS8
Unsigned int8 representation in CANFest.
#define UNS16
Unsigned int16 representation in CANFest.
#define UNS32
Unsigned int32 representation in CANFest.
UNS8 CheckRestoreFlag(void)
checks whether or not RestoreValues() should be run.
void EEPROM_write(UNS16 address, UNS8 *data, UNS16 length)
Writes bytes to a specified location in EEPROM.
void RestoreValues(void)
Restores the values of custom OD entries (specified in RestoreList OD index 0x2900) to the OD from EE...
void EEPROM_read(UNS16 address, UNS8 *data, UNS16 length)
Reads bytes from a specified location in EEPROM.
void ResetToODDefault(void)
invoked by nmt_master – writes 0's to size causing bypass of OD restore, then causes reset
void ResetModule(void)
resets module, called by ResetToODDefault()
UNS8 EEPROM_commit()
Commits edits to EEPROM from ram to flash.
void SaveValues(void)
Saves the values of custom OD entries (specified in RestoreList OD index 0x2900) to EEPROM from the O...
void EEPROM_erase(UNS8 space)
writes 0xFF to entire EEPROM (6KB).
UNS8 ReadLocalFlashData(UNS32 nvAddress, UNS8 *data, UNS8 numData)
reads CPU based flash data
UNS8 EEPROM_open()
Copies the EEPROM into ram for modification by EEPROM_write()