PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
otp.h File Reference
#include <stdint.h>
#include <stdbool.h>

Enumerations

enum  OtpWriteResult { OtpWriteSuccess = 0 , OtpWriteFailAlreadyWritten = 1 , OtpWriteFailCorrupt = 2 }
 Result of otp_write_slot(). More...
 

Functions

uint8_t * otp_get_lock (const uint8_t index)
 Get the lock byte of a slot.
 
bool otp_is_locked (const uint8_t index)
 Check whether the OTP storage is locked.
 
char * otp_get_slot (const uint8_t index)
 Read a slot.
 
OtpWriteResult otp_write_slot (const uint8_t index, const char *value)
 Write a string to an unwritten slot.