思澈科技软件开发工具包  2.20

Macros

#define HAL_EFUSE_BANK_SIZE   32
 
#define HAL_EFUSE_BANK_NUM   (4)
 

Functions

HAL_StatusTypeDef HAL_EFUSE_Init (void)
 Init Efuse controller. More...
 
void HAL_EFUSE_ConfigBypass (bool enabled)
 Configure bypass. More...
 
int32_t HAL_EFUSE_Write (uint16_t bit_offset, uint8_t *data, int32_t size)
 Write data to efuse starting from bit_offset. More...
 
int32_t HAL_EFUSE_Read (uint16_t bit_offset, uint8_t *data, int size)
 Read data to efuse starting from bit_offset. More...
 

Detailed Description

Macro Definition Documentation

◆ HAL_EFUSE_BANK_NUM

#define HAL_EFUSE_BANK_NUM   (4)

EFUSE bank number

◆ HAL_EFUSE_BANK_SIZE

#define HAL_EFUSE_BANK_SIZE   32

EFUSE bank size in bytes

Function Documentation

◆ HAL_EFUSE_ConfigBypass()

void HAL_EFUSE_ConfigBypass ( bool  enabled)

Configure bypass.

Parameters
enabledtrue: enable bypass, false: disable bypass
Return values
void

◆ HAL_EFUSE_Init()

HAL_StatusTypeDef HAL_EFUSE_Init ( void  )

Init Efuse controller.

Return values
void

◆ HAL_EFUSE_Read()

int32_t HAL_EFUSE_Read ( uint16_t  bit_offset,
uint8_t *  data,
int  size 
)

Read data to efuse starting from bit_offset.

Parameters
bit_offsetbit_offset in efuse, must be 32bits aligned, bank0: 0~255, bank1: 256~511
datapoint to buffer to save read data
sizedata size in byte, must be multiple of 4bytes and read data cannot cross bank boundary
Return values
sizesuccessfully read

◆ HAL_EFUSE_Write()

int32_t HAL_EFUSE_Write ( uint16_t  bit_offset,
uint8_t *  data,
int32_t  size 
)

Write data to efuse starting from bit_offset.

Parameters
bit_offsetbit_offset in efuse, must be 32bits aligned, bank0: 0~255, bank1: 256~511
datapoint to the data to be written
sizedata size in byte, must be multiple of 4bytes and written data cannot cross bank boundary
Return values
sizesuccessfully written