pub struct Timer<TIM> { /* private fields */ }Expand description
Hardware timers
Implementations§
Source§impl Timer<TIMER0>
impl Timer<TIMER0>
Sourcepub fn timer0<T>(
tim: TIMER0,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn timer0<T>( tim: TIMER0, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<TIMER1>
impl Timer<TIMER1>
Sourcepub fn timer1<T>(
tim: TIMER1,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn timer1<T>( tim: TIMER1, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<TIMER2>
impl Timer<TIMER2>
Sourcepub fn timer2<T>(
tim: TIMER2,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn timer2<T>( tim: TIMER2, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<TIMER3>
impl Timer<TIMER3>
Sourcepub fn timer3<T>(
tim: TIMER3,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn timer3<T>( tim: TIMER3, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<TIMER4>
impl Timer<TIMER4>
Sourcepub fn timer4<T>(
tim: TIMER4,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn timer4<T>( tim: TIMER4, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<TIMER5>
impl Timer<TIMER5>
Sourcepub fn timer5<T>(
tim: TIMER5,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn timer5<T>( tim: TIMER5, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<WTIMER0>
impl Timer<WTIMER0>
Sourcepub fn wtimer0<T>(
tim: WTIMER0,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn wtimer0<T>( tim: WTIMER0, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<WTIMER1>
impl Timer<WTIMER1>
Sourcepub fn wtimer1<T>(
tim: WTIMER1,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn wtimer1<T>( tim: WTIMER1, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<WTIMER2>
impl Timer<WTIMER2>
Sourcepub fn wtimer2<T>(
tim: WTIMER2,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn wtimer2<T>( tim: WTIMER2, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<WTIMER3>
impl Timer<WTIMER3>
Sourcepub fn wtimer3<T>(
tim: WTIMER3,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn wtimer3<T>( tim: WTIMER3, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Source§impl Timer<WTIMER4>
impl Timer<WTIMER4>
Sourcepub fn wtimer4<T>(
tim: WTIMER4,
timeout: T,
pc: &PowerControl,
clocks: &Clocks,
) -> Self
pub fn wtimer4<T>( tim: WTIMER4, timeout: T, pc: &PowerControl, clocks: &Clocks, ) -> Self
Configures a TIM peripheral as a periodic count down timer
Trait Implementations§
impl Periodic for Timer<TIMER0>
impl Periodic for Timer<TIMER1>
impl Periodic for Timer<TIMER2>
impl Periodic for Timer<TIMER3>
impl Periodic for Timer<TIMER4>
impl Periodic for Timer<TIMER5>
impl Periodic for Timer<WTIMER0>
impl Periodic for Timer<WTIMER1>
impl Periodic for Timer<WTIMER2>
impl Periodic for Timer<WTIMER3>
impl Periodic for Timer<WTIMER4>
impl Periodic for Timer<WTIMER5>
Auto Trait Implementations§
impl<TIM> Freeze for Timer<TIM>where
TIM: Freeze,
impl<TIM> RefUnwindSafe for Timer<TIM>where
TIM: RefUnwindSafe,
impl<TIM> Send for Timer<TIM>where
TIM: Send,
impl<TIM> Sync for Timer<TIM>where
TIM: Sync,
impl<TIM> Unpin for Timer<TIM>where
TIM: Unpin,
impl<TIM> UnwindSafe for Timer<TIM>where
TIM: 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