[−][src]Struct gd32vf103xx_hal::timer::Timer
Hardware timer
Implementations
impl Timer<TIMER0>
[src]
pub fn timer0<T>(timer: TIMER0, timeout: T, rcu: &mut Rcu) -> 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
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]
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
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]
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
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]
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
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]
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
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]
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
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]
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
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
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<TIMER1>
[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<TIMER2>
[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<TIMER3>
[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<TIMER4>
[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<TIMER5>
[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<TIMER6>
[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<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,
TIM: Send,
impl<TIM> Sync for Timer<TIM> where
TIM: Sync,
TIM: Sync,
impl<TIM> Unpin for Timer<TIM> where
TIM: Unpin,
TIM: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,