pub struct DummyTimer<T>where
T: 'static + DummyTCB,{ /* private fields */ }
Trait Implementations§
source§impl<T> TimerControl for DummyTimer<T>where
T: DummyTCB,
impl<T> TimerControl for DummyTimer<T>where
T: DummyTCB,
source§fn set_interrupt_period(&mut self, period: u16)
fn set_interrupt_period(&mut self, period: u16)
Set the period (number of underlying timer interrupts) that
trigger an interrupt callback (i.e. if 10, every 10 timer events
the callback passed to start() will be called.)
source§fn set_count_max(&mut self, max: u16)
fn set_count_max(&mut self, max: u16)
Set the clock’s counter trigger
source§fn start(&self, handler: TimerIsrCallback)
fn start(&self, handler: TimerIsrCallback)
Start this timer. The given callback will be called periodically
when timer interrupts occur (see the interrupting(period) method.) Read more
source§fn reset_count(&mut self)
fn reset_count(&mut self)
Reset the timer’s current count value
Auto Trait Implementations§
impl<T> Freeze for DummyTimer<T>where
T: Freeze,
impl<T> !RefUnwindSafe for DummyTimer<T>
impl<T> !Send for DummyTimer<T>
impl<T> !Sync for DummyTimer<T>
impl<T> Unpin for DummyTimer<T>where
T: Unpin,
impl<T> !UnwindSafe for DummyTimer<T>
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