Struct rp2040_pac2::rosc::Rosc [−][src]
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]
fn clone(&self) -> Rosc
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Rosc
[src]
impl Send for Rosc
[src]
impl Sync for Rosc
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,