Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Data Structures

struct  otp_driver_api
  Driver Operations OTP driver operations More...

Typedefs

typedef int(* otp_api_read) (const struct device *dev, off_t offset, void *data, size_t len)
 Callback API upon reading from the OTP memory.
typedef int(* otp_api_program) (const struct device *dev, off_t offset, const void *data, size_t len)
 Callback API upon writing to the OTP memory.

Detailed Description

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

Typedef Documentation

◆ otp_api_program

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

#include <zephyr/drivers/otp.h>

Callback API upon writing to the OTP memory.

See otp_program() for argument description

◆ otp_api_read

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

#include <zephyr/drivers/otp.h>

Callback API upon reading from the OTP memory.

See otp_read() for argument description