embedded_hal::delay

Trait DelayNs

Source
pub trait DelayNs {
    // Required method
    fn delay_ns(&mut self, ns: u32);

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

Delay with up to nanosecond precision.

Required Methods§

Source

fn delay_ns(&mut self, ns: u32)

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

Provided 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.

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> DelayNs for &mut T
where T: DelayNs + ?Sized,

Source§

fn delay_ns(&mut self, ns: u32)

Source§

fn delay_us(&mut self, us: u32)

Source§

fn delay_ms(&mut self, ms: u32)

Implementors§