pub struct DwtTimer<const TIMER_HZ: u32> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<const TIMER_HZ: u32> Timer<TIMER_HZ> for DwtTimer<TIMER_HZ>
impl<const TIMER_HZ: u32> Timer<TIMER_HZ> for DwtTimer<TIMER_HZ>
Source§type Error = Infallible
type Error = Infallible
An error that might happen during waiting
Source§fn now(&mut self) -> TimerInstantU32<TIMER_HZ>
fn now(&mut self) -> TimerInstantU32<TIMER_HZ>
Return current time
InstantSource§fn start(
&mut self,
duration: TimerDurationU32<TIMER_HZ>,
) -> Result<(), Self::Error>
fn start( &mut self, duration: TimerDurationU32<TIMER_HZ>, ) -> Result<(), Self::Error>
Start timer with a
durationAuto Trait Implementations§
impl<const TIMER_HZ: u32> Freeze for DwtTimer<TIMER_HZ>
impl<const TIMER_HZ: u32> RefUnwindSafe for DwtTimer<TIMER_HZ>
impl<const TIMER_HZ: u32> Send for DwtTimer<TIMER_HZ>
impl<const TIMER_HZ: u32> Sync for DwtTimer<TIMER_HZ>
impl<const TIMER_HZ: u32> Unpin for DwtTimer<TIMER_HZ>
impl<const TIMER_HZ: u32> UnwindSafe for DwtTimer<TIMER_HZ>
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