Skip to main content

iso_out_take

Function iso_out_take 

Source
pub fn iso_out_take<R>(ep: usize, f: impl FnOnce(&[u8]) -> R) -> Option<R>
Expand description

Take the oldest packet waiting on isochronous OUT endpoint ep, in place: f reads it, then its slot goes back to the ring. None: no packet waiting (or not an isochronous OUT endpoint). One reader per endpoint; callable from interrupts.