Go to the documentation of this file.
23 #define FSL_OCOTP_DRIVER_VERSION (MAKE_VERSION(2, 0, 1))
56 #if defined(__cplusplus)
147 #if defined(__cplusplus)
static bool OCOTP_CheckBusyStatus(OCOTP_Type *base)
Checking the BUSY bit in CTRL register. Checking this BUSY bit will help confirm if the OCOTP control...
static uint32_t OCOTP_GetVersion(OCOTP_Type *base)
Get the OCOTP controller version from the register.
status_t OCOTP_WriteFuseShadowRegister(OCOTP_Type *base, uint32_t address, uint32_t data)
Write the fuse shadow register with the fuse addess and data. Please make sure the wrtie address is n...
void OCOTP_Deinit(OCOTP_Type *base)
De-initializes OCOTP controller.
#define OCOTP_CTRL_ERROR_MASK
OCOTP timing structure. Note that, these value are used for calcalating the read/write timings....
#define OCOTP_CTRL_BUSY_MASK
#define OCOTP_CTRL_CLR_ERROR_MASK
void OCOTP_ReloadShadowRegister(OCOTP_Type *base)
Reload the shadow register. This function will help reload the shadow register without reseting the O...
uint32_t OCOTP_ReadFuseShadowRegister(OCOTP_Type *base, uint32_t address)
Read the fuse shadow register with the fuse addess.
static void OCOTP_ClearErrorStatus(OCOTP_Type *base)
Clear the error bit if this bit is set.
#define MAKE_STATUS(group, code)
Construct a status code value from a group and code number.
_ocotp_status
Error codes for the OCOTP driver.
@ kStatus_OCOTP_AccessError
void OCOTP_Init(OCOTP_Type *base, uint32_t srcClock_Hz)
Initializes OCOTP controller.
struct _ocotp_timing ocotp_timing_t
OCOTP timing structure. Note that, these value are used for calcalating the read/write timings....
static bool OCOTP_CheckErrorStatus(OCOTP_Type *base)
Checking the ERROR bit in CTRL register.
int32_t status_t
Type used for all status and error return values.