pub trait DelayUs {
    type Error: Debug;

    fn delay_us(&mut self, us: u32) -> Result<(), Self::Error>;

    fn delay_ms(&mut self, ms: u32) -> Result<(), Self::Error> { ... }
}
Expand description

Microsecond delay

Required Associated Types§

Enumeration of DelayUs errors

Required Methods§

Pauses execution for at minimum us microseconds. Pause can be longer if the implementation requires it due to precision/timing issues.

Provided Methods§

Pauses execution for at minimum ms milliseconds. Pause can be longer if the implementation requires it due to precision/timing issues.

Implementations on Foreign Types§

Implementors§