InPlay API
|
HAL eFuse. More...
Enumerations | |
enum | efuse_result_status { EFUSE_ERR_OK = 0, EFUSE_ERR_NO_OPEN = -1, EFUSE_ERR_OS = -2, EFUSE_ERR_EFUSE_BUSY = -3 } |
eFuse status result More... | |
Functions | |
int | hal_efuse_open (void) |
Initialize eFuse driver. More... | |
int | hal_efuse_close (void) |
Stop and cleanup eFuse driver. More... | |
int | hal_efuse_read_word (int word_num, uint32_t *out) |
Read eFuse word. More... | |
int | hal_efuse_write_word (int word_num, uint32_t data) |
Write eFuse word. More... | |
uint32_t | hal_efuse_read_hw_param (void) |
Read HW configuration parameters in efuse from the register Note: efuse's word 0, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly.. More... | |
void | hal_efuse_read_uuid (uint32_t uuid[3]) |
Read UUID in efuse from the registers Note: efuse's word 1 - 3, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly.. More... | |
uint32_t | hal_efuse_read_feature_param (void) |
Read feature parameters in efuse from the register Note: efuse's word 4, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly.. More... | |
uint32_t | hal_efuse_read_vbat_param (void) |
Read vbat parameters in efuse from the register Note: efuse's word 5, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly.. More... | |
uint32_t | hal_efuse_read_temp_param (void) |
Read temperature parameters in efuse from the register Note: efuse's word 6, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly.. More... | |
uint32_t | hal_efuse_read_usr_param (void) |
Read user configuration parameters in efuse from the register Note: efuse's word 7, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly.. More... | |
void | hal_efuse_read_public_keys (uint8_t x[32], uint8_t y[32]) |
Read public keys from efuse. More... | |
HAL eFuse.
enum efuse_result_status |
int hal_efuse_close | ( | void | ) |
Stop and cleanup eFuse driver.
int hal_efuse_open | ( | void | ) |
Initialize eFuse driver.
uint32_t hal_efuse_read_feature_param | ( | void | ) |
Read feature parameters in efuse from the register Note: efuse's word 4, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly..
uint32_t hal_efuse_read_hw_param | ( | void | ) |
Read HW configuration parameters in efuse from the register Note: efuse's word 0, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly..
void hal_efuse_read_public_keys | ( | uint8_t | x[32], |
uint8_t | y[32] | ||
) |
Read public keys from efuse.
[in] | x[32] | Ecc's public key in byte unit |
[in] | y[32] | Ecc's public key in byte unit |
uint32_t hal_efuse_read_temp_param | ( | void | ) |
Read temperature parameters in efuse from the register Note: efuse's word 6, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly..
uint32_t hal_efuse_read_usr_param | ( | void | ) |
Read user configuration parameters in efuse from the register Note: efuse's word 7, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly..
void hal_efuse_read_uuid | ( | uint32_t | uuid[3] | ) |
Read UUID in efuse from the registers Note: efuse's word 1 - 3, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly..
[in] | uuid[3] | A uuid array with each element 32 bits |
uint32_t hal_efuse_read_vbat_param | ( | void | ) |
Read vbat parameters in efuse from the register Note: efuse's word 5, by default, will be read by the HW and store in the register, so SW can retrieve it without accessing efuse directly..
int hal_efuse_read_word | ( | int | word_num, |
uint32_t * | out | ||
) |
Read eFuse word.
[in] | bank_id | eFuse bank ID number to be read. |
[in] | word_num | eFuse bank word number to be read. |
[in] | out | Pointer to write location of eFuse word. |
int hal_efuse_write_word | ( | int | word_num, |
uint32_t | data | ||
) |
Write eFuse word.
[in] | bank_id | eFuse bank ID number to be read. |
[in] | word_num | eFuse bank word number to be read. |
[in] | data | Data to be written to eFuse word. |