#[repr(transparent)]pub struct Status(pub u32);
Expand description
Ring Oscillator Status
Tuple Fields§
§0: u32
Implementations§
source§impl Status
impl Status
sourcepub const fn enabled(&self) -> bool
pub const fn enabled(&self) -> bool
Oscillator is enabled but not necessarily running and stable this resets to 0 but transitions to 1 during chip startup
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 this resets to 0 but transitions to 1 during chip startup
sourcepub const fn div_running(&self) -> bool
pub const fn div_running(&self) -> bool
post-divider is running this resets to 0 but transitions to 1 during chip startup
sourcepub fn set_div_running(&mut self, val: bool)
pub fn set_div_running(&mut self, val: bool)
post-divider is running this resets to 0 but transitions to 1 during chip startup
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 FREQA or FREQB or DIV or PHASE 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 FREQA or FREQB or DIV or PHASE 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
)