stm32f1_staging/stm32f101/
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 (PWR_CR)
10    #[inline(always)]
11    pub const fn cr(&self) -> &CR {
12        &self.cr
13    }
14    ///0x04 - Power control register (PWR_CR)
15    #[inline(always)]
16    pub const fn csr(&self) -> &CSR {
17        &self.csr
18    }
19}
20/**CR (rw) register accessor: Power control register (PWR_CR)
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/STM32F101.html#PWR:CR)
25
26For information about available fields see [`mod@cr`] module*/
27pub type CR = crate::Reg<cr::CRrs>;
28///Power control register (PWR_CR)
29pub mod cr;
30/**CSR (rw) register accessor: Power control register (PWR_CR)
31
32You 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).
33
34See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#PWR:CSR)
35
36For information about available fields see [`mod@csr`] module*/
37pub type CSR = crate::Reg<csr::CSRrs>;
38///Power control register (PWR_CR)
39pub mod csr;