[][src]Struct alt_stm32f30x_hal::timer::syst::Timer

pub struct Timer { /* fields omitted */ }

System timer

Methods

impl Timer[src]

pub fn new<T>(syst: SYST, timeout: T, clocks: Clocks) -> Self where
    T: Into<Hertz<u32>>, 
[src]

System timer

pub fn reset<T: Into<Hertz<u32>>>(&mut self, timeout: T)[src]

Resets timeout

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[src]

type Time = Hertz<u32>

The unit of time used by this timer

impl Periodic for Timer[src]

Auto Trait Implementations

impl Unpin for Timer

impl Send for Timer

impl !Sync for Timer

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self