stm32g0/stm32g041/
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/STM32G041.html#RNG:CR)
31
32For information about available fields see [`mod@cr`] module*/
33pub type CR = crate::Reg<cr::CRrs>;
34///control register
35pub mod cr;
36/**SR (rw) register accessor: status register
37
38You 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).
39
40See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G041.html#RNG:SR)
41
42For information about available fields see [`mod@sr`] module*/
43pub type SR = crate::Reg<sr::SRrs>;
44///status register
45pub mod sr;
46/**DR (r) register accessor: data register
47
48You can [`read`](crate::Reg::read) this register and get [`dr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
49
50See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G041.html#RNG:DR)
51
52For information about available fields see [`mod@dr`] module*/
53pub type DR = crate::Reg<dr::DRrs>;
54///data register
55pub mod dr;