EEPROM¶
Overview¶
The EEPROM API provides read and write access to Electrically Erasable Programmable Read-Only Memory (EEPROM) devices.
EEPROMs have an erase block size of 1 byte, a long lifetime, and allow overwriting data on byte-by-byte access.
API Reference¶
-
group
eeprom_interface
EEPROM Interface.
Typedefs
Functions
-
int
eeprom_read
(const struct device *dev, off_t offset, void *data, size_t len)¶ Read data from EEPROM.
- Return
0 on success, negative errno code on failure.
- Parameters
dev
: EEPROM deviceoffset
: Address offset to read from.data
: Buffer to store read data.len
: Number of bytes to read.
-
struct
eeprom_driver_api
¶ - #include <eeprom.h>
-
int