Struct atsamd_hal::sleeping_delay::SleepingDelay
source · [−]pub struct SleepingDelay<TIM> { /* private fields */ }
Expand description
Delay and sleep while we do (WFI) using a timer
Implementations
sourceimpl<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
sourceimpl<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>,
sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more