nrf52840_pac/
rng.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Task starting the random number generator"]
5    pub tasks_start: TASKS_START,
6    #[doc = "0x04 - Task stopping the random number generator"]
7    pub tasks_stop: TASKS_STOP,
8    _reserved2: [u8; 0xf8],
9    #[doc = "0x100 - Event being generated for every new random number written to the VALUE register"]
10    pub events_valrdy: EVENTS_VALRDY,
11    _reserved3: [u8; 0xfc],
12    #[doc = "0x200 - Shortcut register"]
13    pub shorts: SHORTS,
14    _reserved4: [u8; 0x0100],
15    #[doc = "0x304 - Enable interrupt"]
16    pub intenset: INTENSET,
17    #[doc = "0x308 - Disable interrupt"]
18    pub intenclr: INTENCLR,
19    _reserved6: [u8; 0x01f8],
20    #[doc = "0x504 - Configuration register"]
21    pub config: CONFIG,
22    #[doc = "0x508 - Output random number"]
23    pub value: VALUE,
24}
25#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
26pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
27#[doc = "Task starting the random number generator"]
28pub mod tasks_start;
29#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
30pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
31#[doc = "Task stopping the random number generator"]
32pub mod tasks_stop;
33#[doc = "EVENTS_VALRDY (rw) register accessor: an alias for `Reg<EVENTS_VALRDY_SPEC>`"]
34pub type EVENTS_VALRDY = crate::Reg<events_valrdy::EVENTS_VALRDY_SPEC>;
35#[doc = "Event being generated for every new random number written to the VALUE register"]
36pub mod events_valrdy;
37#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
38pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
39#[doc = "Shortcut register"]
40pub mod shorts;
41#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
42pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
43#[doc = "Enable interrupt"]
44pub mod intenset;
45#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
46pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
47#[doc = "Disable interrupt"]
48pub mod intenclr;
49#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
50pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
51#[doc = "Configuration register"]
52pub mod config;
53#[doc = "VALUE (r) register accessor: an alias for `Reg<VALUE_SPEC>`"]
54pub type VALUE = crate::Reg<value::VALUE_SPEC>;
55#[doc = "Output random number"]
56pub mod value;