Struct rp2040_pac2::xip_ssi::regs::Ctrlr0[][src]

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

Control register 0

Implementations

impl Ctrlr0[src]

pub const fn sste(&self) -> bool[src]

Slave select toggle enable

pub fn set_sste(&mut self, val: bool)[src]

Slave select toggle enable

pub const fn spi_frf(&self) -> Ctrlr0SpiFrf[src]

SPI frame format

pub fn set_spi_frf(&mut self, val: Ctrlr0SpiFrf)[src]

SPI frame format

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

Data frame size in 32b transfer mode Value of n -> n+1 clocks per frame.

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

Data frame size in 32b transfer mode Value of n -> n+1 clocks per frame.

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

Control frame size Value of n -> n+1 clocks per frame.

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

Control frame size Value of n -> n+1 clocks per frame.

pub const fn srl(&self) -> bool[src]

Shift register loop (test mode)

pub fn set_srl(&mut self, val: bool)[src]

Shift register loop (test mode)

pub const fn slv_oe(&self) -> bool[src]

Slave output enable

pub fn set_slv_oe(&mut self, val: bool)[src]

Slave output enable

pub const fn tmod(&self) -> Ctrlr0Tmod[src]

Transfer mode

pub fn set_tmod(&mut self, val: Ctrlr0Tmod)[src]

Transfer mode

pub const fn scpol(&self) -> bool[src]

Serial clock polarity

pub fn set_scpol(&mut self, val: bool)[src]

Serial clock polarity

pub const fn scph(&self) -> bool[src]

Serial clock phase

pub fn set_scph(&mut self, val: bool)[src]

Serial clock phase

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

Frame format

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

Frame format

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

Data frame size

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

Data frame size

Trait Implementations

impl Clone for Ctrlr0[src]

impl Copy for Ctrlr0[src]

impl Default for Ctrlr0[src]

Auto Trait Implementations

impl Send for Ctrlr0

impl Sync for Ctrlr0

impl Unpin for Ctrlr0

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.