[][src]Trait embedded_hal::blocking::delay::DelayMs

pub trait DelayMs<UXX> {
    type Error;
    fn try_delay_ms(&mut self, ms: UXX) -> Result<(), Self::Error>;
}

Millisecond delay

UXX denotes the range type of the delay time. UXX can be u8, u16, etc. A single type can implement this trait for different types of UXX.

Associated Types

type Error

Enumeration of DelayMs errors

Loading content...

Required methods

fn try_delay_ms(&mut self, ms: UXX) -> Result<(), Self::Error>

Pauses execution for ms milliseconds

Loading content...

Implementors

Loading content...