A C++ template library for embedded applications
Designed and maintained by
Aster Consulting Ltd

Timer

Contains definitions common to timers.

etl::timer
mode

Types

type
The type for timer mode.
Defined as bool


Constants

SINGLE_SHOT
The timer expires once and then stops.

REPEATING
The timer is restarted after every timeout.


start

Types

type
The type for timer start mode.
Defined as bool


Constants

IMMEDIATE
Single Shot
The timer is triggered on the next tick. The normal timeout does not occur.
Repeating
The timer is triggered on the next tick and then on subsequent timeouts.
DELAYED
The timer is triggered on the timeout.


id

Types

type
The type for timer identifiers.
Defined as uint_least8_t


Constants

NO_TIMER
The id of an unregistered timer.

timer.h