Skip to main content

iso_in_set_paced

Function iso_in_set_paced 

Source
pub fn iso_in_set_paced(ep: usize, paced: bool)
Expand description

Pace isochronous IN endpoint ep (polled every microframe) from outside: the interrupt no longer moves it on after an IN; iso_in_advance, called once in each microframe after the host’s IN to it and well before the next, does.

The USBHS keeps one status for all endpoints, and an iso IN raises its flag a little before the SIE is free, so the interrupt mostly can’t tell such an IN went out until the next SOF – and a host polls an iso IN early in the microframe (~3 us after the SOF on Linux), so loading the next packet there races it: now and then the loaded packet goes out again. A timer some way into the microframe has tens of us on either side.