nrf52840_pac/
rtc0.rs
1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start RTC COUNTER"]
5 pub tasks_start: TASKS_START,
6 #[doc = "0x04 - Stop RTC COUNTER"]
7 pub tasks_stop: TASKS_STOP,
8 #[doc = "0x08 - Clear RTC COUNTER"]
9 pub tasks_clear: TASKS_CLEAR,
10 #[doc = "0x0c - Set COUNTER to 0xFFFFF0"]
11 pub tasks_trigovrflw: TASKS_TRIGOVRFLW,
12 _reserved4: [u8; 0xf0],
13 #[doc = "0x100 - Event on COUNTER increment"]
14 pub events_tick: EVENTS_TICK,
15 #[doc = "0x104 - Event on COUNTER overflow"]
16 pub events_ovrflw: EVENTS_OVRFLW,
17 _reserved6: [u8; 0x38],
18 #[doc = "0x140..0x150 - Description collection\\[n\\]: Compare event on CC\\[n\\]
19match"]
20 pub events_compare: [EVENTS_COMPARE; 4],
21 _reserved7: [u8; 0x01b4],
22 #[doc = "0x304 - Enable interrupt"]
23 pub intenset: INTENSET,
24 #[doc = "0x308 - Disable interrupt"]
25 pub intenclr: INTENCLR,
26 _reserved9: [u8; 0x34],
27 #[doc = "0x340 - Enable or disable event routing"]
28 pub evten: EVTEN,
29 #[doc = "0x344 - Enable event routing"]
30 pub evtenset: EVTENSET,
31 #[doc = "0x348 - Disable event routing"]
32 pub evtenclr: EVTENCLR,
33 _reserved12: [u8; 0x01b8],
34 #[doc = "0x504 - Current COUNTER value"]
35 pub counter: COUNTER,
36 #[doc = "0x508 - 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped"]
37 pub prescaler: PRESCALER,
38 _reserved14: [u8; 0x34],
39 #[doc = "0x540..0x550 - Description collection\\[n\\]: Compare register n"]
40 pub cc: [CC; 4],
41}
42#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
43pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
44#[doc = "Start RTC COUNTER"]
45pub mod tasks_start;
46#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
47pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
48#[doc = "Stop RTC COUNTER"]
49pub mod tasks_stop;
50#[doc = "TASKS_CLEAR (w) register accessor: an alias for `Reg<TASKS_CLEAR_SPEC>`"]
51pub type TASKS_CLEAR = crate::Reg<tasks_clear::TASKS_CLEAR_SPEC>;
52#[doc = "Clear RTC COUNTER"]
53pub mod tasks_clear;
54#[doc = "TASKS_TRIGOVRFLW (w) register accessor: an alias for `Reg<TASKS_TRIGOVRFLW_SPEC>`"]
55pub type TASKS_TRIGOVRFLW = crate::Reg<tasks_trigovrflw::TASKS_TRIGOVRFLW_SPEC>;
56#[doc = "Set COUNTER to 0xFFFFF0"]
57pub mod tasks_trigovrflw;
58#[doc = "EVENTS_TICK (rw) register accessor: an alias for `Reg<EVENTS_TICK_SPEC>`"]
59pub type EVENTS_TICK = crate::Reg<events_tick::EVENTS_TICK_SPEC>;
60#[doc = "Event on COUNTER increment"]
61pub mod events_tick;
62#[doc = "EVENTS_OVRFLW (rw) register accessor: an alias for `Reg<EVENTS_OVRFLW_SPEC>`"]
63pub type EVENTS_OVRFLW = crate::Reg<events_ovrflw::EVENTS_OVRFLW_SPEC>;
64#[doc = "Event on COUNTER overflow"]
65pub mod events_ovrflw;
66#[doc = "EVENTS_COMPARE (rw) register accessor: an alias for `Reg<EVENTS_COMPARE_SPEC>`"]
67pub type EVENTS_COMPARE = crate::Reg<events_compare::EVENTS_COMPARE_SPEC>;
68#[doc = "Description collection\\[n\\]: Compare event on CC\\[n\\]
69match"]
70pub mod events_compare;
71#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
72pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
73#[doc = "Enable interrupt"]
74pub mod intenset;
75#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
76pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
77#[doc = "Disable interrupt"]
78pub mod intenclr;
79#[doc = "EVTEN (rw) register accessor: an alias for `Reg<EVTEN_SPEC>`"]
80pub type EVTEN = crate::Reg<evten::EVTEN_SPEC>;
81#[doc = "Enable or disable event routing"]
82pub mod evten;
83#[doc = "EVTENSET (rw) register accessor: an alias for `Reg<EVTENSET_SPEC>`"]
84pub type EVTENSET = crate::Reg<evtenset::EVTENSET_SPEC>;
85#[doc = "Enable event routing"]
86pub mod evtenset;
87#[doc = "EVTENCLR (rw) register accessor: an alias for `Reg<EVTENCLR_SPEC>`"]
88pub type EVTENCLR = crate::Reg<evtenclr::EVTENCLR_SPEC>;
89#[doc = "Disable event routing"]
90pub mod evtenclr;
91#[doc = "COUNTER (r) register accessor: an alias for `Reg<COUNTER_SPEC>`"]
92pub type COUNTER = crate::Reg<counter::COUNTER_SPEC>;
93#[doc = "Current COUNTER value"]
94pub mod counter;
95#[doc = "PRESCALER (rw) register accessor: an alias for `Reg<PRESCALER_SPEC>`"]
96pub type PRESCALER = crate::Reg<prescaler::PRESCALER_SPEC>;
97#[doc = "12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped"]
98pub mod prescaler;
99#[doc = "CC (rw) register accessor: an alias for `Reg<CC_SPEC>`"]
100pub type CC = crate::Reg<cc::CC_SPEC>;
101#[doc = "Description collection\\[n\\]: Compare register n"]
102pub mod cc;