WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_watchdog_v151_regs_def.h
浏览该文件的文档.
1
9#ifndef HAL_WATCHDOG_V151_REGS_DEF_H
10#define HAL_WATCHDOG_V151_REGS_DEF_H
11
12#include <stdint.h>
13#include "watchdog_porting.h"
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19#endif /* __cplusplus */
20
27#define WDT_MODE_RESET_BY_FIRST_INTR 0
28#define WDT_MODE_RESET_BY_SECOND_INTR 1
29
35typedef union wdt_v151_lock_data {
36 uint32_t d32;
37 struct {
38 uint32_t wdt_lock : 32;
47 } b;
49
50
56typedef union wdt_v151_load_data {
57 uint32_t d32;
58 struct {
59 uint32_t reserved0_7 : 8;
61 uint32_t wdt_load : 24;
62 } b;
64
70typedef union wdt_v151_restart_data {
71 uint32_t d32;
72 struct {
73 uint32_t wdt_restart : 32;
76 } b;
78
84typedef union wdt_v151_eoi_data {
85 uint32_t d32;
86 struct {
87 uint32_t wdt_eoi : 1;
89 uint32_t reserved1_31 : 31;
90 } b;
92
98typedef union wdt_v151_cr_data {
99 uint32_t d32;
100 struct {
101 uint32_t wdt_en : 1;
103 uint32_t reserved1 : 1;
104 uint32_t rst_en : 1;
107 uint32_t rst_pl : 3;
116 uint32_t wdt_imsk : 1;
119 uint32_t wdt_mode : 1;
122 uint32_t reserved8_31 : 24;
123 } b;
125
131typedef union wdt_v151_cnt_data {
132 uint32_t d32;
133 struct {
134 uint32_t wdt_cnt : 32;
136 } b;
138
144typedef union wdt_v151_raw_intr_data {
145 uint32_t d32;
146 struct {
147 uint32_t wdt_raw_intr : 1;
150 uint32_t reserved1_31 : 31;
151 } b;
153
159typedef union wdt_v151_intr_data {
160 uint32_t d32;
161 struct {
162 uint32_t wdt_intr : 1;
165 uint32_t reserved1_31 : 31;
166 } b;
168
174typedef union wdt_v151_lpif_state_data {
175 uint32_t d32;
176 struct {
177 uint32_t wdt_lpif_state : 3;
186 uint32_t reserved3_31 : 29;
187 } b;
189
195typedef union wdt_v151_status_data {
196 uint32_t d32;
197 struct {
198 uint32_t wdt_status : 1;
201 uint32_t reserved1_31 : 31;
202 } b;
204
210typedef union wdt_v151_ccvr_en_data {
211 uint32_t d32;
212 struct {
213 uint32_t wdt_ccvr_req : 1;
216 uint32_t wdt_ccvr_lock : 1;
220 uint32_t rsvd_wdt_eoi : 30;
221 } b;
223
224
228typedef struct watchdog_v151_regs {
229 volatile uint32_t wdt_lock;
230 volatile uint32_t wdt_load;
231 volatile uint32_t wdt_restart;
232 volatile uint32_t wdt_eoi;
233 volatile uint32_t wdt_cr;
234 volatile uint32_t wdt_cnt;
235 volatile uint32_t wdt_raw_intr;
236 volatile uint32_t wdt_intr;
237 volatile uint32_t wdt_lpif_state;
238 volatile uint32_t wdt_status;
239 volatile uint32_t wdt_ccvr_en;
241
246#ifdef __cplusplus
247#if __cplusplus
248}
249#endif /* __cplusplus */
250#endif /* __cplusplus */
251
252#endif
union wdt_v151_intr_data wdt_v151_intr_data_t
This union represents the bit field in the Interrupt Register. Read the register into the d32 member ...
union wdt_v151_lpif_state_data wdt_v151_lpif_state_data_t
This union represents the bit field in the Low power state Register. Read the register into the d32 m...
union wdt_v151_load_data wdt_v151_load_data_t
This union represents the bit field in the Load Register. Read the register into the d32 member then ...
union wdt_v151_lock_data wdt_v151_lock_data_t
This union represents the bit field in the Lock Register. Read the register into the d32 member then ...
union wdt_v151_restart_data wdt_v151_restart_data_t
This union represents the bit field in the Restart Register. Read the register into the d32 member th...
struct watchdog_v151_regs watchdog_v151_regs_t
Registers associated with Watchdog.
union wdt_v151_status_data wdt_v151_status_data_t
This union represents the bit field in the Status Register. Read the register into the d32 member the...
union wdt_v151_ccvr_en_data wdt_v151_ccvr_en_data_t
This union represents the bit field in the wdt Current Counter Value Request Register....
union wdt_v151_cr_data wdt_v151_cr_data_t
This union represents the bit fields in the Control Register. Read the register into the d32 member t...
union wdt_v151_eoi_data wdt_v151_eoi_data_t
This union represents the bit field in the Interrupt clear Register. Read the register into the d32 m...
union wdt_v151_cnt_data wdt_v151_cnt_data_t
This union represents the bit field in the Decrement counter Register. Read the register into the d32...
union wdt_v151_raw_intr_data wdt_v151_raw_intr_data_t
This union represents the bit field in the Raw interrupt Register. Read the register into the d32 mem...
Registers associated with Watchdog.
Definition hal_watchdog_v151_regs_def.h:228
volatile uint32_t wdt_intr
Definition hal_watchdog_v151_regs_def.h:236
volatile uint32_t wdt_lpif_state
Definition hal_watchdog_v151_regs_def.h:237
volatile uint32_t wdt_load
Definition hal_watchdog_v151_regs_def.h:230
volatile uint32_t wdt_status
Definition hal_watchdog_v151_regs_def.h:238
volatile uint32_t wdt_lock
Definition hal_watchdog_v151_regs_def.h:229
volatile uint32_t wdt_cnt
Definition hal_watchdog_v151_regs_def.h:234
volatile uint32_t wdt_ccvr_en
Definition hal_watchdog_v151_regs_def.h:239
volatile uint32_t wdt_raw_intr
Definition hal_watchdog_v151_regs_def.h:235
volatile uint32_t wdt_eoi
Definition hal_watchdog_v151_regs_def.h:232
volatile uint32_t wdt_cr
Definition hal_watchdog_v151_regs_def.h:233
volatile uint32_t wdt_restart
Definition hal_watchdog_v151_regs_def.h:231
This union represents the bit field in the wdt Current Counter Value Request Register....
Definition hal_watchdog_v151_regs_def.h:210
uint32_t rsvd_wdt_eoi
Definition hal_watchdog_v151_regs_def.h:220
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:211
uint32_t wdt_ccvr_lock
Definition hal_watchdog_v151_regs_def.h:216
uint32_t wdt_ccvr_req
Definition hal_watchdog_v151_regs_def.h:213
struct wdt_v151_ccvr_en_data::@57 b
This union represents the bit field in the Decrement counter Register. Read the register into the d32...
Definition hal_watchdog_v151_regs_def.h:131
uint32_t wdt_cnt
Definition hal_watchdog_v151_regs_def.h:134
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:132
struct wdt_v151_cnt_data::@52 b
This union represents the bit fields in the Control Register. Read the register into the d32 member t...
Definition hal_watchdog_v151_regs_def.h:98
uint32_t rst_pl
Definition hal_watchdog_v151_regs_def.h:107
uint32_t reserved1
Definition hal_watchdog_v151_regs_def.h:103
uint32_t wdt_imsk
Definition hal_watchdog_v151_regs_def.h:116
uint32_t wdt_en
Definition hal_watchdog_v151_regs_def.h:101
uint32_t rst_en
Definition hal_watchdog_v151_regs_def.h:104
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:99
uint32_t reserved8_31
Definition hal_watchdog_v151_regs_def.h:122
struct wdt_v151_cr_data::@51 b
uint32_t wdt_mode
Definition hal_watchdog_v151_regs_def.h:119
This union represents the bit field in the Interrupt clear Register. Read the register into the d32 m...
Definition hal_watchdog_v151_regs_def.h:84
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:85
uint32_t reserved1_31
Definition hal_watchdog_v151_regs_def.h:89
uint32_t wdt_eoi
Definition hal_watchdog_v151_regs_def.h:87
struct wdt_v151_eoi_data::@50 b
This union represents the bit field in the Interrupt Register. Read the register into the d32 member ...
Definition hal_watchdog_v151_regs_def.h:159
struct wdt_v151_intr_data::@54 b
uint32_t wdt_intr
Definition hal_watchdog_v151_regs_def.h:162
uint32_t reserved1_31
Definition hal_watchdog_v151_regs_def.h:165
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:160
This union represents the bit field in the Load Register. Read the register into the d32 member then ...
Definition hal_watchdog_v151_regs_def.h:56
struct wdt_v151_load_data::@48 b
uint32_t reserved0_7
Definition hal_watchdog_v151_regs_def.h:59
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:57
uint32_t wdt_load
Definition hal_watchdog_v151_regs_def.h:61
This union represents the bit field in the Lock Register. Read the register into the d32 member then ...
Definition hal_watchdog_v151_regs_def.h:35
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:36
struct wdt_v151_lock_data::@47 b
uint32_t wdt_lock
Definition hal_watchdog_v151_regs_def.h:38
This union represents the bit field in the Low power state Register. Read the register into the d32 m...
Definition hal_watchdog_v151_regs_def.h:174
uint32_t wdt_lpif_state
Definition hal_watchdog_v151_regs_def.h:177
uint32_t reserved3_31
Definition hal_watchdog_v151_regs_def.h:186
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:175
struct wdt_v151_lpif_state_data::@55 b
This union represents the bit field in the Raw interrupt Register. Read the register into the d32 mem...
Definition hal_watchdog_v151_regs_def.h:144
struct wdt_v151_raw_intr_data::@53 b
uint32_t wdt_raw_intr
Definition hal_watchdog_v151_regs_def.h:147
uint32_t reserved1_31
Definition hal_watchdog_v151_regs_def.h:150
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:145
This union represents the bit field in the Restart Register. Read the register into the d32 member th...
Definition hal_watchdog_v151_regs_def.h:70
struct wdt_v151_restart_data::@49 b
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:71
uint32_t wdt_restart
Definition hal_watchdog_v151_regs_def.h:73
This union represents the bit field in the Status Register. Read the register into the d32 member the...
Definition hal_watchdog_v151_regs_def.h:195
struct wdt_v151_status_data::@56 b
uint32_t d32
Definition hal_watchdog_v151_regs_def.h:196
uint32_t wdt_status
Definition hal_watchdog_v151_regs_def.h:198
uint32_t reserved1_31
Definition hal_watchdog_v151_regs_def.h:201