Macros | Functions
gr55xx_ll_efuse.h File Reference

Header file containing functions prototypes of eFuse LL library. More...

`#include "gr55xx.h"`
Include dependency graph for gr55xx_ll_efuse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | LL_EFUSE_WRITE_KEYRAM EFUSE_OPER_WRITE_KEYRAM
| Read fwkay and rootkey from eFuse, and write to keyram More...
#define | LL_EFUSE_READ_TRIM EFUSE_OPER_READ_TRIM
| Read analog trim from eFuse More...
#define | LL_EFUSE_CRC_CHECK EFUSE_OPER_CRC_CHECK
| Read the special eFuse addr, and calculate CRC value More...
#define | LL_EFUSE_INIT_CHECK EFUSE_OPER_INIT_CHECK
| Read the whole eFuse value, and check this value with 0. More...
#define | LL_EFUSE_TEST_READ EFUSE_OPER_RD_TEST_MODE
| Read eFuse test mode from eFuse More...
#define | LL_EFUSE_WRITE_KEYRAM_BUSY EFUSE_STATUS_WRITE_KEYRAM_BUSY
| Write keyram operation is in processing More...
#define | LL_EFUSE_READ_TRIM_DONE EFUSE_STATUS_READ_TRIM_DONE
| Read trim from eFuse has done More...
#define | LL_EFUSE_CRC_CHECK_DONE EFUSE_STATUS_CRC_CHECK_DONE
| eFuse CRC check done More...
#define | LL_EFUSE_CRC_CHECK_SUCCESS EFUSE_STATUS_TRIM_CRC_SUCCESS
| CRC check success More...
#define | LL_EFUSE_INIT_CHECK_DONE EFUSE_STATUS_INIT_DONE
| eFuse initial value check done More...
#define | LL_EFUSE_INIT_CHECK_SUCCESS EFUSE_STATUS_INIT_SUCCESS
| eFuse initial value check success More...
#define | LL_EFUSE_WRITE_DONE EFUSE_STATUS_WRITE_DONE
| eFuse one word write done More...
#define | LL_EFUSE_TEST_DONE EFUSE_STATUS_TEST_MODE_DONE
| Read from eFuse has done in test mode More...
#define | LL_EFUSE_PWR_CTL_EN_DONE MCU_SUB_EFUSE_PWR_CTL0_EN_DONE
| eFuse power enable done More...
#define | LL_EFUSE_PWR_CTL_DIS_DONE MCU_SUB_EFUSE_PWR_CTL0_DIS_DONE
| eFuse power disable done More...
#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 read address through APB bus be a main address or backup address. More...
__STATIC_INLINE void | ll_efuse_disable_main_backup (efuse_regs_t *EFUSEx)
| Disable read address through APB bus be a main address or backup address. More...
__STATIC_INLINE uint32_t | ll_efuse_is_enabled_main_backup (efuse_regs_t *EFUSEx)
| Check if read address through APB bus be a main address or backup address 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_interval (efuse_regs_t *EFUSEx, uint32_t interval)
| Set the interval number of clk cycles between two bit fuse. More...
__STATIC_INLINE uint32_t | ll_efuse_get_interval (efuse_regs_t *EFUSEx)
| Get the interval number of clk cycles between two bit fuse. More...
__STATIC_INLINE void | ll_efuse_enable_pgenb (efuse_regs_t *EFUSEx)
| Enable eFuse PGENB sigal. More...
__STATIC_INLINE void | ll_efuse_disable_pgenb (efuse_regs_t *EFUSEx)
| Disable eFuse PGENB sigal. More...
__STATIC_INLINE uint32_t | ll_efuse_is_enabled_pgenb (efuse_regs_t *EFUSEx)
| Check if eFuse PGENB sigal is enabled. 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. More...
__STATIC_INLINE void | ll_efuse_disable_power (efuse_regs_t *EFUSEx)
| eFuse v1.1 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...

## Detailed Description

Header file containing functions prototypes of eFuse LL library.

Author
  BLE Driver Team

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

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.