Struct freertos_rs::TaskDelayPeriodic [] [src]

pub struct TaskDelayPeriodic { /* fields omitted */ }

Periodic delay timer.

Use inside a polling loop, for example: the loop polls this instance every second. The method should_run will return true once 30 seconds or more has elapsed and it will then reset the timer for that period.


impl TaskDelayPeriodic

Create a new timer with the set period.

Has the set period passed? If it has, resets the internal timer.

Set a new delay period

Reset the internal timer to zero.