Trait esp32c2_hal::timer::Instance
source · pub trait Instance {
Show 16 methods
// Required methods
fn reset_counter(&mut self);
fn set_counter_active(&mut self, state: bool);
fn is_counter_active(&self) -> bool;
fn set_counter_decrementing(&mut self, decrementing: bool);
fn set_auto_reload(&mut self, auto_reload: bool);
fn set_alarm_active(&mut self, state: bool);
fn is_alarm_active(&self) -> bool;
fn load_alarm_value(&mut self, value: u64);
fn listen(&mut self);
fn unlisten(&mut self);
fn clear_interrupt(&mut self);
fn now(&self) -> u64;
fn divider(&self) -> u32;
fn set_divider(&mut self, divider: u16);
fn is_interrupt_set(&self) -> bool;
fn enable_peripheral(&self);
}
Expand description
Timer peripheral instance
Required Methods§
fn reset_counter(&mut self)
fn set_counter_active(&mut self, state: bool)
fn is_counter_active(&self) -> bool
fn set_counter_decrementing(&mut self, decrementing: bool)
fn set_auto_reload(&mut self, auto_reload: bool)
fn set_alarm_active(&mut self, state: bool)
fn is_alarm_active(&self) -> bool
fn load_alarm_value(&mut self, value: u64)
fn listen(&mut self)
fn unlisten(&mut self)
fn clear_interrupt(&mut self)
fn now(&self) -> u64
fn divider(&self) -> u32
fn set_divider(&mut self, divider: u16)
fn is_interrupt_set(&self) -> bool
fn enable_peripheral(&self)
Implementors§
impl<TG> Instance for Timer0<TG>where TG: TimerGroupInstance,
Timer peripheral instance