Struct rp2040_pac2::rosc::regs::Freqa[][src]

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

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

Implementations

impl Freqa[src]

pub const fn passwd(&self) -> Passwd[src]

Set to 0x9696 to apply the settings Any other value in this field will set all drive strengths to 0

pub fn set_passwd(&mut self, val: Passwd)[src]

Set to 0x9696 to apply the settings Any other value in this field will set all drive strengths to 0

pub const fn ds3(&self) -> u8[src]

Stage 3 drive strength

pub fn set_ds3(&mut self, val: u8)[src]

Stage 3 drive strength

pub const fn ds2(&self) -> u8[src]

Stage 2 drive strength

pub fn set_ds2(&mut self, val: u8)[src]

Stage 2 drive strength

pub const fn ds1(&self) -> u8[src]

Stage 1 drive strength

pub fn set_ds1(&mut self, val: u8)[src]

Stage 1 drive strength

pub const fn ds0(&self) -> u8[src]

Stage 0 drive strength

pub fn set_ds0(&mut self, val: u8)[src]

Stage 0 drive strength

Trait Implementations

impl Clone for Freqa[src]

impl Copy for Freqa[src]

impl Default for Freqa[src]

Auto Trait Implementations

impl Send for Freqa

impl Sync for Freqa

impl Unpin for Freqa

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.