Struct alt_stm32f30x_hal::timer::syst::Timer [−][src]
pub struct Timer { /* fields omitted */ }
System timer
Methods
impl Timer
[src]
impl Timer
pub fn new<T>(syst: SYST, timeout: T, clocks: Clocks) -> Self where
T: Into<Hertz>,
[src]
pub fn new<T>(syst: SYST, timeout: T, clocks: Clocks) -> Self where
T: Into<Hertz>,
System timer
pub fn reset<T: Into<Hertz>>(&mut self, timeout: T)
[src]
pub fn reset<T: Into<Hertz>>(&mut self, timeout: T)
Resets timeout
pub fn listen(&mut self, event: Event)
[src]
pub fn listen(&mut self, event: Event)
Starts listening for an event
pub fn unlisten(&mut self, event: Event)
[src]
pub fn unlisten(&mut self, event: Event)
Stops listening for an event
Trait Implementations
impl CountDown for Timer
[src]
impl CountDown for Timer
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Self::Time>,
[src]
fn start<T>(&mut self, timeout: T) where
T: Into<Self::Time>,
Starts a new count down
fn wait(&mut self) -> Result<(), Void>
[src]
fn wait(&mut self) -> Result<(), Void>
Non-blockingly "waits" until the count down finishes Read more
impl Periodic for Timer
[src]
impl Periodic for Timer