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

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

Status register, SSPSR on page 3-7

Implementations

impl Sspsr[src]

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

PrimeCell SSP busy flag, RO: 0 SSP is idle. 1 SSP is currently transmitting and/or receiving a frame or the transmit FIFO is not empty.

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

PrimeCell SSP busy flag, RO: 0 SSP is idle. 1 SSP is currently transmitting and/or receiving a frame or the transmit FIFO is not empty.

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

Receive FIFO full, RO: 0 Receive FIFO is not full. 1 Receive FIFO is full.

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

Receive FIFO full, RO: 0 Receive FIFO is not full. 1 Receive FIFO is full.

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

Receive FIFO not empty, RO: 0 Receive FIFO is empty. 1 Receive FIFO is not empty.

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

Receive FIFO not empty, RO: 0 Receive FIFO is empty. 1 Receive FIFO is not empty.

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

Transmit FIFO not full, RO: 0 Transmit FIFO is full. 1 Transmit FIFO is not full.

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

Transmit FIFO not full, RO: 0 Transmit FIFO is full. 1 Transmit FIFO is not full.

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

Transmit FIFO empty, RO: 0 Transmit FIFO is not empty. 1 Transmit FIFO is empty.

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

Transmit FIFO empty, RO: 0 Transmit FIFO is not empty. 1 Transmit FIFO is empty.

Trait Implementations

impl Clone for Sspsr[src]

impl Copy for Sspsr[src]

impl Default for Sspsr[src]

Auto Trait Implementations

impl Send for Sspsr

impl Sync for Sspsr

impl Unpin for Sspsr

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.