pub struct SysDelay(_);
Expand description
Timer as a delay provider (SysTick by default)
Implementations
sourceimpl SysDelay
impl SysDelay
pub fn delay(&mut self, us: MicrosDurationU32)
Methods from Deref<Target = Timer<SYST>>
pub fn configure(&mut self, clocks: &Clocks)
pub fn configure_external(&mut self, clocks: &Clocks)
pub fn configure(&mut self, clocks: &Clocks)
sourcepub fn listen(&mut self, event: Event)
pub fn listen(&mut self, event: Event)
Starts listening for an event
Note, you will also have to enable the TIM2 interrupt in the NVIC to start receiving events.
sourcepub fn clear_interrupt(&mut self, event: Event)
pub fn clear_interrupt(&mut self, event: Event)
Clears interrupt associated with event
.
If the interrupt is not cleared, it will immediately retrigger after the ISR has finished.
pub fn set_master_mode(&mut self, mode: TIM::Mms)
Trait Implementations
sourceimpl Delay<1000000> for SysDelay
impl Delay<1000000> for SysDelay
type Error = Infallible
type Error = Infallible
An error that might happen during waiting
sourceimpl DelayUs for SysDelay
impl DelayUs for SysDelay
Auto Trait Implementations
impl RefUnwindSafe for SysDelay
impl Send for SysDelay
impl !Sync for SysDelay
impl Unpin for SysDelay
impl UnwindSafe for SysDelay
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