rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
Event data for cyclic tasks. More...
#include <weUtil.h>
Data Fields | |
uint8_t | cnt10inSec |
0..9; counts 100ms events in the second | |
uint64_t | cnt1ms |
A ms counter for cycles and tasks. More... | |
uint8_t | cnt210sec |
0..209 s counter (to provide n s periods) | |
timespec | cycStart |
monotonic start time of the cycle | |
int | cycStartMillis |
millisecond (0..999) missing in struct tm | |
struct tm | cycStartRTm |
The broken down calculated local start time. More... | |
int | hourOffs |
actual time zone offset in hours (incl. DST +: east) | |
uint8_t | msTo100Cnt |
0..99; at 0 we will have a 100ms event | |
uint32_t | realSec |
The real time epoch seconds. More... | |
char | rTmTxt [34] |
local time as text | |
Event data for cyclic tasks.
This structure holds data — mainly time and date by diverse clocks and cycle counters — to be used by cyclic tasks. It will be provided as as cycTask_t.cycTaskEventData.
uint32_t realSec |
The real time epoch seconds.
The value may jump with coarse NTP corrections. And it will be not precise and or jump with leap seconds, which can't be handled in UTC.
struct tm cycStartRTm |
The broken down calculated local start time.
This is the cycle start / event local time.
It is kept updated by the cyclist (when having been started; see theCyclistStart).
uint64_t cnt1ms |
A ms counter for cycles and tasks.
This ms counter may be used to time stamp IO values and other events in a unique and sortable manner.
It is 1 in all first cycles (signalled as event) when the cyclist is started without delay. Otherwise the first value is this delay. The value 0 will will correspond to allCycStart.
Usually the lower 32 bits (cast (uint32_t)) should be sufficient. The lower 32 bit will wrap after 49.7 days.
For an absolute stamp in seconds resolution see cycTaskEventData_t.realSec and