Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
EEPROM Driver Backend API

Data Structures

struct  eeprom_driver_api
  Driver Operations EEPROM driver operations More...

Typedefs

typedef int(* eeprom_api_read) (const struct device *dev, off_t offset, void *data, size_t len)
 Callback API upon reading from the EEPROM.
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.

Detailed Description

This group contains the API type definitions, callback signatures, and other helpers required to implement a EEPROM driver.

Typedef Documentation

◆ eeprom_api_read

typedef int(* eeprom_api_read) (const struct device *dev, off_t offset, void *data, size_t len)

#include <zephyr/drivers/eeprom.h>

Callback API upon reading from the EEPROM.

See eeprom_read() for argument description

◆ eeprom_api_size

typedef size_t(* eeprom_api_size) (const struct device *dev)

#include <zephyr/drivers/eeprom.h>

Callback API upon getting the EEPROM size.

See eeprom_get_size() for argument description

◆ eeprom_api_write

typedef int(* eeprom_api_write) (const struct device *dev, off_t offset, const void *data, size_t len)

#include <zephyr/drivers/eeprom.h>

Callback API upon writing to the EEPROM.

See eeprom_write() for argument description