diff --git a/rp2040-hal/src/pio.rs b/rp2040-hal/src/pio.rs index 3901ab7..2153c13 100644 --- a/rp2040-hal/src/pio.rs +++ b/rp2040-hal/src/pio.rs @@ -1138,10 +1138,15 @@ impl Rx { .modify(|_, w| w.autopush().bit(enable)) } - /// Indicate if the tx FIFO is full + /// Indicate if the rx FIFO is empty pub fn is_empty(&self) -> bool { self.register_block().fstat.read().rxempty().bits() & (1 << SM::id()) != 0 } + + /// Indicate if the rx FIFO is full + pub fn is_full(&self) -> bool { + self.register_block().fstat.read().rxfull().bits() & (1 << SM::id()) != 0 + } } /// PIO TX FIFO handle.