Header file containing functions prototypes of eFuse LL library. More...
#include "gr55xx.h"
Go to the source code of this file.
Macros | |
#define | LL_EFUSE_WRITE_KEYRAM EFUSE_OPER_WRITE_KEYRAM |
#define | LL_EFUSE_READ_TRIM EFUSE_OPER_READ_TRIM |
#define | LL_EFUSE_CRC_CHECK EFUSE_OPER_CRC_CHECK |
#define | LL_EFUSE_INIT_CHECK EFUSE_OPER_INIT_CHECK |
#define | LL_EFUSE_TEST_READ EFUSE_OPER_RD_TEST_MODE |
#define | LL_EFUSE_WRITE_KEYRAM_BUSY EFUSE_STATUS_WRITE_KEYRAM_BUSY |
#define | LL_EFUSE_READ_TRIM_DONE EFUSE_STATUS_READ_TRIM_DONE |
#define | LL_EFUSE_CRC_CHECK_DONE EFUSE_STATUS_CRC_CHECK_DONE |
#define | LL_EFUSE_CRC_CHECK_SUCCESS EFUSE_STATUS_TRIM_CRC_SUCCESS |
#define | LL_EFUSE_INIT_CHECK_DONE EFUSE_STATUS_INIT_DONE |
#define | LL_EFUSE_INIT_CHECK_SUCCESS EFUSE_STATUS_INIT_SUCCESS |
#define | LL_EFUSE_WRITE_DONE EFUSE_STATUS_WRITE_DONE |
#define | LL_EFUSE_TEST_DONE EFUSE_STATUS_TEST_MODE_DONE |
#define | LL_EFUSE_PWR_CTL_EN_DONE MCU_SUB_EFUSE_PWR_CTL0_EN_DONE |
#define | LL_EFUSE_PWR_CTL_DIS_DONE MCU_SUB_EFUSE_PWR_CTL0_DIS_DONE |
#define | LL_EFUSE_WriteReg(__instance__, __REG__, __VALUE__) WRITE_REG(__instance__->__REG__, (__VALUE__)) |
Write a value in eFuse register. More... | |
#define | LL_EFUSE_ReadReg(__instance__, __REG__) READ_REG(__instance__->__REG__) |
Read a value in eFuse register. More... | |
Functions | |
__STATIC_INLINE void | ll_efuse_set_tpro (efuse_regs_t *EFUSEx, uint32_t time) |
Set eFuse program time. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_tpro (efuse_regs_t *EFUSEx) |
Get eFuse program time. More... | |
__STATIC_INLINE void | ll_efuse_enable_main_backup (efuse_regs_t *EFUSEx) |
Enable main area OR backup area function when read eFuse through APB bus. More... | |
__STATIC_INLINE void | ll_efuse_disable_main_backup (efuse_regs_t *EFUSEx) |
Disable main area OR backup area function when read eFuse through APB bus. More... | |
__STATIC_INLINE uint32_t | ll_efuse_is_enabled_main_backup (efuse_regs_t *EFUSEx) |
Check if main area OR backup area reading function is enabled. More... | |
__STATIC_INLINE void | ll_efuse_set_crc_check_len (efuse_regs_t *EFUSEx, uint32_t length) |
Set CRC check length. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_crc_check_len (efuse_regs_t *EFUSEx) |
Get CRC check length. More... | |
__STATIC_INLINE void | ll_efuse_set_write_interval (efuse_regs_t *EFUSEx, uint32_t interval) |
Set the interval number of clk cycles between two bit fuse. More... | |
__STATIC_INLINE uint8_t | ll_efuse_get_write_interval (efuse_regs_t *EFUSEx) |
Get the interval number of clk cycles between two bit fuse. More... | |
__STATIC_INLINE void | ll_efuse_set_pgmen (efuse_regs_t *EFUSEx, uint8_t value) |
Enable eFuse PGENB sigal. More... | |
__STATIC_INLINE uint8_t | ll_efuse_get_pgmen (efuse_regs_t *EFUSEx) |
Get eFuse PGENB sigal. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_test_mode (efuse_regs_t *EFUSEx) |
Get test mode. More... | |
__STATIC_INLINE void | ll_efuse_set_operation (efuse_regs_t *EFUSEx, uint32_t mode) |
Set eFuse operation mode. More... | |
__STATIC_INLINE uint32_t | ll_efuse_is_active_flag (efuse_regs_t *EFUSEx, uint32_t flag) |
Check active flag. More... | |
__STATIC_INLINE void | ll_efuse_set_key_mask (efuse_regs_t *EFUSEx, uint32_t mask) |
Set key mask. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_key_mask (efuse_regs_t *EFUSEx) |
Get key mask. More... | |
__STATIC_INLINE void | ll_efuse_set_crc_check_addr (efuse_regs_t *EFUSEx, uint32_t address) |
Set CRC check start address. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_crc_check_addr (efuse_regs_t *EFUSEx) |
Get CRC check start address. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_crc_check_result (efuse_regs_t *EFUSEx) |
Get CRC check results. More... | |
__STATIC_INLINE void | ll_efuse_set_trim_addr (efuse_regs_t *EFUSEx, uint32_t address) |
Set read trim start address. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_trim_addr (efuse_regs_t *EFUSEx) |
Get read trim start address. More... | |
__STATIC_INLINE void | ll_efuse_set_trim_length (efuse_regs_t *EFUSEx, uint32_t length) |
Set read trim length. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_trim_length (efuse_regs_t *EFUSEx) |
Get read trim length. More... | |
__STATIC_INLINE uint32_t | ll_efuse_get_trim_value (efuse_regs_t *EFUSEx, uint32_t indx) |
Get trim value. More... | |
__STATIC_INLINE void | ll_efuse_enable_power (efuse_regs_t *EFUSEx) |
eFuse v1.1 power on. This power must be turn on before eFuse operation. More... | |
__STATIC_INLINE void | ll_efuse_disable_power (efuse_regs_t *EFUSEx) |
eFuse v1.1 power off. More... | |
__STATIC_INLINE void | ll_efuse_enable_write_power (efuse_regs_t *EFUSEx) |
eFuse v2.5 power on. This power must be turn on before eFuse writting, and trun off when eFuse reading. More... | |
__STATIC_INLINE void | ll_efuse_disable_write_power (efuse_regs_t *EFUSEx) |
eFuse v2.5 power off. More... | |
__STATIC_INLINE void | ll_efuse_set_controller_power_timing (efuse_regs_t *EFUSEx, uint16_t vddq_0, uint16_t vddq_1, uint16_t vddq_2) |
Set Efulse power controller timing pararmeter. More... | |
__STATIC_INLINE void | ll_efuse_enable_controller_power_begin (efuse_regs_t *EFUSEx) |
Power sequencer begin. More... | |
__STATIC_INLINE void | ll_efuse_enable_controller_power_stop (efuse_regs_t *EFUSEx) |
Power sequencer begin. More... | |
__STATIC_INLINE void | ll_efuse_disable_controller_power (efuse_regs_t *EFUSEx) |
Power sequencer begin. More... | |
__STATIC_INLINE uint32_t | ll_efuse_is_controller_power_flag (efuse_regs_t *EFUSEx, uint32_t flag) |
Check power controller active flag. More... | |
Header file containing functions prototypes of eFuse LL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file gr55xx_ll_efuse.h.