Skip to main content

iso_in_fill

Function iso_in_fill 

Source
pub fn iso_in_fill(ep: usize, f: impl FnOnce(&mut [u8]) -> usize) -> bool
Expand description

Build one packet on isochronous IN endpoint ep in place and queue it: f fills the next free slot (one endpoint buffer; keep to the endpoint’s max packet size) and returns the packet’s length. false: not queued and f not run (ring full, endpoint not enabled or not isochronous). Callable from interrupts.