Struct rp2040_pac2::sio::regs::FifoSt[][src]

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

Status register for inter-core FIFOs (mailboxes). There is one FIFO in the core 0 -> core 1 direction, and one core 1 -> core 0. Both are 32 bits wide and 8 words deep. Core 0 can see the read side of the 1->0 FIFO (RX), and the write side of 0->1 FIFO (TX). Core 1 can see the read side of the 0->1 FIFO (RX), and the write side of 1->0 FIFO (TX). The SIO IRQ for each core is the logical OR of the VLD, WOF and ROE fields of its FIFO_ST register.

Implementations

impl FifoSt[src]

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

Sticky flag indicating the RX FIFO was read when empty. This read was ignored by the FIFO.

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

Sticky flag indicating the RX FIFO was read when empty. This read was ignored by the FIFO.

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

Sticky flag indicating the TX FIFO was written when full. This write was ignored by the FIFO.

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

Sticky flag indicating the TX FIFO was written when full. This write was ignored by the FIFO.

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

Value is 1 if this core’s TX FIFO is not full (i.e. if FIFO_WR is ready for more data)

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

Value is 1 if this core’s TX FIFO is not full (i.e. if FIFO_WR is ready for more data)

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

Value is 1 if this core’s RX FIFO is not empty (i.e. if FIFO_RD is valid)

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

Value is 1 if this core’s RX FIFO is not empty (i.e. if FIFO_RD is valid)

Trait Implementations

impl Clone for FifoSt[src]

impl Copy for FifoSt[src]

impl Default for FifoSt[src]

Auto Trait Implementations

impl Send for FifoSt

impl Sync for FifoSt

impl Unpin for FifoSt

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.