pub struct FTimer<TIM, const FREQ: u32> { /* private fields */ }
Expand description
Timer wrapper for fixed precision timers.
Uses fugit::TimerDurationU32
for most of operations
Implementations§
Source§impl<TIM: Instance + WithPwm + Split, const FREQ: u32> FTimer<TIM, FREQ>
impl<TIM: Instance + WithPwm + Split, const FREQ: u32> FTimer<TIM, FREQ>
pub fn pwm( self, time: TimerDurationU32<FREQ>, ) -> (PwmManager<TIM, FREQ>, TIM::Channels)
Source§impl<TIM, const FREQ: u32> FTimer<TIM, FREQ>where
TIM: Instance + General + WithPwm,
impl<TIM, const FREQ: u32> FTimer<TIM, FREQ>where
TIM: Instance + General + WithPwm,
pub fn monotonic64(self) -> MonoTimer64<TIM, FREQ>
Trait Implementations§
Source§impl<TIM: Instance, const FREQ: u32> Listen for FTimer<TIM, FREQ>
impl<TIM: Instance, const FREQ: u32> Listen for FTimer<TIM, FREQ>
Source§fn listen_only(&mut self, event: impl Into<BitFlags<Event>>)
fn listen_only(&mut self, event: impl Into<BitFlags<Event>>)
Start listening for
Event
s, stop all other Read moreSource§fn listen_all(&mut self)
fn listen_all(&mut self)
Start listening all
Event
sSource§fn unlisten_all(&mut self)
fn unlisten_all(&mut self)
Stop listening all
Event
sAuto Trait Implementations§
impl<TIM, const FREQ: u32> Freeze for FTimer<TIM, FREQ>where
TIM: Freeze,
impl<TIM, const FREQ: u32> RefUnwindSafe for FTimer<TIM, FREQ>where
TIM: RefUnwindSafe,
impl<TIM, const FREQ: u32> Send for FTimer<TIM, FREQ>where
TIM: Send,
impl<TIM, const FREQ: u32> Sync for FTimer<TIM, FREQ>where
TIM: Sync,
impl<TIM, const FREQ: u32> Unpin for FTimer<TIM, FREQ>where
TIM: Unpin,
impl<TIM, const FREQ: u32> UnwindSafe for FTimer<TIM, FREQ>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