esp_hal::timer::timg

Struct TimerGroup

Source
pub struct TimerGroup<'d, T, DM>
where T: TimerGroupInstance, DM: Mode,
{ pub timer0: Timer<Timer0<T>, DM>, pub wdt: Wdt<T>, /* private fields */ }
Expand description

A timer group consisting of a general purpose timer and a watchdog timer.

Fields§

§timer0: Timer<Timer0<T>, DM>

Timer 0

§wdt: Wdt<T>

Watchdog timer

Implementations§

Source§

impl<'d, T, DM> TimerGroup<'d, T, DM>
where T: TimerGroupInstance, DM: Mode,

Source

pub fn new_inner(_timer_group: impl Peripheral<P = T> + 'd) -> Self

Construct a new instance of TimerGroup in blocking mode

Source§

impl<'d, T> TimerGroup<'d, T, Blocking>
where T: TimerGroupInstance,

Source

pub fn new(_timer_group: impl Peripheral<P = T> + 'd) -> Self

Construct a new instance of TimerGroup in blocking mode

Source§

impl<'d, T> TimerGroup<'d, T, Async>
where T: TimerGroupInstance,

Source

pub fn new_async(_timer_group: impl Peripheral<P = T> + 'd) -> Self

Construct a new instance of TimerGroup in asynchronous mode

Auto Trait Implementations§

§

impl<'d, T, DM> Freeze for TimerGroup<'d, T, DM>
where T: Freeze,

§

impl<'d, T, DM> RefUnwindSafe for TimerGroup<'d, T, DM>

§

impl<'d, T, DM> Send for TimerGroup<'d, T, DM>
where T: Send, DM: Send,

§

impl<'d, T, DM> Sync for TimerGroup<'d, T, DM>
where T: Sync, DM: Sync,

§

impl<'d, T, DM> Unpin for TimerGroup<'d, T, DM>
where T: Unpin, DM: Unpin,

§

impl<'d, T, DM> !UnwindSafe for TimerGroup<'d, T, DM>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.