pub enum POWERR {
DISABLED,
ENABLED,
}
Expand description
Possible values of the field POWER
Variants
DISABLED
Peripheral is powered off
ENABLED
Peripheral is powered on
Implementations
sourceimpl POWERR
impl POWERR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Checks if the value of the field is DISABLED
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Checks if the value of the field is ENABLED
Trait Implementations
impl Copy for POWERR
impl StructuralPartialEq for POWERR
Auto Trait Implementations
impl RefUnwindSafe for POWERR
impl Send for POWERR
impl Sync for POWERR
impl Unpin for POWERR
impl UnwindSafe for POWERR
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