Read data from and write data to non-volatile memory. More...
Modules | |
AVR EEPROM | |
AVR on-chip EEPROM support. | |
Functions | |
int | NutNvMemLoad (unsigned int addr, void *buff, size_t siz) |
Read data from non-volatile memory. | |
int | NutNvMemSave (unsigned int addr, CONST void *buff, size_t len) |
Save data in non-volatile memory. |
Read data from and write data to non-volatile memory.
Non-volatile data memory is typically used to store configuration settings. Nut/OS currently supports three types of non-volatile storage:
Nut/OS uses non-volatile memory to store the _CONFOS structure at location CONFNET_EE_OFFSET and the _CONFNET structure at location CONFNET_EE_OFFSET.
int NutNvMemLoad | ( | unsigned int | addr, |
void * | buff, | ||
size_t | siz | ||
) |
Read data from non-volatile memory.
This routine provides platform independent access to non-volatile configuration data.
addr | Location to read from. |
buff | Pointer to a buffer that receives the data. |
siz | Number of bytes to read. |
Definition at line 107 of file nvmem.c.
References At45dbParamRead(), At49bvParamRead(), At91EfcParamRead(), EEReadData(), OnChipNvMemLoad(), SpiAt45dConfigRead(), and X12EepromRead().
Referenced by findenv(), NutLoadConfig(), and NutNetLoadConfig().
int NutNvMemSave | ( | unsigned int | addr, |
CONST void * | buff, | ||
size_t | len | ||
) |
Save data in non-volatile memory.
This routine provides platform independent access to non-volatile configuration data.
addr | Location to write to. |
buff | Pointer to a buffer that contains the data. |
len | Number of bytes to write. |
Definition at line 140 of file nvmem.c.
References At45dbParamWrite(), At49bvParamWrite(), At91EfcParamWrite(), EEWriteData(), OnChipNvMemSave(), SpiAt45dConfigWrite(), and X12EepromWrite().
Referenced by NutNetSaveConfig(), and NutSaveConfig().