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.
Pauses execution for at minimum ns
nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.
Pauses execution for at minimum us
microseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.
Pauses execution for at minimum ms
milliseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.