Struct rp2040_pac2::xosc::regs::Status[][src]

#[repr(transparent)]pub struct Status(pub u32);

Crystal Oscillator Status

Implementations

impl Status[src]

pub const fn stable(&self) -> bool[src]

Oscillator is running and stable

pub fn set_stable(&mut self, val: bool)[src]

Oscillator is running and stable

pub const fn badwrite(&self) -> bool[src]

An invalid value has been written to CTRL_ENABLE or CTRL_FREQ_RANGE or DORMANT

pub fn set_badwrite(&mut self, val: bool)[src]

An invalid value has been written to CTRL_ENABLE or CTRL_FREQ_RANGE or DORMANT

pub const fn enabled(&self) -> bool[src]

Oscillator is enabled but not necessarily running and stable, resets to 0

pub fn set_enabled(&mut self, val: bool)[src]

Oscillator is enabled but not necessarily running and stable, resets to 0

pub const fn freq_range(&self) -> StatusFreqRange[src]

The current frequency range setting, always reads 0

pub fn set_freq_range(&mut self, val: StatusFreqRange)[src]

The current frequency range setting, always reads 0

Trait Implementations

impl Clone for Status[src]

impl Copy for Status[src]

impl Default for Status[src]

Auto Trait Implementations

impl Send for Status

impl Sync for Status

impl Unpin for Status

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.