Struct freertos_rs::Timer
[−]
[src]
pub struct Timer { /* fields omitted */ }
A FreeRTOS software timer.
Note that all operations on a timer are processed by a FreeRTOS internal task that receives messages in a queue. Every operation has an associated waiting time for that queue to get unblocked.
Methods
impl Timer
[src]
fn new<D: DurationTicks>(period: D) -> TimerBuilder<D>
[src]
Create a new timer builder.
fn start<D: DurationTicks>(&self, block_time: D) -> Result<(), FreeRtosError>
[src]
Start the timer.
fn stop<D: DurationTicks>(&self, block_time: D) -> Result<(), FreeRtosError>
[src]
Stop the timer.
fn change_period<D: DurationTicks>(
&self,
block_time: D,
new_period: D
) -> Result<(), FreeRtosError>
[src]
&self,
block_time: D,
new_period: D
) -> Result<(), FreeRtosError>
Change the period of the timer.
unsafe fn detach(self)
[src]
Detach this timer from Rust's memory management. The timer will still be active and will consume the memory.
Can be used for timers that will never be changed and don't need to stay in scope.