#include <ticks.hpp>
Class encapsulating FreeRTOS idea of a tick.
Definition at line 53 of file ticks.hpp.
◆ GetTicks()
static TickType_t cpp_freertos::Ticks::GetTicks |
( |
| ) |
|
|
inlinestatic |
Get the current tick count.
- Returns
- Current tick count.
Definition at line 61 of file ticks.hpp.
◆ GetTicksFromISR()
static TickType_t cpp_freertos::Ticks::GetTicksFromISR |
( |
| ) |
|
|
inlinestatic |
Get the current tick count from ISR context.
- Returns
- Current tick count.
Definition at line 71 of file ticks.hpp.
◆ MsToTicks()
static TickType_t cpp_freertos::Ticks::MsToTicks |
( |
TickType_t |
milliseconds | ) |
|
|
inlinestatic |
Convert from ms to ticks.
- Parameters
-
milliseconds | milliseconds to convert. |
- Returns
- ticks
Definition at line 93 of file ticks.hpp.
◆ SecondsToTicks()
static TickType_t cpp_freertos::Ticks::SecondsToTicks |
( |
TickType_t |
seconds | ) |
|
|
inlinestatic |
Convert from seconds to ticks.
- Parameters
-
seconds | seconds to convert. |
- Returns
- ticks
Definition at line 104 of file ticks.hpp.
◆ TicksToMs()
static TickType_t cpp_freertos::Ticks::TicksToMs |
( |
TickType_t |
ticks | ) |
|
|
inlinestatic |
Convert from ticks to ms.
- Parameters
-
- Returns
- milliseconds.
Definition at line 82 of file ticks.hpp.
The documentation for this class was generated from the following file: