esp_hal::timer::timg

Type Alias Timer0

Source
pub type Timer0<TG> = TimerX<TG, 0>;
Expand description

Timer 0 in the Timer Group.

Aliased Type§

struct Timer0<TG> { /* private fields */ }

Trait Implementations§

Source§

impl<TG> Events<TG> for Timer0<TG>
where TG: TimerGroupInstance,

Source§

fn on_alarm(&self) -> Event

ETM event triggered on alarm
Source§

impl<TG> Tasks<TG> for Timer0<TG>
where TG: TimerGroupInstance,

Source§

fn cnt_start(&self) -> Task

ETM task to start the counter
Source§

fn alarm_start(&self) -> Task

ETM task to load the counter with the value stored when the last now() was called
Source§

fn cnt_stop(&self) -> Task

ETM task to start the alarm
Source§

fn cnt_reload(&self) -> Task

ETM task to stop the counter
Source§

fn cnt_cap(&self) -> Task

ETM task to reload the counter