riot_sys

Struct NRF_POWER_Type

Source
#[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

Source§

fn clone(&self) -> NRF_POWER_Type

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NRF_POWER_Type

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NRF_POWER_Type

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for NRF_POWER_Type

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

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