EFUSE

[English]

EFUSE API Status

API

BK7235A

BK7235B

BK7235

bk_efuse_driver_init()

Y

Y

Y

bk_efuse_driver_deinit()

Y

Y

Y

bk_efuse_write()

Y

Y

Y

bk_efuse_read()

Y

Y

Y

Efuse API Reference

Header File

Functions

bk_err_t bk_efuse_driver_init(void)

Init the EFUSE driver.

This API init the resoure common:

  • Init EFUSE driver control memory

Attention

1. This API should be called before any other EFUSE APIs.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_efuse_driver_deinit(void)

Deinit the EFUSE driver.

This API free all resource related to EFUSE and disable EFUSE.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_efuse_write_byte(uint8_t addr, uint8_t data)

Efuse write operation.

参数
  • addr – efuse write address

  • data – efuse write data

返回

  • BK_OK: succeed

  • BK_ERR_EFUSE_DRIVER_NOT_INIT: EFUSE driver not init

  • BK_ERR_EFUSE_ADDR_OUT_OF_RANGE: EFUSE address is out of range

  • BK_ERR_EFUSE_CANNOT_WRTIE: EFUSE cannot write, cannot change bit from 1 to 0

  • BK_ERR_EFUSE_WRTIE_NOT_EQUAL: EFUSE data read is not equal to the data written

  • others: other errors.

bk_err_t bk_efuse_read_byte(uint8_t addr, uint8_t *data)

Efuse read operation.

参数
  • addr – read address

  • data – pointer to accept value of efuse read data

返回

  • BK_OK: succeed

  • BK_ERR_EFUSE_DRIVER_NOT_INIT: EFUSE driver not init

  • BK_ERR_EFUSE_ADDR_OUT_OF_RANGE: EFUSE address is out of range

  • others: other errors.

Efuse API Typedefs

Header File

Header File

Macros

BK_ERR_EFUSE_DRIVER_NOT_INIT

EFUSE driver not init

BK_ERR_EFUSE_ADDR_OUT_OF_RANGE

EFUSE address is out of range

BK_ERR_EFUSE_CANNOT_WRTIE

EFUSE cannot write, cannot change bit from 1 to 0

BK_ERR_EFUSE_WRTIE_NOT_EQUAL

EFUSE data read is not equal to the data written

BK_ERR_EFUSE_READ_FAIL

EFUSE data read fail

Type Definitions

typedef uint8_t efuse_unit_t

efuse uint id