|
Zephyr Project API 4.3.99
A Scalable Open Source RTOS
|
Interfaces for One Time Programmable (OTP) Memory. More...
Files | |
| file | otp.h |
| Main header file for OTP driver API. | |
Data Structures | |
| struct | otp_driver_api |
| @driver_ops{OTP} More... | |
Functions | |
| int | otp_read (const struct device *dev, off_t offset, void *data, size_t len) |
| Read data from OTP memory. | |
| int | otp_program (const struct device *dev, off_t offset, const void *data, size_t len) |
| Program data to the given OTP memory. | |
| typedef int(* | otp_api_read) (const struct device *dev, off_t offset, void *data, size_t len) |
| @def_driverbackendgroup{OTP,otp_interface} | |
| 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. | |
Interfaces for One Time Programmable (OTP) Memory.
| typedef int(* otp_api_program) (const struct device *dev, off_t offset, const void *data, size_t len) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/otp.h>
Callback API upon writing to the OTP memory.
See otp_program() for argument description
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/otp.h>
@def_driverbackendgroup{OTP,otp_interface}
Callback API upon reading from the OTP memory. See otp_read() for argument description
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/otp.h>
Program data to the given OTP memory.
| dev | OTP device |
| offset | Address offset to program data to. |
| data | Buffer with data to program. |
| len | Number of bytes to program. |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/otp.h>
Read data from OTP memory.
| dev | OTP device |
| offset | Address offset to read from. |
| data | Buffer to store read data. |
| len | Number of bytes to read. |