nrf52840_pac/
power.rs
1#[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; 0x88],
10 #[doc = "0x108 - Power failure warning"]
11 pub events_pofwarn: EVENTS_POFWARN,
12 _reserved3: [u8; 0x08],
13 #[doc = "0x114 - CPU entered WFI/WFE sleep"]
14 pub events_sleepenter: EVENTS_SLEEPENTER,
15 #[doc = "0x118 - CPU exited WFI/WFE sleep"]
16 pub events_sleepexit: EVENTS_SLEEPEXIT,
17 #[doc = "0x11c - Voltage supply detected on VBUS"]
18 pub events_usbdetected: EVENTS_USBDETECTED,
19 #[doc = "0x120 - Voltage supply removed from VBUS"]
20 pub events_usbremoved: EVENTS_USBREMOVED,
21 #[doc = "0x124 - USB 3.3 V supply ready"]
22 pub events_usbpwrrdy: EVENTS_USBPWRRDY,
23 _reserved8: [u8; 0x01dc],
24 #[doc = "0x304 - Enable interrupt"]
25 pub intenset: INTENSET,
26 #[doc = "0x308 - Disable interrupt"]
27 pub intenclr: INTENCLR,
28 _reserved10: [u8; 0xf4],
29 #[doc = "0x400 - Reset reason"]
30 pub resetreas: RESETREAS,
31 _reserved11: [u8; 0x24],
32 #[doc = "0x428 - Deprecated register - RAM status register"]
33 pub ramstatus: RAMSTATUS,
34 _reserved12: [u8; 0x0c],
35 #[doc = "0x438 - USB supply status"]
36 pub usbregstatus: USBREGSTATUS,
37 _reserved13: [u8; 0xc4],
38 #[doc = "0x500 - System OFF register"]
39 pub systemoff: SYSTEMOFF,
40 _reserved14: [u8; 0x0c],
41 #[doc = "0x510 - Power-fail comparator configuration"]
42 pub pofcon: POFCON,
43 _reserved15: [u8; 0x08],
44 #[doc = "0x51c - General purpose retention register"]
45 pub gpregret: GPREGRET,
46 #[doc = "0x520 - General purpose retention register"]
47 pub gpregret2: GPREGRET2,
48 _reserved17: [u8; 0x54],
49 #[doc = "0x578 - Enable DC/DC converter for REG1 stage."]
50 pub dcdcen: DCDCEN,
51 _reserved18: [u8; 0x04],
52 #[doc = "0x580 - Enable DC/DC converter for REG0 stage."]
53 pub dcdcen0: DCDCEN0,
54 _reserved19: [u8; 0xbc],
55 #[doc = "0x640 - Main supply status"]
56 pub mainregstatus: MAINREGSTATUS,
57 _reserved20: [u8; 0x02bc],
58 #[doc = "0x900..0x90c - Unspecified"]
59 pub ram0: RAM,
60 _reserved21: [u8; 0x04],
61 #[doc = "0x910..0x91c - Unspecified"]
62 pub ram1: RAM,
63 _reserved22: [u8; 0x04],
64 #[doc = "0x920..0x92c - Unspecified"]
65 pub ram2: RAM,
66 _reserved23: [u8; 0x04],
67 #[doc = "0x930..0x93c - Unspecified"]
68 pub ram3: RAM,
69 _reserved24: [u8; 0x04],
70 #[doc = "0x940..0x94c - Unspecified"]
71 pub ram4: RAM,
72 _reserved25: [u8; 0x04],
73 #[doc = "0x950..0x95c - Unspecified"]
74 pub ram5: RAM,
75 _reserved26: [u8; 0x04],
76 #[doc = "0x960..0x96c - Unspecified"]
77 pub ram6: RAM,
78 _reserved27: [u8; 0x04],
79 #[doc = "0x970..0x97c - Unspecified"]
80 pub ram7: RAM,
81 _reserved28: [u8; 0x04],
82 #[doc = "0x980..0x98c - Unspecified"]
83 pub ram8: RAM,
84}
85#[doc = "TASKS_CONSTLAT (w) register accessor: an alias for `Reg<TASKS_CONSTLAT_SPEC>`"]
86pub type TASKS_CONSTLAT = crate::Reg<tasks_constlat::TASKS_CONSTLAT_SPEC>;
87#[doc = "Enable constant latency mode"]
88pub mod tasks_constlat;
89#[doc = "TASKS_LOWPWR (w) register accessor: an alias for `Reg<TASKS_LOWPWR_SPEC>`"]
90pub type TASKS_LOWPWR = crate::Reg<tasks_lowpwr::TASKS_LOWPWR_SPEC>;
91#[doc = "Enable low power mode (variable latency)"]
92pub mod tasks_lowpwr;
93#[doc = "EVENTS_POFWARN (rw) register accessor: an alias for `Reg<EVENTS_POFWARN_SPEC>`"]
94pub type EVENTS_POFWARN = crate::Reg<events_pofwarn::EVENTS_POFWARN_SPEC>;
95#[doc = "Power failure warning"]
96pub mod events_pofwarn;
97#[doc = "EVENTS_SLEEPENTER (rw) register accessor: an alias for `Reg<EVENTS_SLEEPENTER_SPEC>`"]
98pub type EVENTS_SLEEPENTER = crate::Reg<events_sleepenter::EVENTS_SLEEPENTER_SPEC>;
99#[doc = "CPU entered WFI/WFE sleep"]
100pub mod events_sleepenter;
101#[doc = "EVENTS_SLEEPEXIT (rw) register accessor: an alias for `Reg<EVENTS_SLEEPEXIT_SPEC>`"]
102pub type EVENTS_SLEEPEXIT = crate::Reg<events_sleepexit::EVENTS_SLEEPEXIT_SPEC>;
103#[doc = "CPU exited WFI/WFE sleep"]
104pub mod events_sleepexit;
105#[doc = "EVENTS_USBDETECTED (rw) register accessor: an alias for `Reg<EVENTS_USBDETECTED_SPEC>`"]
106pub type EVENTS_USBDETECTED = crate::Reg<events_usbdetected::EVENTS_USBDETECTED_SPEC>;
107#[doc = "Voltage supply detected on VBUS"]
108pub mod events_usbdetected;
109#[doc = "EVENTS_USBREMOVED (rw) register accessor: an alias for `Reg<EVENTS_USBREMOVED_SPEC>`"]
110pub type EVENTS_USBREMOVED = crate::Reg<events_usbremoved::EVENTS_USBREMOVED_SPEC>;
111#[doc = "Voltage supply removed from VBUS"]
112pub mod events_usbremoved;
113#[doc = "EVENTS_USBPWRRDY (rw) register accessor: an alias for `Reg<EVENTS_USBPWRRDY_SPEC>`"]
114pub type EVENTS_USBPWRRDY = crate::Reg<events_usbpwrrdy::EVENTS_USBPWRRDY_SPEC>;
115#[doc = "USB 3.3 V supply ready"]
116pub mod events_usbpwrrdy;
117#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
118pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
119#[doc = "Enable interrupt"]
120pub mod intenset;
121#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
122pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
123#[doc = "Disable interrupt"]
124pub mod intenclr;
125#[doc = "RESETREAS (rw) register accessor: an alias for `Reg<RESETREAS_SPEC>`"]
126pub type RESETREAS = crate::Reg<resetreas::RESETREAS_SPEC>;
127#[doc = "Reset reason"]
128pub mod resetreas;
129#[doc = "RAMSTATUS (r) register accessor: an alias for `Reg<RAMSTATUS_SPEC>`"]
130pub type RAMSTATUS = crate::Reg<ramstatus::RAMSTATUS_SPEC>;
131#[doc = "Deprecated register - RAM status register"]
132pub mod ramstatus;
133#[doc = "USBREGSTATUS (r) register accessor: an alias for `Reg<USBREGSTATUS_SPEC>`"]
134pub type USBREGSTATUS = crate::Reg<usbregstatus::USBREGSTATUS_SPEC>;
135#[doc = "USB supply status"]
136pub mod usbregstatus;
137#[doc = "SYSTEMOFF (w) register accessor: an alias for `Reg<SYSTEMOFF_SPEC>`"]
138pub type SYSTEMOFF = crate::Reg<systemoff::SYSTEMOFF_SPEC>;
139#[doc = "System OFF register"]
140pub mod systemoff;
141#[doc = "POFCON (rw) register accessor: an alias for `Reg<POFCON_SPEC>`"]
142pub type POFCON = crate::Reg<pofcon::POFCON_SPEC>;
143#[doc = "Power-fail comparator configuration"]
144pub mod pofcon;
145#[doc = "GPREGRET (rw) register accessor: an alias for `Reg<GPREGRET_SPEC>`"]
146pub type GPREGRET = crate::Reg<gpregret::GPREGRET_SPEC>;
147#[doc = "General purpose retention register"]
148pub mod gpregret;
149#[doc = "GPREGRET2 (rw) register accessor: an alias for `Reg<GPREGRET2_SPEC>`"]
150pub type GPREGRET2 = crate::Reg<gpregret2::GPREGRET2_SPEC>;
151#[doc = "General purpose retention register"]
152pub mod gpregret2;
153#[doc = "DCDCEN (rw) register accessor: an alias for `Reg<DCDCEN_SPEC>`"]
154pub type DCDCEN = crate::Reg<dcdcen::DCDCEN_SPEC>;
155#[doc = "Enable DC/DC converter for REG1 stage."]
156pub mod dcdcen;
157#[doc = "DCDCEN0 (rw) register accessor: an alias for `Reg<DCDCEN0_SPEC>`"]
158pub type DCDCEN0 = crate::Reg<dcdcen0::DCDCEN0_SPEC>;
159#[doc = "Enable DC/DC converter for REG0 stage."]
160pub mod dcdcen0;
161#[doc = "MAINREGSTATUS (r) register accessor: an alias for `Reg<MAINREGSTATUS_SPEC>`"]
162pub type MAINREGSTATUS = crate::Reg<mainregstatus::MAINREGSTATUS_SPEC>;
163#[doc = "Main supply status"]
164pub mod mainregstatus;
165#[doc = "Unspecified"]
166pub use ram::RAM;
167#[doc = r"Cluster"]
168#[doc = "Unspecified"]
169pub mod ram;