|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Interfaces for Electrically Erasable Programmable Read-Only Memory (EEPROM). More...
Files | |
| file | eeprom.h |
| Main header file for EEPROM driver API. | |
Data Structures | |
| struct | eeprom_driver_api |
| @driver_ops{EEPROM} 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. | |
| typedef int(* | eeprom_api_read) (const struct device *dev, off_t offset, void *data, size_t len) |
| @def_driverbackendgroup{EEPROM,eeprom_interface} | |
| typedef int(* | eeprom_api_write) (const struct device *dev, off_t offset, const void *data, size_t len) |
| Callback API upon writing to the EEPROM. | |
| typedef size_t(* | eeprom_api_size) (const struct device *dev) |
| Callback API upon getting the EEPROM size. | |
Interfaces for Electrically Erasable Programmable Read-Only Memory (EEPROM).
#include <eeprom.h>
@def_driverbackendgroup{EEPROM,eeprom_interface}
Callback API upon reading from the EEPROM. See eeprom_read() for argument description
#include <eeprom.h>
Callback API upon getting the EEPROM size.
See eeprom_get_size() for argument description
| typedef int(* eeprom_api_write) (const struct device *dev, off_t offset, const void *data, size_t len) |
#include <eeprom.h>
Callback API upon writing to the EEPROM.
See eeprom_write() for argument description
#include <eeprom.h>
Get the size of the EEPROM in bytes.
| dev | EEPROM device. |
#include <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 <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. |