FreeRTOS Addons
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
cpp_freertos::Ticks Class Reference

#include <ticks.hpp>

Static Public Member Functions

static TickType_t GetTicks ()
 
static TickType_t GetTicksFromISR ()
 
static TickType_t MsToTicks (TickType_t milliseconds)
 
static TickType_t SecondsToTicks (TickType_t seconds)
 
static TickType_t TicksToMs (TickType_t ticks)
 

Detailed Description

Class encapsulating FreeRTOS idea of a tick.

Member Function Documentation

◆ GetTicks()

static TickType_t cpp_freertos::Ticks::GetTicks ( )
inlinestatic

Get the current tick count.

Returns
Current tick count.

◆ GetTicksFromISR()

static TickType_t cpp_freertos::Ticks::GetTicksFromISR ( )
inlinestatic

Get the current tick count from ISR context.

Returns
Current tick count.

◆ MsToTicks()

static TickType_t cpp_freertos::Ticks::MsToTicks ( TickType_t  milliseconds)
inlinestatic

Convert from ms to ticks.

Parameters
millisecondsmilliseconds to convert.
Returns
ticks

◆ SecondsToTicks()

static TickType_t cpp_freertos::Ticks::SecondsToTicks ( TickType_t  seconds)
inlinestatic

Convert from seconds to ticks.

Parameters
secondsseconds to convert.
Returns
ticks

◆ TicksToMs()

static TickType_t cpp_freertos::Ticks::TicksToMs ( TickType_t  ticks)
inlinestatic

Convert from ticks to ms.

Parameters
ticksticks to convert.
Returns
milliseconds.

The documentation for this class was generated from the following file: