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

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

Controls the output divider

Implementations

impl Div[src]

pub const fn div(&self) -> Div[src]

set to 0xaa0 + div where div = 0 divides by 32 div = 1-31 divides by div any other value sets div=0 and therefore divides by 32 this register resets to div=16

pub fn set_div(&mut self, val: Div)[src]

set to 0xaa0 + div where div = 0 divides by 32 div = 1-31 divides by div any other value sets div=0 and therefore divides by 32 this register resets to div=16

Trait Implementations

impl Clone for Div[src]

impl Copy for Div[src]

impl Default for Div[src]

Auto Trait Implementations

impl Send for Div

impl Sync for Div

impl Unpin for Div

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.