WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_rtc_v100_regs_def.h
浏览该文件的文档.
1
9#ifndef HAL_RTC_V100_REGS_DEF_H
10#define HAL_RTC_V100_REGS_DEF_H
11
12#include <stdint.h>
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18#endif /* __cplusplus */
19
26#define RTC_REGS_MAX_NUM 4
27
33typedef union rtc_control_reg_data {
34 uint32_t d32;
35 struct {
36 uint32_t enable : 1;
37 uint32_t mode : 1;
38 uint32_t int_mask : 1;
39 uint32_t reserved3_31 : 29;
40 } b;
42
48typedef union rtc_eoi_data {
49 uint32_t d32;
50 struct {
51 uint32_t eoi : 1;
53 uint32_t reserved1_31 : 31;
54 } b;
56
57typedef struct rtc_regs_info {
58 volatile uint32_t load_count;
59 volatile uint32_t current_value;
60 volatile uint32_t control_reg;
61 volatile uint32_t eoi;
62 volatile uint32_t int_status;
64
73#ifdef __cplusplus
74#if __cplusplus
75}
76#endif /* __cplusplus */
77#endif /* __cplusplus */
78
79#endif
union rtc_control_reg_data rtc_control_reg_data_t
This union represents the bit fields in the Control. Read the register into the d32 member then set...
struct rtc_regs rtc_regs_t
union rtc_eoi_data rtc_eoi_data_t
This union represents the bit fields in the End-of-Interrupt. Read the register into the d32 member...
#define RTC_REGS_MAX_NUM
Definition hal_rtc_v100_regs_def.h:26
struct rtc_regs_info rtc_regs_info_t
Definition hal_rtc_v100_regs_def.h:57
volatile uint32_t load_count
Definition hal_rtc_v100_regs_def.h:58
volatile uint32_t int_status
Definition hal_rtc_v100_regs_def.h:62
volatile uint32_t control_reg
Definition hal_rtc_v100_regs_def.h:60
volatile uint32_t current_value
Definition hal_rtc_v100_regs_def.h:59
volatile uint32_t eoi
Definition hal_rtc_v100_regs_def.h:61
Definition hal_rtc_v100_regs_def.h:65
volatile rtc_regs_info_t g_rtc_regs_info[4]
Definition hal_rtc_v100_regs_def.h:66
This union represents the bit fields in the Control. Read the register into the d32 member then set...
Definition hal_rtc_v100_regs_def.h:33
uint32_t enable
Definition hal_rtc_v100_regs_def.h:36
struct rtc_control_reg_data::@115 b
uint32_t d32
Definition hal_rtc_v100_regs_def.h:34
uint32_t int_mask
Definition hal_rtc_v100_regs_def.h:38
uint32_t reserved3_31
Definition hal_rtc_v100_regs_def.h:39
uint32_t mode
Definition hal_rtc_v100_regs_def.h:37
This union represents the bit fields in the End-of-Interrupt. Read the register into the d32 member...
Definition hal_rtc_v100_regs_def.h:48
struct rtc_eoi_data::@117 b
uint32_t eoi
Definition hal_rtc_v100_regs_def.h:51
uint32_t reserved1_31
Definition hal_rtc_v100_regs_def.h:53
uint32_t d32
Definition hal_rtc_v100_regs_def.h:49