CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
结构体 | 宏定义 | 函数 | 变量
ci130x_efuse.c 文件参考
#include "ci130x_dpmu.h"
#include <stdint.h>
#include "ci130x_efuse.h"
#include "ci130x_system.h"

结构体

struct  efuse_register_t
 EFUSE寄存器结构体 更多...
 

宏定义

#define EFUSE_UNLOCK_DATA   (0x20210130)
 
#define EFUSE_LOCK_DATA   (0x661)
 

函数

void efuse_unlock (void)
 
void efuse_lock (void)
 
void efuse_clk_freq_sel (efuse_clk_freq_t clk)
 
void efuse_write_start (void)
 
void efuse_read_start (void)
 
bool efuse_check_idle (void)
 
void efuse_burn_data_set (uint32_t data, uint8_t addr)
 
void efuse_int_enable (efuse_int_fun_t int_fun, FunctionalState cmd)
 
void efuse_int_clear (efuse_int_fun_t int_fun)
 
bool efuse_check_int_state (efuse_int_fun_t int_fun)
 
void AON_EFUSE_IRQHandler (void)
 
void wait_efuse_read_down_int (void)
 
void wait_efuse_burn_down_int (void)
 
uint32_t efuse_read_data (uint8_t word_num)
 

变量

static efuse_register_tEFUSE = (efuse_register_t*)HAL_EFUSE_BASE
 
static volatile bool is_dnn_err = false
 
static volatile bool is_read_down = false
 
static volatile bool is_burn_down = false
 
static volatile bool is_check_err = false
 
static volatile bool is_por_err = false
 

结构体说明

◆ efuse_register_t

struct efuse_register_t

EFUSE寄存器结构体

成员变量
volatile uint32_t BURN_LOCK_KEY
volatile uint32_t CFG_REG
volatile uint32_t EFUSE_BURN_ADDR
volatile uint32_t EFUSE_BURN_DATA
volatile uint32_t EFUSE_SHADOW[16]
volatile uint32_t INT_CLEAR
volatile uint32_t INT_EN
volatile uint32_t INT_STATE
volatile uint32_t reserved
volatile uint32_t STATE_REG

宏定义说明

◆ EFUSE_LOCK_DATA

#define EFUSE_LOCK_DATA   (0x661)

◆ EFUSE_UNLOCK_DATA

#define EFUSE_UNLOCK_DATA   (0x20210130)

函数说明

◆ AON_EFUSE_IRQHandler()

void AON_EFUSE_IRQHandler ( void  )

◆ efuse_burn_data_set()

void efuse_burn_data_set ( uint32_t  data,
uint8_t  addr 
)

◆ efuse_check_idle()

bool efuse_check_idle ( void  )

◆ efuse_check_int_state()

bool efuse_check_int_state ( efuse_int_fun_t  int_fun)

◆ efuse_clk_freq_sel()

void efuse_clk_freq_sel ( efuse_clk_freq_t  clk)

◆ efuse_int_clear()

void efuse_int_clear ( efuse_int_fun_t  int_fun)

◆ efuse_int_enable()

void efuse_int_enable ( efuse_int_fun_t  int_fun,
FunctionalState  cmd 
)

◆ efuse_lock()

void efuse_lock ( void  )

◆ efuse_read_data()

uint32_t efuse_read_data ( uint8_t  word_num)

◆ efuse_read_start()

void efuse_read_start ( void  )

◆ efuse_unlock()

void efuse_unlock ( void  )

◆ efuse_write_start()

void efuse_write_start ( void  )

◆ wait_efuse_burn_down_int()

void wait_efuse_burn_down_int ( void  )

◆ wait_efuse_read_down_int()

void wait_efuse_read_down_int ( void  )

变量说明

◆ EFUSE

◆ is_burn_down

volatile bool is_burn_down = false
static

◆ is_check_err

volatile bool is_check_err = false
static

◆ is_dnn_err

volatile bool is_dnn_err = false
static

◆ is_por_err

volatile bool is_por_err = false
static

◆ is_read_down

volatile bool is_read_down = false
static