[−][src]Struct stm32f103xx_hal::timer::Timer
Methods
impl Timer<SYST>[src]
pub fn syst<T>(syst: SYST, timeout: T, clocks: Clocks) -> Self where
T: Into<Hertz>, [src]
T: Into<Hertz>,
pub fn listen(&mut self, event: Event)[src]
Starts listening for an event
You have to call wait() from your event handler to clear the interrupt flag (UIF),
otherwise the interrupt handler will execute continuously.
pub fn unlisten(&mut self, event: Event)[src]
Stops listening for an event
impl Timer<TIM1>[src]
pub fn tim1<T>(tim: TIM1, timeout: T, clocks: Clocks, apb1: &mut APB2) -> Self where
T: Into<Hertz>, [src]
T: Into<Hertz>,
pub fn listen(&mut self, event: Event)[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)[src]
Stops listening for an event
impl Timer<TIM2>[src]
pub fn tim2<T>(tim: TIM2, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
T: Into<Hertz>, [src]
T: Into<Hertz>,
pub fn listen(&mut self, event: Event)[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)[src]
Stops listening for an event
impl Timer<TIM3>[src]
pub fn tim3<T>(tim: TIM3, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
T: Into<Hertz>, [src]
T: Into<Hertz>,
pub fn listen(&mut self, event: Event)[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)[src]
Stops listening for an event
impl Timer<TIM4>[src]
pub fn tim4<T>(tim: TIM4, timeout: T, clocks: Clocks, apb1: &mut APB1) -> Self where
T: Into<Hertz>, [src]
T: Into<Hertz>,
pub fn listen(&mut self, event: Event)[src]
Starts listening for an event
pub fn unlisten(&mut self, event: Event)[src]
Stops listening for an event
Trait Implementations
impl CountDown for Timer<SYST>[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>, [src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>[src]
impl CountDown for Timer<TIM1>[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>, [src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>[src]
impl CountDown for Timer<TIM2>[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>, [src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>[src]
impl CountDown for Timer<TIM3>[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>, [src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>[src]
impl CountDown for Timer<TIM4>[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>, [src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Void>[src]
impl Periodic for Timer<SYST>[src]
impl Periodic for Timer<TIM1>[src]
impl Periodic for Timer<TIM2>[src]
impl Periodic for Timer<TIM3>[src]
impl Periodic for Timer<TIM4>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,