pub struct Power(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Power
impl Power
sourcepub fn internal_oscillator(&self) -> bool
pub fn internal_oscillator(&self) -> bool
Enable internal oscillator
sourcepub fn with_internal_oscillator(self, value: bool) -> Self
pub fn with_internal_oscillator(self, value: bool) -> Self
Enable internal oscillator
sourcepub fn set_internal_oscillator(&mut self, value: bool)
pub fn set_internal_oscillator(&mut self, value: bool)
Enable internal oscillator
sourcepub fn measure_block(&self) -> bool
pub fn measure_block(&self) -> bool
Measure block powered
sourcepub fn with_measure_block(self, value: bool) -> Self
pub fn with_measure_block(self, value: bool) -> Self
Measure block powered
sourcepub fn set_measure_block(&mut self, value: bool)
pub fn set_measure_block(&mut self, value: bool)
Measure block powered
sourcepub fn with_receiver(self, value: bool) -> Self
pub fn with_receiver(self, value: bool) -> Self
Receiver powered and current references for Measure block
sourcepub fn set_receiver(&mut self, value: bool)
pub fn set_receiver(&mut self, value: bool)
Receiver powered and current references for Measure block
sourcepub fn bandgap_wake(&self) -> bool
pub fn bandgap_wake(&self) -> bool
Band gap and wake circuit
sourcepub fn with_bandgap_wake(self, value: bool) -> Self
pub fn with_bandgap_wake(self, value: bool) -> Self
Band gap and wake circuit
sourcepub fn set_bandgap_wake(&mut self, value: bool)
pub fn set_bandgap_wake(&mut self, value: bool)
Band gap and wake circuit
Trait Implementations§
impl Copy for Power
impl Eq for Power
impl StructuralPartialEq for Power
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl Sync for Power
impl Unpin for Power
impl UnwindSafe for Power
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.