stm32f7/stm32f733/
pwr.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    cr1: CR1,
6    csr1: CSR1,
7    cr2: CR2,
8    csr2: CSR2,
9}
10impl RegisterBlock {
11    ///0x00 - power control register
12    #[inline(always)]
13    pub const fn cr1(&self) -> &CR1 {
14        &self.cr1
15    }
16    ///0x04 - power control/status register
17    #[inline(always)]
18    pub const fn csr1(&self) -> &CSR1 {
19        &self.csr1
20    }
21    ///0x08 - power control register
22    #[inline(always)]
23    pub const fn cr2(&self) -> &CR2 {
24        &self.cr2
25    }
26    ///0x0c - power control/status register
27    #[inline(always)]
28    pub const fn csr2(&self) -> &CSR2 {
29        &self.csr2
30    }
31}
32/**CR1 (rw) register accessor: power control register
33
34You 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).
35
36See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#PWR:CR1)
37
38For information about available fields see [`mod@cr1`] module*/
39pub type CR1 = crate::Reg<cr1::CR1rs>;
40///power control register
41pub mod cr1;
42/**CSR1 (rw) register accessor: power control/status register
43
44You can [`read`](crate::Reg::read) this register and get [`csr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
45
46See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#PWR:CSR1)
47
48For information about available fields see [`mod@csr1`] module*/
49pub type CSR1 = crate::Reg<csr1::CSR1rs>;
50///power control/status register
51pub mod csr1;
52/**CR2 (rw) register accessor: power control register
53
54You 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).
55
56See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#PWR:CR2)
57
58For information about available fields see [`mod@cr2`] module*/
59pub type CR2 = crate::Reg<cr2::CR2rs>;
60///power control register
61pub mod cr2;
62/**CSR2 (rw) register accessor: power control/status register
63
64You can [`read`](crate::Reg::read) this register and get [`csr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
65
66See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F733.html#PWR:CSR2)
67
68For information about available fields see [`mod@csr2`] module*/
69pub type CSR2 = crate::Reg<csr2::CSR2rs>;
70///power control/status register
71pub mod csr2;