ll_efuse.h File Reference

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

#include "gr5x.h"

Go to the source code of this file.

Macros

#define EFUSE_ZONE_SIZE_BYTE   32U
 
#define EFUSE_ZONE_SIZE_WORD   (EFUSE_ZONE_SIZE_BYTE / 4U)
 
#define LL_EFUSE_INIT_CHECK   EFUSE_OPER_INIT_CHECK
 
#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_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_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 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_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_enable_vddq (void)
 eFuse vddq enable. Vddq must be enble when write efuse, and disable when write done. More...
 
__STATIC_INLINE void ll_efuse_disable_vddq (void)
 eFuse vddq disable. Vddq must be enble when write efuse, and disable when write done. More...
 
__STATIC_INLINE uint32_t ll_efuse_is_enable_vddq (void)
 Get eFuse vddq state. Vddq must be enble when write efuse, and disable when write done. 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_en (efuse_regs_t *EFUSEx)
 EFUSE HW Power control enable. More...
 
__STATIC_INLINE void ll_efuse_disable_controller_power_en (efuse_regs_t *EFUSEx)
 EFUSE HW Power control enable. More...
 
__STATIC_INLINE void ll_efuse_enable_controller_power_begin (efuse_regs_t *EFUSEx)
 EFUSE HW Power control begin. More...
 
__STATIC_INLINE void ll_efuse_enable_controller_power_stop (efuse_regs_t *EFUSEx)
 EFUSE HW Power control stop. More...
 
__STATIC_INLINE void ll_efuse_disable_controller_power (efuse_regs_t *EFUSEx)
 EFUSE HW Power control disable. 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 ll_efuse.h.