stm32g0/stm32g041/pwr/
cr3.rs1pub type R = crate::R<CR3rs>;
3pub type W = crate::W<CR3rs>;
5pub type EWUP1_R = crate::BitReader;
7pub type EWUP1_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type EWUP2_R = crate::BitReader;
11pub type EWUP2_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type EWUP3_R = crate::BitReader;
15pub type EWUP3_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type EWUP4_R = crate::BitReader;
19pub type EWUP4_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type EWUP5_R = crate::BitReader;
23pub type EWUP5_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type EWUP6_R = crate::BitReader;
27pub type EWUP6_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type RRS_R = crate::BitReader;
31pub type RRS_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type ENB_ULP_R = crate::BitReader;
35pub type ENB_ULP_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type APC_R = crate::BitReader;
39pub type APC_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type EIWUL_R = crate::BitReader;
43pub type EIWUL_W<'a, REG> = crate::BitWriter<'a, REG>;
45impl R {
46 #[inline(always)]
48 pub fn ewup1(&self) -> EWUP1_R {
49 EWUP1_R::new((self.bits & 1) != 0)
50 }
51 #[inline(always)]
53 pub fn ewup2(&self) -> EWUP2_R {
54 EWUP2_R::new(((self.bits >> 1) & 1) != 0)
55 }
56 #[inline(always)]
58 pub fn ewup3(&self) -> EWUP3_R {
59 EWUP3_R::new(((self.bits >> 2) & 1) != 0)
60 }
61 #[inline(always)]
63 pub fn ewup4(&self) -> EWUP4_R {
64 EWUP4_R::new(((self.bits >> 3) & 1) != 0)
65 }
66 #[inline(always)]
68 pub fn ewup5(&self) -> EWUP5_R {
69 EWUP5_R::new(((self.bits >> 4) & 1) != 0)
70 }
71 #[inline(always)]
73 pub fn ewup6(&self) -> EWUP6_R {
74 EWUP6_R::new(((self.bits >> 5) & 1) != 0)
75 }
76 #[inline(always)]
78 pub fn rrs(&self) -> RRS_R {
79 RRS_R::new(((self.bits >> 8) & 1) != 0)
80 }
81 #[inline(always)]
83 pub fn enb_ulp(&self) -> ENB_ULP_R {
84 ENB_ULP_R::new(((self.bits >> 9) & 1) != 0)
85 }
86 #[inline(always)]
88 pub fn apc(&self) -> APC_R {
89 APC_R::new(((self.bits >> 10) & 1) != 0)
90 }
91 #[inline(always)]
93 pub fn eiwul(&self) -> EIWUL_R {
94 EIWUL_R::new(((self.bits >> 15) & 1) != 0)
95 }
96}
97impl core::fmt::Debug for R {
98 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
99 f.debug_struct("CR3")
100 .field("ewup1", &self.ewup1())
101 .field("ewup2", &self.ewup2())
102 .field("ewup3", &self.ewup3())
103 .field("ewup4", &self.ewup4())
104 .field("ewup5", &self.ewup5())
105 .field("ewup6", &self.ewup6())
106 .field("rrs", &self.rrs())
107 .field("enb_ulp", &self.enb_ulp())
108 .field("apc", &self.apc())
109 .field("eiwul", &self.eiwul())
110 .finish()
111 }
112}
113impl W {
114 #[inline(always)]
116 pub fn ewup1(&mut self) -> EWUP1_W<CR3rs> {
117 EWUP1_W::new(self, 0)
118 }
119 #[inline(always)]
121 pub fn ewup2(&mut self) -> EWUP2_W<CR3rs> {
122 EWUP2_W::new(self, 1)
123 }
124 #[inline(always)]
126 pub fn ewup3(&mut self) -> EWUP3_W<CR3rs> {
127 EWUP3_W::new(self, 2)
128 }
129 #[inline(always)]
131 pub fn ewup4(&mut self) -> EWUP4_W<CR3rs> {
132 EWUP4_W::new(self, 3)
133 }
134 #[inline(always)]
136 pub fn ewup5(&mut self) -> EWUP5_W<CR3rs> {
137 EWUP5_W::new(self, 4)
138 }
139 #[inline(always)]
141 pub fn ewup6(&mut self) -> EWUP6_W<CR3rs> {
142 EWUP6_W::new(self, 5)
143 }
144 #[inline(always)]
146 pub fn rrs(&mut self) -> RRS_W<CR3rs> {
147 RRS_W::new(self, 8)
148 }
149 #[inline(always)]
151 pub fn enb_ulp(&mut self) -> ENB_ULP_W<CR3rs> {
152 ENB_ULP_W::new(self, 9)
153 }
154 #[inline(always)]
156 pub fn apc(&mut self) -> APC_W<CR3rs> {
157 APC_W::new(self, 10)
158 }
159 #[inline(always)]
161 pub fn eiwul(&mut self) -> EIWUL_W<CR3rs> {
162 EIWUL_W::new(self, 15)
163 }
164}
165pub struct CR3rs;
171impl crate::RegisterSpec for CR3rs {
172 type Ux = u32;
173}
174impl crate::Readable for CR3rs {}
176impl crate::Writable for CR3rs {
178 type Safety = crate::Unsafe;
179}
180impl crate::Resettable for CR3rs {
182 const RESET_VALUE: u32 = 0x8000;
183}