mFrame
載入中...
搜尋中...
無符合項目
VBAT.h
1
7#ifndef CHIP_56A377A9_538F_4A4D_B506_0F2F24672148
8#define CHIP_56A377A9_538F_4A4D_B506_0F2F24672148
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "mframe.h"
16
17//----------------------------------------------------------------------------------------
18#include "./Mask.h"
19#include "./Register.h"
20#include "./Shift.h"
21
22/* ***************************************************************************************
23 * Namespace
24 */
25namespace chip::vbat {
26 class VBAT;
27 extern Register& VBAT0;
28} // namespace chip::vbat
29
30/* ***************************************************************************************
31 * Class/Interface/Struct/Enum
32 */
34 /* *************************************************************************************
35 * Variable
36 */
37
38 /* *************************************************************************************
39 * Abstract Method
40 */
41
42 /* *************************************************************************************
43 * Construct Method
44 */
45 private:
50 VBAT(void);
51
52 public:
57 virtual ~VBAT(void) override;
58
59 /* *************************************************************************************
60 * Operator Method
61 */
62
63 /* *************************************************************************************
64 * Public Method <Override>
65 */
66
67 /* *************************************************************************************
68 * Public Method
69 */
70
71 /* *************************************************************************************
72 * Protected Method
73 */
74
75 /* *************************************************************************************
76 * Private Method
77 */
78
79 /* *************************************************************************************
80 * Static Variable
81 */
82
83 /* *************************************************************************************
84 * Static Method
85 */
86 public:
92 static inline constexpr uint32 VERID_FEATURE(uint32 value) {
93 return ((value << +chip::vbat::Shift::VERID_FEATURE) &
95 }
96
102 static inline constexpr uint32 VERID_MINOR(uint32 value) {
103 return ((value << +chip::vbat::Shift::VERID_MINOR) &
105 }
106
112 static inline constexpr uint32 VERID_MAJOR(uint32 value) {
113 return ((value << +chip::vbat::Shift::VERID_MAJOR) &
115 }
116
126 static inline constexpr uint32 FROCTLA_FRO_EN(uint32 value) {
127 return ((value << +chip::vbat::Shift::FROCTLA_FRO_EN) &
129 }
130
140 static inline constexpr uint32 FROLCKA_LOCK(uint32 value) {
141 return ((value << +chip::vbat::Shift::FROLCKA_LOCK) &
143 }
144
150 static inline constexpr uint32 FROCLKE_CLKE(uint32 value) {
151 return ((value << +chip::vbat::Shift::FROCLKE_CLKE) &
153 }
154
160 static inline constexpr uint32 WAKEUP_WAKEUPA_REG(uint32 value) {
161 return ((value << +chip::vbat::Shift::WAKEUP_WAKEUPA_REG) &
163 }
164
174 static inline constexpr uint32 WAKLCKA_LOCK(uint32 value) {
175 return ((value << +chip::vbat::Shift::WAKLCKA_LOCK) &
177 }
178};
179
180/* ***************************************************************************************
181 * End of file
182 */
183
184#endif /* CHIP_56A377A9_538F_4A4D_B506_0F2F24672148 */
Definition VBAT.h:33
virtual ~VBAT(void) override
Destroy the object.
static constexpr uint32 WAKEUP_WAKEUPA_REG(uint32 value)
WAKEUP_WAKEUPA - REG.
Definition VBAT.h:160
static constexpr uint32 VERID_FEATURE(uint32 value)
VERID - FEATURE.
Definition VBAT.h:92
static constexpr uint32 FROLCKA_LOCK(uint32 value)
FROCTLA - LOCK.
Definition VBAT.h:140
static constexpr uint32 FROCLKE_CLKE(uint32 value)
FROCTLA - CLKE.
Definition VBAT.h:150
static constexpr uint32 WAKLCKA_LOCK(uint32 value)
WAKLCKA - LOCK.
Definition VBAT.h:174
static constexpr uint32 VERID_MAJOR(uint32 value)
Version ID - MAJOR.
Definition VBAT.h:112
static constexpr uint32 VERID_MINOR(uint32 value)
Version ID - MINOR.
Definition VBAT.h:102
static constexpr uint32 FROCTLA_FRO_EN(uint32 value)
FROCTLA - FRO_EN.
Definition VBAT.h:126
Definition Object.h:34
Definition vbat/Mask.h:22
@ VERID_MINOR
Version ID - MINOR.
@ FROCLKE_CLKE
FROCTLA - CLKE.
@ WAKLCKA_LOCK
WAKLCKA - LOCK.
@ VERID_FEATURE
VERID - FEATURE.
@ FROLCKA_LOCK
FROCTLA - LOCK.
@ FROCTLA_FRO_EN
FROCTLA - FRO_EN.
@ VERID_MAJOR
Version ID - MAJOR.
@ WAKEUP_WAKEUPA_REG
WAKEUP_WAKEUPA - REG.
@ VERID_MINOR
VERID - MINOR.
@ FROCLKE_CLKE
FROCTLA - CLKE.
@ WAKLCKA_LOCK
WAKLCKA - LOCK.
@ VERID_FEATURE
VERID - FEATURE.
@ FROLCKA_LOCK
FROCTLA - LOCK.
@ FROCTLA_FRO_EN
FROCTLA - FRO_EN.
@ VERID_MAJOR
VERID - MAJOR.
@ WAKEUP_WAKEUPA_REG
WAKEUP_WAKEUPA - REG.