bf0_hal_efuse.h

Header file of EFUSE HAL module.

Author

Sifli software development team

Attention

Defines

HAL_EFUSE_BANK_SIZE

EFUSE bank size in bytes

HAL_EFUSE_BANK_NUM

EFUSE bank number

Functions

HAL_StatusTypeDef HAL_EFUSE_Init(void)

Init Efuse controller.

返回值:

void

void HAL_EFUSE_ConfigBypass(bool enabled)

Configure bypass.

参数:
  • enabled – true: enable bypass, false: disable bypass

返回值:

void

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

Write data to efuse starting from bit_offset.

参数:
  • bit_offset – bit_offset in efuse, must be 32bits aligned, bank0: 0~255, bank1: 256~511

  • data – point to the data to be written

  • size – data size in byte, must be multiple of 4bytes and written data cannot cross bank boundary

返回值:

size – successfully written

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

Read data to efuse starting from bit_offset.

参数:
  • bit_offset – bit_offset in efuse, must be 32bits aligned, bank0: 0~255, bank1: 256~511

  • data – point to buffer to save read data

  • size – data size in byte, must be multiple of 4bytes and read data cannot cross bank boundary

返回值:

size – successfully read