Struct dwt_systick_monotonic::DwtSystick [−][src]
pub struct DwtSystick<const FREQ: u32> { /* fields omitted */ }
Expand description
DWT and Systick combination implementing embedded_time::Clock
and rtic_monotonic::Monotonic
The frequency of the DWT and SysTick is encoded using the parameter FREQ
.
Implementations
impl<const FREQ: u32> DwtSystick<FREQ>
[src]
impl<const FREQ: u32> DwtSystick<FREQ>
[src]Trait Implementations
impl<const FREQ: u32> Clock for DwtSystick<FREQ>
[src]
impl<const FREQ: u32> Clock for DwtSystick<FREQ>
[src]type T = u32
type T = u32
The type to hold the tick count
const SCALING_FACTOR: Fraction
[src]
const SCALING_FACTOR: Fraction
[src]The duration of one clock tick in seconds, AKA the clock precision.
impl<const FREQ: u32> Monotonic for DwtSystick<FREQ>
[src]
impl<const FREQ: u32> Monotonic for DwtSystick<FREQ>
[src]const DISABLE_INTERRUPT_ON_EMPTY_QUEUE: bool
[src]
const DISABLE_INTERRUPT_ON_EMPTY_QUEUE: bool
[src]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. Read more
unsafe fn reset(&mut self)
[src]
unsafe fn reset(&mut self)
[src]Optionally resets the counter to zero for a fixed baseline in a system. Read more
fn set_compare(&mut self, val: &Instant<Self>)
[src]
fn set_compare(&mut self, val: &Instant<Self>)
[src]Set the compare value of the timer interrupt.
fn clear_compare_flag(&mut self)
[src]
fn clear_compare_flag(&mut self)
[src]Clear the compare interrupt flag.
fn on_interrupt(&mut self)
[src]
fn on_interrupt(&mut self)
[src]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. Read more
fn enable_timer(&mut self)
[src]
fn enable_timer(&mut self)
[src]Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
fn disable_timer(&mut self)
[src]
fn disable_timer(&mut self)
[src]Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more