pub struct Delay { /* private fields */ }
Expand description
System timer (SysTick) as a delay provider
Implementations§
Source§impl Delay
impl Delay
Sourcepub fn new(syst: SYST, clocks: &mut GenericClockController) -> Self
pub fn new(syst: SYST, clocks: &mut GenericClockController) -> Self
Configures the system timer (SysTick) as a delay provider
Sourcepub fn new_with_source<S>(syst: SYST, gclk0: S) -> (Self, S::Inc)
pub fn new_with_source<S>(syst: SYST, gclk0: S) -> (Self, S::Inc)
Configures the system timer (SysTick) as a delay provide, compatible with the V2 clocking API
Trait Implementations§
Source§impl DelayNs for Delay
impl DelayNs for Delay
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.Auto Trait Implementations§
impl Freeze for Delay
impl RefUnwindSafe for Delay
impl Send for Delay
impl !Sync for Delay
impl Unpin for Delay
impl UnwindSafe for Delay
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