Struct freertos_rs::TimerBuilder
[−]
[src]
pub struct TimerBuilder<D: DurationTicks> { /* fields omitted */ }
Helper builder for a new software timer.
Methods
impl<D: DurationTicks> TimerBuilder<D>
[src]
fn set_name(&mut self, name: &str) -> &mut Self
[src]
Set the name of the timer.
fn set_period(&mut self, period: D) -> &mut Self
[src]
Set the period of the timer.
fn set_auto_reload(&mut self, auto_reload: bool) -> &mut Self
[src]
Should the timer be automatically reloaded?
fn create<F>(&self, callback: F) -> Result<Timer, FreeRtosError> where
F: Fn(Timer),
F: Send + 'static,
[src]
F: Fn(Timer),
F: Send + 'static,
Try to create the new timer.
Note that the newly created timer must be started.