pub struct StateMachineRx<'d, PIO: Instance, const SM: usize> { /* private fields */ }Expand description
Type representing a state machine RX FIFO.
Implementations§
Source§impl<'d, PIO: Instance, const SM: usize> StateMachineRx<'d, PIO, SM>
impl<'d, PIO: Instance, const SM: usize> StateMachineRx<'d, PIO, SM>
Sourcepub fn underflowed(&self) -> bool
pub fn underflowed(&self) -> bool
Check if RX FIFO underflow (i.e. read-on-empty by the system) has occurred.
Sourcepub fn pull(&mut self) -> u32
pub fn pull(&mut self) -> u32
Pull data from RX FIFO.
This function doesn’t check if there is data available to be read.
If the rx FIFO is empty, an undefined value is returned. If you only
want to pull if data is available, use try_pull instead.
Sourcepub fn wait_pull<'a>(&'a mut self) -> FifoInFuture<'a, 'd, PIO, SM> ⓘ
pub fn wait_pull<'a>(&'a mut self) -> FifoInFuture<'a, 'd, PIO, SM> ⓘ
Wait for RX FIFO readable.
Sourcepub fn dreq(&self) -> TreqSel
pub fn dreq(&self) -> TreqSel
Get the Data Request value for the RX FIFO.
This value can be used to configure DMA channel pacing.
Sourcepub fn fifo_address(&self) -> *mut u32
pub fn fifo_address(&self) -> *mut u32
Auto Trait Implementations§
impl<'d, PIO, const SM: usize> !UnwindSafe for StateMachineRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> Freeze for StateMachineRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> RefUnwindSafe for StateMachineRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> Send for StateMachineRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> Sync for StateMachineRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> Unpin for StateMachineRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> UnsafeUnpin for StateMachineRx<'d, PIO, SM>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more