CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
结构体 | 函数
ci130x_TimerWdt.c 文件参考

窗口看门狗驱动文件 更多...

#include "ci130x_TimerWdt.h"
#include "ci130x_scu.h"
#include "ci130x_dpmu.h"
#include "ci130x_core_eclic.h"
#include "ci_log.h"

结构体

struct  BF_TWDG_CONTROL
 
struct  BF_TWDG_SCALE
 
struct  BF_TWDG_STATUS
 
union  _TWDG_CONTROL
 
union  _TWDG_SCALE
 
union  _TWDG_STATUS
 
struct  TWDG_TypeDef
 

函数

void TWDG_init (TWDG_InitTypeDef *initStruct)
 初始化配置时间看门狗 更多...
 
void TWDG_disable (void)
 关闭时间看门狗 更多...
 
unsigned int TWDG_counter (void)
 获取counter值 更多...
 
void TWDG_service ()
 看门狗service 更多...
 
void TWDG_test (int mode, int ms_windowLowper, int ms_windowUpper)
 时间看门狗测试程序 更多...
 
void TWDG_IRQHandler (void)
 看门狗中断服务函数 更多...
 

详细描述

窗口看门狗驱动文件

版本
0.1
日期
2019-04-03

结构体说明

◆ BF_TWDG_CONTROL

struct BF_TWDG_CONTROL
成员变量
unsigned int clk_sel:1
unsigned int glb_en:1
unsigned int halt_en:1
unsigned int int_en:1
unsigned int mode:1
unsigned int reserved:25
unsigned int rest_en:1
unsigned int srvWin_en:1

◆ BF_TWDG_SCALE

struct BF_TWDG_SCALE
成员变量
unsigned int reserved:16
unsigned int scale:16

◆ BF_TWDG_STATUS

struct BF_TWDG_STATUS
成员变量
unsigned int cnt_ext:1
unsigned int reserved:31

◆ _TWDG_CONTROL

union _TWDG_CONTROL
成员变量
BF_TWDG_CONTROL bf
unsigned int ui

◆ _TWDG_SCALE

union _TWDG_SCALE
成员变量
BF_TWDG_SCALE bf
unsigned int ui

◆ _TWDG_STATUS

union _TWDG_STATUS
成员变量
BF_TWDG_STATUS bf
unsigned int ui

◆ TWDG_TypeDef

struct TWDG_TypeDef
成员变量
volatile unsigned int WDT_COUNT
volatile _TWDG_CONTROL WDT_CTR
volatile unsigned int WDT_LOCK
volatile _TWDG_SCALE WDT_SCALE
volatile unsigned int WDT_SRV
volatile _TWDG_STATUS WDT_STATUS
volatile unsigned int WDT_WLB
volatile unsigned int WDT_WUB