stm32f3_staging/stm32f303/pwr.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 cr: CR,
6 csr: CSR,
7}
8impl RegisterBlock {
9 ///0x00 - power control register
10 #[inline(always)]
11 pub const fn cr(&self) -> &CR {
12 &self.cr
13 }
14 ///0x04 - power control/status register
15 #[inline(always)]
16 pub const fn csr(&self) -> &CSR {
17 &self.csr
18 }
19}
20/**CR (rw) register accessor: power control register
21
22You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
23
24See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#PWR:CR)
25
26For information about available fields see [`mod@cr`]
27module*/
28pub type CR = crate::Reg<cr::CRrs>;
29///power control register
30pub mod cr;
31/**CSR (rw) register accessor: power control/status register
32
33You can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
34
35See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F303.html#PWR:CSR)
36
37For information about available fields see [`mod@csr`]
38module*/
39pub type CSR = crate::Reg<csr::CSRrs>;
40///power control/status register
41pub mod csr;