|
Zephyr API Documentation 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. | |
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. | |
Interfaces for One Time Programmable (OTP) Memory.
#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 <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. |