AVR EEPROM helper.
More...
Go to the source code of this file.
◆ eeprom_adr_t
◆ eeprom_read()
| static void eeprom_read |
( |
void *const | data, |
|
|
const eeprom_adr_t | adr, |
|
|
const size_t | sz ) |
|
inlinestatic |
eeprom_read_block wrapper
- Parameters
-
| [out] | data | destination data address |
| [in] | adr | EEPROM address |
| [in] | sz | number of bytes to read |
◆ eeprom_read_str()
| static void eeprom_read_str |
( |
char | str[], |
|
|
const eeprom_adr_t | adr, |
|
|
const size_t | sz ) |
|
inlinestatic |
Reads a string from EEPROM.
- Parameters
-
| [out] | str | destination string buffer |
| [in] | adr | EEPROM address |
| [in] | sz | number of characters to read |
◆ eeprom_write()
| static void eeprom_write |
( |
const void *const | data, |
|
|
eeprom_adr_t | adr, |
|
|
const size_t | sz ) |
|
inlinestatic |
eeprom_update_block wrapper
- Parameters
-
| [in] | data | source data address |
| [out] | adr | EEPROM address |
| [in] | sz | number of bytes to read |
◆ eeprom_write_str()
| static void eeprom_write_str |
( |
const char | str[], |
|
|
eeprom_adr_t | adr, |
|
|
const size_t | sz ) |
|
inlinestatic |
Writes a string to EEPROM.
- Parameters
-
| [in] | str | source string |
| [out] | adr | EEPROM address |
| [in] | sz | number of characters to write |