pub trait DelayUs {
    // Required method
    fn delay_us(&mut self, us: u32);

    // Provided method
    fn delay_ms(&mut self, ms: u32) { ... }
}
Expand description

Microsecond delay

Required Methods§

source

fn delay_us(&mut self, us: u32)

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

Provided Methods§

source

fn delay_ms(&mut self, ms: u32)

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§

source§

impl<T> DelayUs for &mut Twhere T: DelayUs + ?Sized,

source§

fn delay_us(&mut self, us: u32)

source§

fn delay_ms(&mut self, ms: u32)

Implementors§