Struct rp2040_pac2::rosc::Rosc[][src]

pub struct Rosc(pub *mut u8);

Implementations

impl Rosc[src]

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

Ring Oscillator control

pub fn freqa(self) -> Reg<Freqa, RW>[src]

The FREQA & FREQB registers control the frequency by controlling the drive strength of each stage The drive strength has 4 levels determined by the number of bits set Increasing the number of bits set increases the drive strength and increases the oscillation frequency 0 bits set is the default drive strength 1 bit set doubles the drive strength 2 bits set triples drive strength 3 bits set quadruples drive strength

pub fn freqb(self) -> Reg<Freqb, RW>[src]

For a detailed description see freqa register

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

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

pub fn div(self) -> Reg<Div, RW>[src]

Controls the output divider

pub fn phase(self) -> Reg<Phase, RW>[src]

Controls the phase shifted output

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

Ring Oscillator Status

pub fn randombit(self) -> Reg<Randombit, RW>[src]

This just reads the state of the oscillator output so randomness is compromised if the ring oscillator is stopped or run at a harmonic of the bus frequency

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

A down counter running at the ROSC 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 Rosc[src]

impl Copy for Rosc[src]

impl Send for Rosc[src]

impl Sync for Rosc[src]

Auto Trait Implementations

impl Unpin for Rosc

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.