stm32g0_staging/stm32g0c1/
pwr.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    cr1: CR1,
6    cr2: CR2,
7    cr3: CR3,
8    cr4: CR4,
9    sr1: SR1,
10    sr2: SR2,
11    scr: SCR,
12    _reserved7: [u8; 0x04],
13    pucra: PUCRA,
14    pdcra: PDCRA,
15    pucrb: PUCRB,
16    pdcrb: PDCRB,
17    pucrc: PUCRC,
18    pdcrc: PDCRC,
19    pucrd: PUCRD,
20    pdcrd: PDCRD,
21    pucre: PUCRE,
22    pdcre: PDCRE,
23    pucrf: PUCRF,
24    pdcrf: PDCRF,
25}
26impl RegisterBlock {
27    ///0x00 - Power control register 1
28    #[inline(always)]
29    pub const fn cr1(&self) -> &CR1 {
30        &self.cr1
31    }
32    ///0x04 - Power control register 2
33    #[inline(always)]
34    pub const fn cr2(&self) -> &CR2 {
35        &self.cr2
36    }
37    ///0x08 - Power control register 3
38    #[inline(always)]
39    pub const fn cr3(&self) -> &CR3 {
40        &self.cr3
41    }
42    ///0x0c - Power control register 4
43    #[inline(always)]
44    pub const fn cr4(&self) -> &CR4 {
45        &self.cr4
46    }
47    ///0x10 - Power status register 1
48    #[inline(always)]
49    pub const fn sr1(&self) -> &SR1 {
50        &self.sr1
51    }
52    ///0x14 - Power status register 2
53    #[inline(always)]
54    pub const fn sr2(&self) -> &SR2 {
55        &self.sr2
56    }
57    ///0x18 - Power status clear register
58    #[inline(always)]
59    pub const fn scr(&self) -> &SCR {
60        &self.scr
61    }
62    ///0x20 - Power Port A pull-up control register
63    #[inline(always)]
64    pub const fn pucra(&self) -> &PUCRA {
65        &self.pucra
66    }
67    ///0x24 - Power Port A pull-down control register
68    #[inline(always)]
69    pub const fn pdcra(&self) -> &PDCRA {
70        &self.pdcra
71    }
72    ///0x28 - Power Port B pull-up control register
73    #[inline(always)]
74    pub const fn pucrb(&self) -> &PUCRB {
75        &self.pucrb
76    }
77    ///0x2c - Power Port B pull-down control register
78    #[inline(always)]
79    pub const fn pdcrb(&self) -> &PDCRB {
80        &self.pdcrb
81    }
82    ///0x30 - Power Port C pull-up control register
83    #[inline(always)]
84    pub const fn pucrc(&self) -> &PUCRC {
85        &self.pucrc
86    }
87    ///0x34 - Power Port C pull-down control register
88    #[inline(always)]
89    pub const fn pdcrc(&self) -> &PDCRC {
90        &self.pdcrc
91    }
92    ///0x38 - Power Port D pull-up control register
93    #[inline(always)]
94    pub const fn pucrd(&self) -> &PUCRD {
95        &self.pucrd
96    }
97    ///0x3c - Power Port D pull-down control register
98    #[inline(always)]
99    pub const fn pdcrd(&self) -> &PDCRD {
100        &self.pdcrd
101    }
102    ///0x40 - Power Port E pull-UP control register
103    #[inline(always)]
104    pub const fn pucre(&self) -> &PUCRE {
105        &self.pucre
106    }
107    ///0x44 - Power Port E pull-down control register
108    #[inline(always)]
109    pub const fn pdcre(&self) -> &PDCRE {
110        &self.pdcre
111    }
112    ///0x48 - Power Port F pull-up control register
113    #[inline(always)]
114    pub const fn pucrf(&self) -> &PUCRF {
115        &self.pucrf
116    }
117    ///0x4c - Power Port F pull-down control register
118    #[inline(always)]
119    pub const fn pdcrf(&self) -> &PDCRF {
120        &self.pdcrf
121    }
122}
123/**CR1 (rw) register accessor: Power control register 1
124
125You can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
126
127See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:CR1)
128
129For information about available fields see [`mod@cr1`]
130module*/
131pub type CR1 = crate::Reg<cr1::CR1rs>;
132///Power control register 1
133pub mod cr1;
134/**CR2 (rw) register accessor: Power control register 2
135
136You can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
137
138See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:CR2)
139
140For information about available fields see [`mod@cr2`]
141module*/
142pub type CR2 = crate::Reg<cr2::CR2rs>;
143///Power control register 2
144pub mod cr2;
145/**CR3 (rw) register accessor: Power control register 3
146
147You can [`read`](crate::Reg::read) this register and get [`cr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
148
149See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:CR3)
150
151For information about available fields see [`mod@cr3`]
152module*/
153pub type CR3 = crate::Reg<cr3::CR3rs>;
154///Power control register 3
155pub mod cr3;
156/**CR4 (rw) register accessor: Power control register 4
157
158You can [`read`](crate::Reg::read) this register and get [`cr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
159
160See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:CR4)
161
162For information about available fields see [`mod@cr4`]
163module*/
164pub type CR4 = crate::Reg<cr4::CR4rs>;
165///Power control register 4
166pub mod cr4;
167/**SR1 (r) register accessor: Power status register 1
168
169You can [`read`](crate::Reg::read) this register and get [`sr1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
170
171See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:SR1)
172
173For information about available fields see [`mod@sr1`]
174module*/
175pub type SR1 = crate::Reg<sr1::SR1rs>;
176///Power status register 1
177pub mod sr1;
178/**SR2 (r) register accessor: Power status register 2
179
180You can [`read`](crate::Reg::read) this register and get [`sr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
181
182See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:SR2)
183
184For information about available fields see [`mod@sr2`]
185module*/
186pub type SR2 = crate::Reg<sr2::SR2rs>;
187///Power status register 2
188pub mod sr2;
189/**SCR (w) register accessor: Power status clear register
190
191You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
192
193See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:SCR)
194
195For information about available fields see [`mod@scr`]
196module*/
197pub type SCR = crate::Reg<scr::SCRrs>;
198///Power status clear register
199pub mod scr;
200/**PUCRA (rw) register accessor: Power Port A pull-up control register
201
202You can [`read`](crate::Reg::read) this register and get [`pucra::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pucra::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
203
204See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PUCRA)
205
206For information about available fields see [`mod@pucra`]
207module*/
208pub type PUCRA = crate::Reg<pucra::PUCRArs>;
209///Power Port A pull-up control register
210pub mod pucra;
211/**PDCRA (rw) register accessor: Power Port A pull-down control register
212
213You can [`read`](crate::Reg::read) this register and get [`pdcra::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdcra::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
214
215See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PDCRA)
216
217For information about available fields see [`mod@pdcra`]
218module*/
219pub type PDCRA = crate::Reg<pdcra::PDCRArs>;
220///Power Port A pull-down control register
221pub mod pdcra;
222/**PUCRB (rw) register accessor: Power Port B pull-up control register
223
224You can [`read`](crate::Reg::read) this register and get [`pucrb::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pucrb::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
225
226See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PUCRB)
227
228For information about available fields see [`mod@pucrb`]
229module*/
230pub type PUCRB = crate::Reg<pucrb::PUCRBrs>;
231///Power Port B pull-up control register
232pub mod pucrb;
233/**PDCRB (rw) register accessor: Power Port B pull-down control register
234
235You can [`read`](crate::Reg::read) this register and get [`pdcrb::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdcrb::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
236
237See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PDCRB)
238
239For information about available fields see [`mod@pdcrb`]
240module*/
241pub type PDCRB = crate::Reg<pdcrb::PDCRBrs>;
242///Power Port B pull-down control register
243pub mod pdcrb;
244/**PUCRC (rw) register accessor: Power Port C pull-up control register
245
246You can [`read`](crate::Reg::read) this register and get [`pucrc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pucrc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
247
248See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PUCRC)
249
250For information about available fields see [`mod@pucrc`]
251module*/
252pub type PUCRC = crate::Reg<pucrc::PUCRCrs>;
253///Power Port C pull-up control register
254pub mod pucrc;
255/**PDCRC (rw) register accessor: Power Port C pull-down control register
256
257You can [`read`](crate::Reg::read) this register and get [`pdcrc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdcrc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
258
259See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PDCRC)
260
261For information about available fields see [`mod@pdcrc`]
262module*/
263pub type PDCRC = crate::Reg<pdcrc::PDCRCrs>;
264///Power Port C pull-down control register
265pub mod pdcrc;
266/**PUCRD (rw) register accessor: Power Port D pull-up control register
267
268You can [`read`](crate::Reg::read) this register and get [`pucrd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pucrd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
269
270See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PUCRD)
271
272For information about available fields see [`mod@pucrd`]
273module*/
274pub type PUCRD = crate::Reg<pucrd::PUCRDrs>;
275///Power Port D pull-up control register
276pub mod pucrd;
277/**PDCRD (rw) register accessor: Power Port D pull-down control register
278
279You can [`read`](crate::Reg::read) this register and get [`pdcrd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdcrd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
280
281See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PDCRD)
282
283For information about available fields see [`mod@pdcrd`]
284module*/
285pub type PDCRD = crate::Reg<pdcrd::PDCRDrs>;
286///Power Port D pull-down control register
287pub mod pdcrd;
288/**PUCRE (rw) register accessor: Power Port E pull-UP control register
289
290You can [`read`](crate::Reg::read) this register and get [`pucre::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pucre::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
291
292See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PUCRE)
293
294For information about available fields see [`mod@pucre`]
295module*/
296pub type PUCRE = crate::Reg<pucre::PUCRErs>;
297///Power Port E pull-UP control register
298pub mod pucre;
299/**PDCRE (rw) register accessor: Power Port E pull-down control register
300
301You can [`read`](crate::Reg::read) this register and get [`pdcre::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdcre::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
302
303See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PDCRE)
304
305For information about available fields see [`mod@pdcre`]
306module*/
307pub type PDCRE = crate::Reg<pdcre::PDCRErs>;
308///Power Port E pull-down control register
309pub mod pdcre;
310/**PUCRF (rw) register accessor: Power Port F pull-up control register
311
312You can [`read`](crate::Reg::read) this register and get [`pucrf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pucrf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
313
314See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PUCRF)
315
316For information about available fields see [`mod@pucrf`]
317module*/
318pub type PUCRF = crate::Reg<pucrf::PUCRFrs>;
319///Power Port F pull-up control register
320pub mod pucrf;
321/**PDCRF (rw) register accessor: Power Port F pull-down control register
322
323You can [`read`](crate::Reg::read) this register and get [`pdcrf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pdcrf::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
324
325See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#PWR:PDCRF)
326
327For information about available fields see [`mod@pdcrf`]
328module*/
329pub type PDCRF = crate::Reg<pdcrf::PDCRFrs>;
330///Power Port F pull-down control register
331pub mod pdcrf;