Struct esp32c2_hal::timer::Timer0
source · pub struct Timer0<TG> { /* private fields */ }
Trait Implementations§
source§impl<TG> Instance for Timer0<TG>where
TG: TimerGroupInstance,
impl<TG> Instance for Timer0<TG>where TG: TimerGroupInstance,
Timer peripheral instance
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 is_interrupt_set(&self) -> bool
fn set_divider(&mut self, divider: u16)
fn enable_peripheral(&self)
Auto Trait Implementations§
impl<TG> RefUnwindSafe for Timer0<TG>where TG: RefUnwindSafe,
impl<TG> Send for Timer0<TG>where TG: Send,
impl<TG> Sync for Timer0<TG>where TG: Sync,
impl<TG> Unpin for Timer0<TG>where TG: Unpin,
impl<TG> UnwindSafe for Timer0<TG>where TG: 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