[][src]Struct gd32vf103xx_hal::timer::Timer

pub struct Timer<TIM> { /* fields omitted */ }

Hardware timer

Implementations

impl Timer<TIMER0>[src]

pub fn timer0<T>(timer: TIMER0, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER0[src]

Releases the TIMER peripheral

impl Timer<TIMER1>[src]

pub fn timer1<T>(timer: TIMER1, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER1[src]

Releases the TIMER peripheral

impl Timer<TIMER2>[src]

pub fn timer2<T>(timer: TIMER2, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER2[src]

Releases the TIMER peripheral

impl Timer<TIMER3>[src]

pub fn timer3<T>(timer: TIMER3, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER3[src]

Releases the TIMER peripheral

impl Timer<TIMER4>[src]

pub fn timer4<T>(timer: TIMER4, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER4[src]

Releases the TIMER peripheral

impl Timer<TIMER5>[src]

pub fn timer5<T>(timer: TIMER5, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER5[src]

Releases the TIMER peripheral

impl Timer<TIMER6>[src]

pub fn timer6<T>(timer: TIMER6, timeout: T, rcu: &mut Rcu) -> Self where
    T: Into<Hertz>, 
[src]

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

pub fn clear_update_interrupt_flag(&mut self)[src]

Clears Update Interrupt Flag

pub fn free(self) -> TIMER6[src]

Releases the TIMER peripheral

Trait Implementations

impl CountDown for Timer<TIMER0>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIMER1>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIMER2>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIMER3>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIMER4>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIMER5>[src]

type Time = Hertz

The unit of time used by this timer

impl CountDown for Timer<TIMER6>[src]

type Time = Hertz

The unit of time used by this timer

impl Periodic for Timer<TIMER0>[src]

impl Periodic for Timer<TIMER1>[src]

impl Periodic for Timer<TIMER2>[src]

impl Periodic for Timer<TIMER3>[src]

impl Periodic for Timer<TIMER4>[src]

impl Periodic for Timer<TIMER5>[src]

impl Periodic for Timer<TIMER6>[src]

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.