nrf5340_app_pac/
power_ns.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 _reserved0: [u8; 0x78],
5 #[doc = "0x78 - Enable Constant Latency mode"]
6 pub tasks_constlat: TASKS_CONSTLAT,
7 #[doc = "0x7c - Enable Low-Power mode (variable latency)"]
8 pub tasks_lowpwr: TASKS_LOWPWR,
9 _reserved2: [u8; 0x78],
10 #[doc = "0xf8 - Subscribe configuration for task CONSTLAT"]
11 pub subscribe_constlat: SUBSCRIBE_CONSTLAT,
12 #[doc = "0xfc - Subscribe configuration for task LOWPWR"]
13 pub subscribe_lowpwr: SUBSCRIBE_LOWPWR,
14 _reserved4: [u8; 0x08],
15 #[doc = "0x108 - Power failure warning"]
16 pub events_pofwarn: EVENTS_POFWARN,
17 _reserved5: [u8; 0x08],
18 #[doc = "0x114 - CPU entered WFI/WFE sleep"]
19 pub events_sleepenter: EVENTS_SLEEPENTER,
20 #[doc = "0x118 - CPU exited WFI/WFE sleep"]
21 pub events_sleepexit: EVENTS_SLEEPEXIT,
22 _reserved7: [u8; 0x6c],
23 #[doc = "0x188 - Publish configuration for event POFWARN"]
24 pub publish_pofwarn: PUBLISH_POFWARN,
25 _reserved8: [u8; 0x08],
26 #[doc = "0x194 - Publish configuration for event SLEEPENTER"]
27 pub publish_sleepenter: PUBLISH_SLEEPENTER,
28 #[doc = "0x198 - Publish configuration for event SLEEPEXIT"]
29 pub publish_sleepexit: PUBLISH_SLEEPEXIT,
30 _reserved10: [u8; 0x0164],
31 #[doc = "0x300 - Enable or disable interrupt"]
32 pub inten: INTEN,
33 #[doc = "0x304 - Enable interrupt"]
34 pub intenset: INTENSET,
35 #[doc = "0x308 - Disable interrupt"]
36 pub intenclr: INTENCLR,
37 _reserved13: [u8; 0x0210],
38 #[doc = "0x51c..0x524 - Description collection: General purpose retention register"]
39 pub gpregret: [GPREGRET; 2],
40}
41#[doc = "TASKS_CONSTLAT (w) register accessor: an alias for `Reg<TASKS_CONSTLAT_SPEC>`"]
42pub type TASKS_CONSTLAT = crate::Reg<tasks_constlat::TASKS_CONSTLAT_SPEC>;
43#[doc = "Enable Constant Latency mode"]
44pub mod tasks_constlat;
45#[doc = "TASKS_LOWPWR (w) register accessor: an alias for `Reg<TASKS_LOWPWR_SPEC>`"]
46pub type TASKS_LOWPWR = crate::Reg<tasks_lowpwr::TASKS_LOWPWR_SPEC>;
47#[doc = "Enable Low-Power mode (variable latency)"]
48pub mod tasks_lowpwr;
49#[doc = "SUBSCRIBE_CONSTLAT (rw) register accessor: an alias for `Reg<SUBSCRIBE_CONSTLAT_SPEC>`"]
50pub type SUBSCRIBE_CONSTLAT = crate::Reg<subscribe_constlat::SUBSCRIBE_CONSTLAT_SPEC>;
51#[doc = "Subscribe configuration for task CONSTLAT"]
52pub mod subscribe_constlat;
53#[doc = "SUBSCRIBE_LOWPWR (rw) register accessor: an alias for `Reg<SUBSCRIBE_LOWPWR_SPEC>`"]
54pub type SUBSCRIBE_LOWPWR = crate::Reg<subscribe_lowpwr::SUBSCRIBE_LOWPWR_SPEC>;
55#[doc = "Subscribe configuration for task LOWPWR"]
56pub mod subscribe_lowpwr;
57#[doc = "EVENTS_POFWARN (rw) register accessor: an alias for `Reg<EVENTS_POFWARN_SPEC>`"]
58pub type EVENTS_POFWARN = crate::Reg<events_pofwarn::EVENTS_POFWARN_SPEC>;
59#[doc = "Power failure warning"]
60pub mod events_pofwarn;
61#[doc = "EVENTS_SLEEPENTER (rw) register accessor: an alias for `Reg<EVENTS_SLEEPENTER_SPEC>`"]
62pub type EVENTS_SLEEPENTER = crate::Reg<events_sleepenter::EVENTS_SLEEPENTER_SPEC>;
63#[doc = "CPU entered WFI/WFE sleep"]
64pub mod events_sleepenter;
65#[doc = "EVENTS_SLEEPEXIT (rw) register accessor: an alias for `Reg<EVENTS_SLEEPEXIT_SPEC>`"]
66pub type EVENTS_SLEEPEXIT = crate::Reg<events_sleepexit::EVENTS_SLEEPEXIT_SPEC>;
67#[doc = "CPU exited WFI/WFE sleep"]
68pub mod events_sleepexit;
69#[doc = "PUBLISH_POFWARN (rw) register accessor: an alias for `Reg<PUBLISH_POFWARN_SPEC>`"]
70pub type PUBLISH_POFWARN = crate::Reg<publish_pofwarn::PUBLISH_POFWARN_SPEC>;
71#[doc = "Publish configuration for event POFWARN"]
72pub mod publish_pofwarn;
73#[doc = "PUBLISH_SLEEPENTER (rw) register accessor: an alias for `Reg<PUBLISH_SLEEPENTER_SPEC>`"]
74pub type PUBLISH_SLEEPENTER = crate::Reg<publish_sleepenter::PUBLISH_SLEEPENTER_SPEC>;
75#[doc = "Publish configuration for event SLEEPENTER"]
76pub mod publish_sleepenter;
77#[doc = "PUBLISH_SLEEPEXIT (rw) register accessor: an alias for `Reg<PUBLISH_SLEEPEXIT_SPEC>`"]
78pub type PUBLISH_SLEEPEXIT = crate::Reg<publish_sleepexit::PUBLISH_SLEEPEXIT_SPEC>;
79#[doc = "Publish configuration for event SLEEPEXIT"]
80pub mod publish_sleepexit;
81#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
82pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
83#[doc = "Enable or disable interrupt"]
84pub mod inten;
85#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
86pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
87#[doc = "Enable interrupt"]
88pub mod intenset;
89#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
90pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
91#[doc = "Disable interrupt"]
92pub mod intenclr;
93#[doc = "GPREGRET (rw) register accessor: an alias for `Reg<GPREGRET_SPEC>`"]
94pub type GPREGRET = crate::Reg<gpregret::GPREGRET_SPEC>;
95#[doc = "Description collection: General purpose retention register"]
96pub mod gpregret;