Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
eeprom_driver_api Struct Reference

Driver Operations EEPROM driver operations More...

#include <zephyr/drivers/eeprom.h>

Data Fields

eeprom_api_read read
  REQ Read data from EEPROM.
eeprom_api_write write
  REQ Write data to EEPROM.
eeprom_api_size size
  REQ Get the size of the EEPROM in bytes.

Detailed Description

Driver Operations EEPROM driver operations

This is the driver API structure any EEPROM driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.

Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ read

eeprom_api_read eeprom_driver_api::read

REQ Read data from EEPROM.

◆ size

eeprom_api_size eeprom_driver_api::size

REQ Get the size of the EEPROM in bytes.

◆ write

eeprom_api_write eeprom_driver_api::write

REQ Write data to EEPROM.


The documentation for this struct was generated from the following file: