stm32g0_staging/stm32g0c1/
rng.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    cr: CR,
6    sr: SR,
7    dr: DR,
8}
9impl RegisterBlock {
10    ///0x00 - control register
11    #[inline(always)]
12    pub const fn cr(&self) -> &CR {
13        &self.cr
14    }
15    ///0x04 - status register
16    #[inline(always)]
17    pub const fn sr(&self) -> &SR {
18        &self.sr
19    }
20    ///0x08 - data register
21    #[inline(always)]
22    pub const fn dr(&self) -> &DR {
23        &self.dr
24    }
25}
26/**CR (rw) register accessor: control register
27
28You 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).
29
30See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#RNG:CR)
31
32For information about available fields see [`mod@cr`]
33module*/
34pub type CR = crate::Reg<cr::CRrs>;
35///control register
36pub mod cr;
37/**SR (rw) register accessor: status register
38
39You can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
40
41See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#RNG:SR)
42
43For information about available fields see [`mod@sr`]
44module*/
45pub type SR = crate::Reg<sr::SRrs>;
46///status register
47pub mod sr;
48/**DR (r) register accessor: data register
49
50You can [`read`](crate::Reg::read) this register and get [`dr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
51
52See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G0C1.html#RNG:DR)
53
54For information about available fields see [`mod@dr`]
55module*/
56pub type DR = crate::Reg<dr::DRrs>;
57///data register
58pub mod dr;