#[repr(transparent)]pub struct Status(pub u32);
Expand description
Crystal Oscillator Status
Tuple Fields§
§0: u32
Implementations§
source§impl Status
impl Status
sourcepub const fn freq_range(&self) -> StatusFreqRange
pub const fn freq_range(&self) -> StatusFreqRange
The current frequency range setting, always reads 0
sourcepub fn set_freq_range(&mut self, val: StatusFreqRange)
pub fn set_freq_range(&mut self, val: StatusFreqRange)
The current frequency range setting, always reads 0
sourcepub const fn enabled(&self) -> bool
pub const fn enabled(&self) -> bool
Oscillator is enabled but not necessarily running and stable, resets to 0
sourcepub fn set_enabled(&mut self, val: bool)
pub fn set_enabled(&mut self, val: bool)
Oscillator is enabled but not necessarily running and stable, resets to 0
sourcepub const fn badwrite(&self) -> bool
pub const fn badwrite(&self) -> bool
An invalid value has been written to CTRL_ENABLE or CTRL_FREQ_RANGE or DORMANT
sourcepub fn set_badwrite(&mut self, val: bool)
pub fn set_badwrite(&mut self, val: bool)
An invalid value has been written to CTRL_ENABLE or CTRL_FREQ_RANGE or DORMANT
sourcepub fn set_stable(&mut self, val: bool)
pub fn set_stable(&mut self, val: bool)
Oscillator is running and stable
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
)