Macros | Functions | Variables
fsl_ocotp.c File Reference
#include "fsl_ocotp.h"
Include dependency graph for fsl_ocotp.c:

Go to the source code of this file.

Macros

#define FSL_COMPONENT_ID   "platform.drivers.ocotp"
 
#define OCOTP_TIMING_PROGRAM_NS   (uint64_t)10000
 
#define OCOTP_TIMING_READ_NS   (uint64_t)40
 
#define OCOTP_TIMING_RELEX_NS   (uint64_t)100
 
#define OCOTP_TIMING_WAIT_NS   (uint64_t)150
 
#define OCOTP_WRITE_UNLOCK_KEY   (0x3E77)
 

Functions

void OCOTP_Deinit (OCOTP_Type *base)
 De-initializes OCOTP controller. More...
 
void OCOTP_Init (OCOTP_Type *base, uint32_t srcClock_Hz)
 Initializes OCOTP controller. More...
 
uint32_t OCOTP_ReadFuseShadowRegister (OCOTP_Type *base, uint32_t address)
 Read the fuse shadow register with the fuse addess. More...
 
void OCOTP_ReloadShadowRegister (OCOTP_Type *base)
 Reload the shadow register. This function will help reload the shadow register without reseting the OCOTP module. Please make sure the OCOTP has been initialized before calling this API. More...
 
static void OCOTP_SetReadTiming (OCOTP_Type *base, ocotp_timing_t timingConfig)
 Set read timing configuration. More...
 
static void OCOTP_SetWriteTiming (OCOTP_Type *base, ocotp_timing_t timingConfig)
 Set write timing configuration. More...
 
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 not locked while calling this API. More...
 

Variables

ocotp_timing_t s_timingConfig
 

Macro Definition Documentation

◆ FSL_COMPONENT_ID

#define FSL_COMPONENT_ID   "platform.drivers.ocotp"

Definition at line 15 of file fsl_ocotp.c.

◆ OCOTP_TIMING_PROGRAM_NS

#define OCOTP_TIMING_PROGRAM_NS   (uint64_t)10000

Definition at line 23 of file fsl_ocotp.c.

◆ OCOTP_TIMING_READ_NS

#define OCOTP_TIMING_READ_NS   (uint64_t)40

Definition at line 25 of file fsl_ocotp.c.

◆ OCOTP_TIMING_RELEX_NS

#define OCOTP_TIMING_RELEX_NS   (uint64_t)100

Definition at line 21 of file fsl_ocotp.c.

◆ OCOTP_TIMING_WAIT_NS

#define OCOTP_TIMING_WAIT_NS   (uint64_t)150

Definition at line 19 of file fsl_ocotp.c.

◆ OCOTP_WRITE_UNLOCK_KEY

#define OCOTP_WRITE_UNLOCK_KEY   (0x3E77)

Definition at line 28 of file fsl_ocotp.c.

Function Documentation

◆ OCOTP_SetReadTiming()

static void OCOTP_SetReadTiming ( OCOTP_Type base,
ocotp_timing_t  timingConfig 
)
static

Set read timing configuration.

Parameters
baseOCOTP peripheral base addess.
timingConfigconfiguration of timing.

Definition at line 92 of file fsl_ocotp.c.

◆ OCOTP_SetWriteTiming()

static void OCOTP_SetWriteTiming ( OCOTP_Type base,
ocotp_timing_t  timingConfig 
)
static

Set write timing configuration.

Parameters
baseOCOTP peripheral base addess.
timingConfigconfiguration of timing.

Definition at line 102 of file fsl_ocotp.c.

Variable Documentation

◆ s_timingConfig

ocotp_timing_t s_timingConfig

Definition at line 53 of file fsl_ocotp.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57