Struct esp32c3_hal::timer::Timer0

source ·
pub struct Timer0<TG> { /* private fields */ }

Trait Implementations§

source§

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

Timer peripheral instance

source§

fn reset_counter(&mut self)

source§

fn set_counter_active(&mut self, state: bool)

source§

fn is_counter_active(&self) -> bool

source§

fn set_counter_decrementing(&mut self, decrementing: bool)

source§

fn set_auto_reload(&mut self, auto_reload: bool)

source§

fn set_alarm_active(&mut self, state: bool)

source§

fn is_alarm_active(&self) -> bool

source§

fn load_alarm_value(&mut self, value: u64)

source§

fn listen(&mut self)

source§

fn unlisten(&mut self)

source§

fn clear_interrupt(&mut self)

source§

fn now(&self) -> u64

source§

fn divider(&self) -> u32

source§

fn is_interrupt_set(&self) -> bool

source§

fn set_divider(&mut self, divider: u16)

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.