Struct nrf5340_app_pac::power_ns::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 14 fields
pub tasks_constlat: TASKS_CONSTLAT,
pub tasks_lowpwr: TASKS_LOWPWR,
pub subscribe_constlat: SUBSCRIBE_CONSTLAT,
pub subscribe_lowpwr: SUBSCRIBE_LOWPWR,
pub events_pofwarn: EVENTS_POFWARN,
pub events_sleepenter: EVENTS_SLEEPENTER,
pub events_sleepexit: EVENTS_SLEEPEXIT,
pub publish_pofwarn: PUBLISH_POFWARN,
pub publish_sleepenter: PUBLISH_SLEEPENTER,
pub publish_sleepexit: PUBLISH_SLEEPEXIT,
pub inten: INTEN,
pub intenset: INTENSET,
pub intenclr: INTENCLR,
pub gpregret: [GPREGRET; 2],
/* private fields */
}
Expand description
Register block
Fields
tasks_constlat: TASKS_CONSTLAT
0x78 - Enable Constant Latency mode
tasks_lowpwr: TASKS_LOWPWR
0x7c - Enable Low-Power mode (variable latency)
subscribe_constlat: SUBSCRIBE_CONSTLAT
0xf8 - Subscribe configuration for task CONSTLAT
subscribe_lowpwr: SUBSCRIBE_LOWPWR
0xfc - Subscribe configuration for task LOWPWR
events_pofwarn: EVENTS_POFWARN
0x108 - Power failure warning
events_sleepenter: EVENTS_SLEEPENTER
0x114 - CPU entered WFI/WFE sleep
events_sleepexit: EVENTS_SLEEPEXIT
0x118 - CPU exited WFI/WFE sleep
publish_pofwarn: PUBLISH_POFWARN
0x188 - Publish configuration for event POFWARN
publish_sleepenter: PUBLISH_SLEEPENTER
0x194 - Publish configuration for event SLEEPENTER
publish_sleepexit: PUBLISH_SLEEPEXIT
0x198 - Publish configuration for event SLEEPEXIT
inten: INTEN
0x300 - Enable or disable interrupt
intenset: INTENSET
0x304 - Enable interrupt
intenclr: INTENCLR
0x308 - Disable interrupt
gpregret: [GPREGRET; 2]
0x51c..0x524 - Description collection: General purpose retention register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more