Type Alias CheckedDelay

Source
pub type CheckedDelay = Generic<Transaction>;
Available on crate feature eh1 only.
Expand description

Mock Delay implementation with checked calls

This supports the specification and checking of expectations to allow automated testing of delay based drivers. Mismatches between expected and real delay transactions will cause runtime assertions to assist with locating faults.

See the usage section in the module level docs for an example.

Aliased Type§

pub struct CheckedDelay { /* private fields */ }

Trait Implementations§

Source§

impl DelayNs for CheckedDelay

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.
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.
Source§

impl DelayNs for CheckedDelay

Available on crate feature embedded-hal-async only.
Source§

async 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.
Source§

async 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§

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