Struct rp2040_pac2::xosc::Xosc[][src]

pub struct Xosc(pub *mut u8);

Controls the crystal oscillator

Implementations

impl Xosc[src]

pub fn ctrl(self) -> Reg<Ctrl, RW>[src]

Crystal Oscillator Control

pub fn status(self) -> Reg<Status, RW>[src]

Crystal Oscillator Status

pub fn dormant(self) -> Reg<u32, RW>[src]

Crystal Oscillator pause control This is used to save power by pausing the XOSC On power-up this field is initialised to WAKE An invalid write will also select WAKE WARNING: stop the PLLs before selecting dormant mode WARNING: setup the irq before selecting dormant mode

pub fn startup(self) -> Reg<Startup, RW>[src]

Controls the startup delay

pub fn count(self) -> Reg<Count, RW>[src]

A down counter running at the xosc frequency which counts to zero and stops. To start the counter write a non-zero value. Can be used for short software pauses when setting up time sensitive hardware.

Trait Implementations

impl Clone for Xosc[src]

impl Copy for Xosc[src]

impl Send for Xosc[src]

impl Sync for Xosc[src]

Auto Trait Implementations

impl Unpin for Xosc

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.