pub struct MonoTimer64<TIM, const FREQ: u32> { /* private fields */ }
Expand description
Extended TIM15/16 (16-bits) to 64 bits
Methods from Deref<Target = FTimer<TIM, FREQ>>§
pub fn set_master_mode(&mut self, mode: TIM::Mms)
Trait Implementations§
Source§impl<TIM, const FREQ: u32> Deref for MonoTimer64<TIM, FREQ>
impl<TIM, const FREQ: u32> Deref for MonoTimer64<TIM, FREQ>
Source§impl<TIM, const FREQ: u32> DerefMut for MonoTimer64<TIM, FREQ>
impl<TIM, const FREQ: u32> DerefMut for MonoTimer64<TIM, FREQ>
Source§impl<TIM, const FREQ: u32> Monotonic for MonoTimer64<TIM, FREQ>
Use Compare channel 1 for Monotonic
impl<TIM, const FREQ: u32> Monotonic for MonoTimer64<TIM, FREQ>
Use Compare channel 1 for Monotonic
Source§const DISABLE_INTERRUPT_ON_EMPTY_QUEUE: bool = false
const DISABLE_INTERRUPT_ON_EMPTY_QUEUE: bool = false
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no
scheduled tasks. One may want to set this to
false
if one is using the on_interrupt
method to perform housekeeping and need overflow interrupts to happen, such as when
extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks.Source§type Instant = Instant<u64, 1, FREQ>
type Instant = Instant<u64, 1, FREQ>
The type for instant, defining an instant in time. Read more
Source§type Duration = Duration<u64, 1, FREQ>
type Duration = Duration<u64, 1, FREQ>
The type for duration, defining an duration of time. Read more
Source§fn zero() -> Self::Instant
fn zero() -> Self::Instant
The time at time zero. Used by RTIC before the monotonic has been initialized.
Source§unsafe fn reset(&mut self)
unsafe fn reset(&mut self)
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Source§fn set_compare(&mut self, instant: Self::Instant)
fn set_compare(&mut self, instant: Self::Instant)
Set the compare value of the timer interrupt. Read more
Source§fn clear_compare_flag(&mut self)
fn clear_compare_flag(&mut self)
Clear the compare interrupt flag.
Source§fn on_interrupt(&mut self)
fn on_interrupt(&mut self)
Optional. Commonly used for performing housekeeping of a timer when it has been extended,
e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt
handler after all other operations have finished.
Source§fn enable_timer(&mut self)
fn enable_timer(&mut self)
Optional. This is used to save power, this is called when the Monotonic interrupt is
enabled.
Source§fn disable_timer(&mut self)
fn disable_timer(&mut self)
Optional. This is used to save power, this is called when the Monotonic interrupt is
disabled.
Auto Trait Implementations§
impl<TIM, const FREQ: u32> Freeze for MonoTimer64<TIM, FREQ>where
TIM: Freeze,
impl<TIM, const FREQ: u32> RefUnwindSafe for MonoTimer64<TIM, FREQ>where
TIM: RefUnwindSafe,
impl<TIM, const FREQ: u32> Send for MonoTimer64<TIM, FREQ>where
TIM: Send,
impl<TIM, const FREQ: u32> Sync for MonoTimer64<TIM, FREQ>where
TIM: Sync,
impl<TIM, const FREQ: u32> Unpin for MonoTimer64<TIM, FREQ>where
TIM: Unpin,
impl<TIM, const FREQ: u32> UnwindSafe for MonoTimer64<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