mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Merge pull request #2848 from jannic/pio_pull_doc_improvement
Add a comment to the pio rx fifo pull function
This commit is contained in:
commit
a5b006268b
@ -324,6 +324,10 @@ impl<'d, PIO: Instance, const SM: usize> StateMachineRx<'d, PIO, SM> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Pull data from RX FIFO.
|
/// 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.
|
||||||
pub fn pull(&mut self) -> u32 {
|
pub fn pull(&mut self) -> u32 {
|
||||||
PIO::PIO.rxf(SM).read()
|
PIO::PIO.rxf(SM).read()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user