Struct rp2040_pac2::spi::regs::Sspcpsr[][src]

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

Clock prescale register, SSPCPSR on page 3-8

Implementations

impl Sspcpsr[src]

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

Clock prescale divisor. Must be an even number from 2-254, depending on the frequency of SSPCLK. The least significant bit always returns zero on reads.

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

Clock prescale divisor. Must be an even number from 2-254, depending on the frequency of SSPCLK. The least significant bit always returns zero on reads.

Trait Implementations

impl Clone for Sspcpsr[src]

impl Copy for Sspcpsr[src]

impl Default for Sspcpsr[src]

Auto Trait Implementations

impl Send for Sspcpsr

impl Sync for Sspcpsr

impl Unpin for Sspcpsr

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.