pub struct SleepingDelay<TIM> { /* private fields */ }Expand description
Delay and sleep while we do (WFI) using a timer
Implementations§
Source§impl<TIM> SleepingDelay<TIM>where
    TIM: InterruptDrivenTimer,
 
impl<TIM> SleepingDelay<TIM>where
    TIM: InterruptDrivenTimer,
Sourcepub fn new(
    timer: TIM,
    interrupt_fired: &'static AtomicBool,
) -> SleepingDelay<TIM>where
    TIM: InterruptDrivenTimer,
 
pub fn new(
    timer: TIM,
    interrupt_fired: &'static AtomicBool,
) -> SleepingDelay<TIM>where
    TIM: InterruptDrivenTimer,
Initializes a new SleepingDelay struct
Trait Implementations§
Source§impl<TIM: InterruptDrivenTimer> DelayNs for SleepingDelay<TIM>
 
impl<TIM: InterruptDrivenTimer> DelayNs for SleepingDelay<TIM>
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<TIM, TYPE> DelayMs<TYPE> for SleepingDelay<TIM>
 
impl<TIM, TYPE> DelayMs<TYPE> for SleepingDelay<TIM>
Source§impl<TIM, TYPE> DelayUs<TYPE> for SleepingDelay<TIM>
 
impl<TIM, TYPE> DelayUs<TYPE> for SleepingDelay<TIM>
Auto Trait Implementations§
impl<TIM> Freeze for SleepingDelay<TIM>where
    TIM: Freeze,
impl<TIM> RefUnwindSafe for SleepingDelay<TIM>where
    TIM: RefUnwindSafe,
impl<TIM> Send for SleepingDelay<TIM>where
    TIM: Send,
impl<TIM> Sync for SleepingDelay<TIM>where
    TIM: Sync,
impl<TIM> Unpin for SleepingDelay<TIM>where
    TIM: Unpin,
impl<TIM> UnwindSafe for SleepingDelay<TIM>where
    TIM: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more