Go to the documentation of this file.
152 #define HAL_EFUSE_ERROR_NONE ((uint32_t)0x00000000)
153 #define HAL_EFUSE_ERROR_TIMEOUT ((uint32_t)0x00000001)
154 #define HAL_EFUSE_ERROR_INVALID_PARAM ((uint32_t)0x00000002)
160 #define EFUSE_FLAG_INIT_CHECK_DONE LL_EFUSE_INIT_CHECK_DONE
161 #define EFUSE_FLAG_INIT_CHECK_SUCCESS LL_EFUSE_INIT_CHECK_SUCCESS
162 #define EFUSE_FLAG_WRITE_DONE LL_EFUSE_WRITE_DONE
168 #define EFUSE_LAYOUT_UID_FAB (0x00)
169 #define EFUSE_LAYOUT_UID_YEAR (0x03)
170 #define EFUSE_LAYOUT_UID_MON (0x04)
171 #define EFUSE_LAYOUT_UID_LOT_ID (0x05)
172 #define EFUSE_LAYOUT_UID_WAFER_ID (0x0D)
173 #define EFUSE_LAYOUT_UID_WAFER_X (0x0E)
174 #define EFUSE_LAYOUT_UID_WAFER_Y (0x0F)
176 #define EFUSE_LAYOUT_FLASH_SE_ADDR1 (0x10)
177 #define EFUSE_LAYOUT_FLASH_SE_ADDR2 (0x14)
179 #define EFUSE_LAYOUT_USER_START (0x18)
180 #define EFUSE_LAYOUT_USER_END (0x1F)
195 #define __HAL_EFUSE_ENABLE_PGENB(__HANDLE__) ll_efuse_enable_pgenb((__HANDLE__)->p_instance)
201 #define __HAL_EFUSE_DISABLE_PGENB(__HANDLE__) ll_efuse_disable_pgenb((__HANDLE__)->p_instance)
212 #define __HAL_EFUSE_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__)) != 0) ? SET : RESET)
hal_status_t hal_efuse_read(efuse_handle_t *p_efuse, uint32_t word_offset, uint32_t *p_data, uint32_t nword)
Read the eFuse memory data.
struct _efuse_handle efuse_handle_t
eFuse handle Structure definition
eFuse handle Structure definition
void(* efuse_msp_init)(efuse_handle_t *p_efuse)
struct _hal_efuse_callback hal_efuse_callback_t
HAL_EFUSE Callback function definition.
hal_status_t hal_efuse_write(efuse_handle_t *p_efuse, uint32_t word_offset, const uint32_t *p_data, uint32_t nword)
Write the eFuse memory data.
hal_status_t hal_efuse_init(efuse_handle_t *p_efuse)
Initialize the eFuse according to the specified parameters in the efuse_init_t and initialize the ass...
HAL_EFUSE Callback function definition.
efuse_regs_t * p_instance
void hal_efuse_msp_deinit(efuse_handle_t *p_efuse)
De-initialize the eFuse MSP.
hal_status_t hal_efuse_initial_value_check(efuse_handle_t *p_efuse)
Check the eFuse memory with 0, if memory are all 0, return HAL_OK, then return HAL_ERROR.
hal_status_t
HAL Status structures definition.
This file contains HAL common definitions, enumeration, macros and structures definitions.
Header file containing functions prototypes of eFuse LL library.
__IO hal_efuse_state_t state
hal_status_t hal_efuse_deinit(efuse_handle_t *p_efuse)
De-initialize the eFuse peripheral.
void hal_efuse_msp_init(efuse_handle_t *p_efuse)
Initialize the eFuse MSP.
hal_efuse_state_t
HAL eFuse State Enumerations definition.
void(* efuse_msp_deinit)(efuse_handle_t *p_efuse)