nrf51_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; 0x01f8],
13    #[doc = "0x304 - Interrupt enable set register."]
14    pub intenset: INTENSET,
15    #[doc = "0x308 - Interrupt enable clear register."]
16    pub intenclr: INTENCLR,
17    _reserved5: [u8; 0xf4],
18    #[doc = "0x400 - Reset reason."]
19    pub resetreas: RESETREAS,
20    _reserved6: [u8; 0x24],
21    #[doc = "0x428 - Ram status register."]
22    pub ramstatus: RAMSTATUS,
23    _reserved7: [u8; 0xd4],
24    #[doc = "0x500 - System off register."]
25    pub systemoff: SYSTEMOFF,
26    _reserved8: [u8; 0x0c],
27    #[doc = "0x510 - Power failure configuration."]
28    pub pofcon: POFCON,
29    _reserved9: [u8; 0x08],
30    #[doc = "0x51c - General purpose retention register. This register is a retained register."]
31    pub gpregret: GPREGRET,
32    _reserved10: [u8; 0x04],
33    #[doc = "0x524 - Ram on/off."]
34    pub ramon: RAMON,
35    _reserved11: [u8; 0x1c],
36    #[doc = "0x544 - Pin reset functionality configuration register. This register is a retained register."]
37    pub reset: RESET,
38    _reserved12: [u8; 0x0c],
39    #[doc = "0x554 - Ram on/off."]
40    pub ramonb: RAMONB,
41    _reserved13: [u8; 0x20],
42    #[doc = "0x578 - DCDC converter enable configuration register."]
43    pub dcdcen: DCDCEN,
44    _reserved14: [u8; 0x048c],
45    #[doc = "0xa08 - DCDC power-up force register."]
46    pub dcdcforce: DCDCFORCE,
47}
48#[doc = "TASKS_CONSTLAT (w) register accessor: an alias for `Reg<TASKS_CONSTLAT_SPEC>`"]
49pub type TASKS_CONSTLAT = crate::Reg<tasks_constlat::TASKS_CONSTLAT_SPEC>;
50#[doc = "Enable constant latency mode."]
51pub mod tasks_constlat;
52#[doc = "TASKS_LOWPWR (w) register accessor: an alias for `Reg<TASKS_LOWPWR_SPEC>`"]
53pub type TASKS_LOWPWR = crate::Reg<tasks_lowpwr::TASKS_LOWPWR_SPEC>;
54#[doc = "Enable low power mode (variable latency)."]
55pub mod tasks_lowpwr;
56#[doc = "EVENTS_POFWARN (rw) register accessor: an alias for `Reg<EVENTS_POFWARN_SPEC>`"]
57pub type EVENTS_POFWARN = crate::Reg<events_pofwarn::EVENTS_POFWARN_SPEC>;
58#[doc = "Power failure warning."]
59pub mod events_pofwarn;
60#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
61pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
62#[doc = "Interrupt enable set register."]
63pub mod intenset;
64#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
65pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
66#[doc = "Interrupt enable clear register."]
67pub mod intenclr;
68#[doc = "RESETREAS (rw) register accessor: an alias for `Reg<RESETREAS_SPEC>`"]
69pub type RESETREAS = crate::Reg<resetreas::RESETREAS_SPEC>;
70#[doc = "Reset reason."]
71pub mod resetreas;
72#[doc = "RAMSTATUS (r) register accessor: an alias for `Reg<RAMSTATUS_SPEC>`"]
73pub type RAMSTATUS = crate::Reg<ramstatus::RAMSTATUS_SPEC>;
74#[doc = "Ram status register."]
75pub mod ramstatus;
76#[doc = "SYSTEMOFF (w) register accessor: an alias for `Reg<SYSTEMOFF_SPEC>`"]
77pub type SYSTEMOFF = crate::Reg<systemoff::SYSTEMOFF_SPEC>;
78#[doc = "System off register."]
79pub mod systemoff;
80#[doc = "POFCON (rw) register accessor: an alias for `Reg<POFCON_SPEC>`"]
81pub type POFCON = crate::Reg<pofcon::POFCON_SPEC>;
82#[doc = "Power failure configuration."]
83pub mod pofcon;
84#[doc = "GPREGRET (rw) register accessor: an alias for `Reg<GPREGRET_SPEC>`"]
85pub type GPREGRET = crate::Reg<gpregret::GPREGRET_SPEC>;
86#[doc = "General purpose retention register. This register is a retained register."]
87pub mod gpregret;
88#[doc = "RAMON (rw) register accessor: an alias for `Reg<RAMON_SPEC>`"]
89pub type RAMON = crate::Reg<ramon::RAMON_SPEC>;
90#[doc = "Ram on/off."]
91pub mod ramon;
92#[doc = "RESET (rw) register accessor: an alias for `Reg<RESET_SPEC>`"]
93pub type RESET = crate::Reg<reset::RESET_SPEC>;
94#[doc = "Pin reset functionality configuration register. This register is a retained register."]
95pub mod reset;
96#[doc = "RAMONB (rw) register accessor: an alias for `Reg<RAMONB_SPEC>`"]
97pub type RAMONB = crate::Reg<ramonb::RAMONB_SPEC>;
98#[doc = "Ram on/off."]
99pub mod ramonb;
100#[doc = "DCDCEN (rw) register accessor: an alias for `Reg<DCDCEN_SPEC>`"]
101pub type DCDCEN = crate::Reg<dcdcen::DCDCEN_SPEC>;
102#[doc = "DCDC converter enable configuration register."]
103pub mod dcdcen;
104#[doc = "DCDCFORCE (rw) register accessor: an alias for `Reg<DCDCFORCE_SPEC>`"]
105pub type DCDCFORCE = crate::Reg<dcdcforce::DCDCFORCE_SPEC>;
106#[doc = "DCDC power-up force register."]
107pub mod dcdcforce;