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

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

SPI control

Implementations

impl SpiCtrlr0[src]

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

SPI Command to send in XIP mode (INST_L = 8-bit) or to append to Address (INST_L = 0-bit)

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

SPI Command to send in XIP mode (INST_L = 8-bit) or to append to Address (INST_L = 0-bit)

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

Read data strobe enable

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

Read data strobe enable

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

Instruction DDR transfer enable

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

Instruction DDR transfer enable

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

SPI DDR transfer enable

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

SPI DDR transfer enable

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

Wait cycles between control frame transmit and data reception (in SCLK cycles)

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

Wait cycles between control frame transmit and data reception (in SCLK cycles)

pub const fn inst_l(&self) -> SpiCtrlr0InstL[src]

Instruction length (0/4/8/16b)

pub fn set_inst_l(&mut self, val: SpiCtrlr0InstL)[src]

Instruction length (0/4/8/16b)

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

Address length (0b-60b in 4b increments)

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

Address length (0b-60b in 4b increments)

pub const fn trans_type(&self) -> SpiCtrlr0TransType[src]

Address and instruction transfer format

pub fn set_trans_type(&mut self, val: SpiCtrlr0TransType)[src]

Address and instruction transfer format

Trait Implementations

impl Clone for SpiCtrlr0[src]

impl Copy for SpiCtrlr0[src]

impl Default for SpiCtrlr0[src]

Auto Trait Implementations

impl Send for SpiCtrlr0

impl Sync for SpiCtrlr0

impl Unpin for SpiCtrlr0

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.