#[repr(C)]pub struct NRF_POWER_Type {Show 35 fields
pub RESERVED: [u32; 30],
pub TASKS_CONSTLAT: u32,
pub TASKS_LOWPWR: u32,
pub RESERVED1: [u32; 34],
pub EVENTS_POFWARN: u32,
pub RESERVED2: [u32; 2],
pub EVENTS_SLEEPENTER: u32,
pub EVENTS_SLEEPEXIT: u32,
pub EVENTS_USBDETECTED: u32,
pub EVENTS_USBREMOVED: u32,
pub EVENTS_USBPWRRDY: u32,
pub RESERVED3: [u32; 119],
pub INTENSET: u32,
pub INTENCLR: u32,
pub RESERVED4: [u32; 61],
pub RESETREAS: u32,
pub RESERVED5: [u32; 9],
pub RAMSTATUS: u32,
pub RESERVED6: [u32; 3],
pub USBREGSTATUS: u32,
pub RESERVED7: [u32; 49],
pub SYSTEMOFF: u32,
pub RESERVED8: [u32; 3],
pub POFCON: u32,
pub RESERVED9: [u32; 2],
pub GPREGRET: u32,
pub GPREGRET2: u32,
pub RESERVED10: [u32; 21],
pub DCDCEN: u32,
pub RESERVED11: u32,
pub DCDCEN0: u32,
pub RESERVED12: [u32; 47],
pub MAINREGSTATUS: u32,
pub RESERVED13: [u32; 175],
pub RAM: [POWER_RAM_Type; 9],
}
Expand description
@brief Power control (POWER)
Fields§
§RESERVED: [u32; 30]
§TASKS_CONSTLAT: u32
< (@ 0x00000078) Enable Constant Latency mode
TASKS_LOWPWR: u32
< (@ 0x0000007C) Enable Low-power mode (variable latency)
RESERVED1: [u32; 34]
§EVENTS_POFWARN: u32
< (@ 0x00000108) Power failure warning
RESERVED2: [u32; 2]
§EVENTS_SLEEPENTER: u32
< (@ 0x00000114) CPU entered WFI/WFE sleep
EVENTS_SLEEPEXIT: u32
< (@ 0x00000118) CPU exited WFI/WFE sleep
EVENTS_USBDETECTED: u32
< (@ 0x0000011C) Voltage supply detected on VBUS
EVENTS_USBREMOVED: u32
< (@ 0x00000120) Voltage supply removed from VBUS
EVENTS_USBPWRRDY: u32
< (@ 0x00000124) USB 3.3 V supply ready
RESERVED3: [u32; 119]
§INTENSET: u32
< (@ 0x00000304) Enable interrupt
INTENCLR: u32
< (@ 0x00000308) Disable interrupt
RESERVED4: [u32; 61]
§RESETREAS: u32
< (@ 0x00000400) Reset reason
RESERVED5: [u32; 9]
§RAMSTATUS: u32
< (@ 0x00000428) Deprecated register - RAM status register
RESERVED6: [u32; 3]
§USBREGSTATUS: u32
< (@ 0x00000438) USB supply status
RESERVED7: [u32; 49]
§SYSTEMOFF: u32
< (@ 0x00000500) System OFF register
RESERVED8: [u32; 3]
§POFCON: u32
< (@ 0x00000510) Power-fail comparator configuration
RESERVED9: [u32; 2]
§GPREGRET: u32
< (@ 0x0000051C) General purpose retention register
GPREGRET2: u32
< (@ 0x00000520) General purpose retention register
RESERVED10: [u32; 21]
§DCDCEN: u32
< (@ 0x00000578) Enable DC/DC converter for REG1 stage
RESERVED11: u32
§DCDCEN0: u32
< (@ 0x00000580) Enable DC/DC converter for REG0 stage
RESERVED12: [u32; 47]
§MAINREGSTATUS: u32
< (@ 0x00000640) Main supply status
RESERVED13: [u32; 175]
§RAM: [POWER_RAM_Type; 9]
< (@ 0x00000900) Unspecified
Trait Implementations§
Source§impl Clone for NRF_POWER_Type
impl Clone for NRF_POWER_Type
Source§fn clone(&self) -> NRF_POWER_Type
fn clone(&self) -> NRF_POWER_Type
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NRF_POWER_Type
impl Debug for NRF_POWER_Type
Source§impl Default for NRF_POWER_Type
impl Default for NRF_POWER_Type
impl Copy for NRF_POWER_Type
Auto Trait Implementations§
impl Freeze for NRF_POWER_Type
impl RefUnwindSafe for NRF_POWER_Type
impl Send for NRF_POWER_Type
impl Sync for NRF_POWER_Type
impl Unpin for NRF_POWER_Type
impl UnwindSafe for NRF_POWER_Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2448 bytes