deadline_for

Function deadline_for 

Source
pub const fn deadline_for(octets: usize, speed_khz: u16) -> Duration
Expand description

How long a transaction moving octets on a bus clocked at speed_khz may take before it is declared stuck.

Ten times the nominal wire time on top of the floor: generous enough that a peripheral stretching the clock is not mistaken for a stuck bus, and still well under the host’s response timeout.