pub enum PoweredClock {
NormalEnabledDeepSleepDisabled,
AlwaysEnabled,
}Expand description
The power state of a given clock.
On the MCX-A, when Deep-Sleep is entered, any clock not configured for Deep Sleep mode will be stopped. This means that any downstream usage, e.g. by peripherals, will also stop.
In the future, we will provide an API for entering Deep Sleep, and if there are
any peripherals that are NOT using an AlwaysEnabled clock active, entry into
Deep Sleep will be prevented, in order to avoid misbehaving peripherals.
Variants§
NormalEnabledDeepSleepDisabled
The given clock will NOT continue running in Deep Sleep mode
AlwaysEnabled
The given clock WILL continue running in Deep Sleep mode
Implementations§
Source§impl PoweredClock
impl PoweredClock
Sourcepub fn meets_requirement_of(&self, other: &Self) -> bool
pub fn meets_requirement_of(&self, other: &Self) -> bool
Does THIS clock meet the power requirements of the OTHER clock?
Trait Implementations§
Source§impl Clone for PoweredClock
impl Clone for PoweredClock
Source§fn clone(&self) -> PoweredClock
fn clone(&self) -> PoweredClock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoweredClock
impl Debug for PoweredClock
Source§impl PartialEq for PoweredClock
impl PartialEq for PoweredClock
impl Copy for PoweredClock
impl Eq for PoweredClock
impl StructuralPartialEq for PoweredClock
Auto Trait Implementations§
impl Freeze for PoweredClock
impl RefUnwindSafe for PoweredClock
impl Send for PoweredClock
impl Sync for PoweredClock
impl Unpin for PoweredClock
impl UnwindSafe for PoweredClock
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
Mutably borrows from an owned value. Read more