Trait lora_phy::DelayUs

source ·
pub trait DelayUs {
    // Required methods
    async fn delay_us(&mut self, us: u32) -> impl Future<Output = ()>;
    async fn delay_ms(&mut self, ms: u32) -> impl Future<Output = ()>;
}
Expand description

Microsecond delay

Required Methods§

source

async fn delay_us(&mut self, us: u32) -> impl Future<Output = ()>

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) -> impl Future<Output = ()>

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

source§

async fn delay_us(&mut self, us: u32) -> impl Future<Output = ()>

source§

async fn delay_ms(&mut self, ms: u32) -> impl Future<Output = ()>

Implementors§