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
impl DelayNs for CheckedDelay
Source§fn delay_ns(&mut self, ns: u32)
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§impl DelayNs for CheckedDelay
Available on crate feature embedded-hal-async only.
impl DelayNs for CheckedDelay
Available on crate feature
embedded-hal-async only.Source§async fn delay_ns(&mut self, ns: u32)
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.