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,
impl<'d, T, DM> TimerGroup<'d, T, DM>where
T: TimerGroupInstance,
DM: Mode,
Sourcepub fn new_inner(_timer_group: impl Peripheral<P = T> + 'd) -> Self
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,
impl<'d, T> TimerGroup<'d, T, Blocking>where
T: TimerGroupInstance,
Sourcepub fn new(_timer_group: impl Peripheral<P = T> + 'd) -> Self
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,
impl<'d, T> TimerGroup<'d, T, Async>where
T: TimerGroupInstance,
Sourcepub fn new_async(_timer_group: impl Peripheral<P = T> + 'd) -> Self
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>where
T: RefUnwindSafe,
DM: RefUnwindSafe,
impl<'d, T, DM> Send for TimerGroup<'d, T, DM>
impl<'d, T, DM> Sync for TimerGroup<'d, T, DM>
impl<'d, T, DM> Unpin for TimerGroup<'d, T, DM>
impl<'d, T, DM> !UnwindSafe for TimerGroup<'d, T, DM>
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