Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
|
EEPROM Interface . More...
Functions | |
int | eeprom_read (const struct device *dev, off_t offset, void *data, size_t len) |
Read data from EEPROM. | |
int | eeprom_write (const struct device *dev, off_t offset, const void *data, size_t len) |
Write data to EEPROM. | |
size_t | eeprom_get_size (const struct device *dev) |
Get the size of the EEPROM in bytes. | |
EEPROM Interface .
#include <zephyr/drivers/eeprom.h>
Get the size of the EEPROM in bytes.
dev | EEPROM device. |
#include <zephyr/drivers/eeprom.h>
Read data from EEPROM.
dev | EEPROM device |
offset | Address offset to read from. |
data | Buffer to store read data. |
len | Number of bytes to read. |
#include <zephyr/drivers/eeprom.h>
Write data to EEPROM.
dev | EEPROM device |
offset | Address offset to write data to. |
data | Buffer with data to write. |
len | Number of bytes to write. |