Struct serpente::sleeping_delay::SleepingDelay
source · 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, TYPE> DelayMs<TYPE> for SleepingDelay<TIM>where
TIM: InterruptDrivenTimer,
TYPE: Into<u32>,
impl<TIM, TYPE> DelayMs<TYPE> for SleepingDelay<TIM>where TIM: InterruptDrivenTimer, TYPE: Into<u32>,
source§impl<TIM, TYPE> DelayUs<TYPE> for SleepingDelay<TIM>where
TIM: InterruptDrivenTimer,
TYPE: Into<u32>,
impl<TIM, TYPE> DelayUs<TYPE> for SleepingDelay<TIM>where TIM: InterruptDrivenTimer, TYPE: Into<u32>,
Auto Trait Implementations§
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