nrf5340_net_pac/
rng_ns.rs1#[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; 0x78],
9 #[doc = "0x80 - Subscribe configuration for task START"]
10 pub subscribe_start: SUBSCRIBE_START,
11 #[doc = "0x84 - Subscribe configuration for task STOP"]
12 pub subscribe_stop: SUBSCRIBE_STOP,
13 _reserved4: [u8; 0x78],
14 #[doc = "0x100 - Event being generated for every new random number written to the VALUE register"]
15 pub events_valrdy: EVENTS_VALRDY,
16 _reserved5: [u8; 0x7c],
17 #[doc = "0x180 - Publish configuration for event VALRDY"]
18 pub publish_valrdy: PUBLISH_VALRDY,
19 _reserved6: [u8; 0x7c],
20 #[doc = "0x200 - Shortcuts between local events and tasks"]
21 pub shorts: SHORTS,
22 _reserved7: [u8; 0x0100],
23 #[doc = "0x304 - Enable interrupt"]
24 pub intenset: INTENSET,
25 #[doc = "0x308 - Disable interrupt"]
26 pub intenclr: INTENCLR,
27 _reserved9: [u8; 0x01f8],
28 #[doc = "0x504 - Configuration register"]
29 pub config: CONFIG,
30 #[doc = "0x508 - Output random number"]
31 pub value: VALUE,
32}
33#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
34pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
35#[doc = "Task starting the random number generator"]
36pub mod tasks_start;
37#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
38pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
39#[doc = "Task stopping the random number generator"]
40pub mod tasks_stop;
41#[doc = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg<SUBSCRIBE_START_SPEC>`"]
42pub type SUBSCRIBE_START = crate::Reg<subscribe_start::SUBSCRIBE_START_SPEC>;
43#[doc = "Subscribe configuration for task START"]
44pub mod subscribe_start;
45#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
46pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
47#[doc = "Subscribe configuration for task STOP"]
48pub mod subscribe_stop;
49#[doc = "EVENTS_VALRDY (rw) register accessor: an alias for `Reg<EVENTS_VALRDY_SPEC>`"]
50pub type EVENTS_VALRDY = crate::Reg<events_valrdy::EVENTS_VALRDY_SPEC>;
51#[doc = "Event being generated for every new random number written to the VALUE register"]
52pub mod events_valrdy;
53#[doc = "PUBLISH_VALRDY (rw) register accessor: an alias for `Reg<PUBLISH_VALRDY_SPEC>`"]
54pub type PUBLISH_VALRDY = crate::Reg<publish_valrdy::PUBLISH_VALRDY_SPEC>;
55#[doc = "Publish configuration for event VALRDY"]
56pub mod publish_valrdy;
57#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
58pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
59#[doc = "Shortcuts between local events and tasks"]
60pub mod shorts;
61#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
62pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
63#[doc = "Enable interrupt"]
64pub mod intenset;
65#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
66pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
67#[doc = "Disable interrupt"]
68pub mod intenclr;
69#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
70pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
71#[doc = "Configuration register"]
72pub mod config;
73#[doc = "VALUE (r) register accessor: an alias for `Reg<VALUE_SPEC>`"]
74pub type VALUE = crate::Reg<value::VALUE_SPEC>;
75#[doc = "Output random number"]
76pub mod value;