Embassy
rp-pac

Crates

git

Versions

default

Flavors

Struct rp_pac::sio::regs::FifoSt

source ·
#[repr(transparent)]
pub struct FifoSt(pub u32);
Expand description

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.

Tuple Fields§

§0: u32

Implementations§

source§

impl FifoSt

source

pub const fn vld(&self) -> bool

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

source

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

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

source

pub const fn rdy(&self) -> bool

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

source

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

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

source

pub const fn wof(&self) -> bool

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

source

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

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

source

pub const fn roe(&self) -> bool

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

source

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

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

Trait Implementations§

source§

impl Clone for FifoSt

source§

fn clone(&self) -> FifoSt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for FifoSt

source§

fn default() -> FifoSt

Returns the “default value” for a type. Read more
source§

impl PartialEq<FifoSt> for FifoSt

source§

fn eq(&self, other: &FifoSt) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for FifoSt

source§

impl Eq for FifoSt

source§

impl StructuralEq for FifoSt

source§

impl StructuralPartialEq for FifoSt

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.