pub type TimerCounter1 = TimerCounter<Tc1>;
Aliased Type§
struct TimerCounter1 { /* private fields */ }
Implementations
Source§impl<T> TimerCounter<T>where
T: AsyncCount16,
impl<T> TimerCounter<T>where
T: AsyncCount16,
Sourcepub fn into_future<I>(self, _irq: I) -> TimerFuture<T>
pub fn into_future<I>(self, _irq: I) -> TimerFuture<T>
Transform a TimerCounter
into an TimerFuture
Source§impl TimerCounter<Tc1>
impl TimerCounter<Tc1>
Sourcepub fn tc1_(clock: &Tc1Tc2Clock, tc: Tc1, pm: &mut Pm) -> Self
pub fn tc1_(clock: &Tc1Tc2Clock, tc: Tc1, pm: &mut Pm) -> Self
Configure this timer counter instance.
The clock is obtained from the GenericClockController
instance
and its frequency impacts the resolution and maximum range of
the timeout values that can be passed to the start
method.
Note that some hardware timer instances share the same clock
generator instance and thus will be clocked at the same rate.
Trait Implementations
Source§impl<TC> DelayNs for TimerCounter<TC>where
TC: Count16,
impl<TC> DelayNs for TimerCounter<TC>where
TC: Count16,
Source§fn delay_ns(&mut self, ns: u32)
fn delay_ns(&mut self, ns: u32)
ns
nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Source§impl<TC> InterruptDrivenTimer for TimerCounter<TC>where
TC: Count16,
impl<TC> InterruptDrivenTimer for TimerCounter<TC>where
TC: Count16,
Source§fn enable_interrupt(&mut self)
fn enable_interrupt(&mut self)
Enable the interrupt generation for this hardware timer. This method only sets the clock configuration to trigger the interrupt; it does not configure the interrupt controller or define an interrupt handler.
Source§fn disable_interrupt(&mut self)
fn disable_interrupt(&mut self)
Disables interrupt generation for this hardware timer. This method only sets the clock configuration to prevent triggering the interrupt; it does not configure the interrupt controller.