ecu_tlist Struct Reference

ECU: ecu_tlist Struct Reference
ECU
ecu_tlist Struct Reference

Timer linked list that runs all software timers (ecu_timer) added to it. Each list usually holds multiple software timers but maps to a single hardware timer on the user's target device. More...

#include <timer.h>

Collaboration diagram for ecu_tlist:
[legend]

Data Fields

ecu_tick_t current
 Absolute timestamp, in ticks. Incremented with each call to ecu_tlist_service(). Overflow is automatically handled.
 
bool overflowed
 True if ecu_tlist::current overflowed. Flag set back to false once overflow handled. Otherwise always false.
 
struct ecu_dlist timers
 Ordered linked list of timers that are running. Ordered by ecu_timer::expiration.
 
struct ecu_dlist wraparounds
 Ordered linked list of timers that are running, but expire after an ecu_tlist::current overflow. Having a separate list allows ecu_timer::expiration to still be used as the ordering condition.
 

Detailed Description

Timer linked list that runs all software timers (ecu_timer) added to it. Each list usually holds multiple software timers but maps to a single hardware timer on the user's target device.

Warning
PRIVATE. Unless otherwise specified, all members can only be edited via the public API.

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