OS  v7.3.3
Documentation
qEvent_t Struct Reference

The task argument with all the regarding information of the task execution. More...

#include <qtasks.h>

Data Fields

void * TaskData
 Task arguments defined at the time of its creation. (Storage-Pointer)
 
void * EventData
 Associated data of the event. Specific data will reside here according to the event source. This field will have a NULL value when the trigger gets one of this values: byTimeElapsed, byEventFlags and byNoReadyTasks.
 
qTrigger_t Trigger
 This member indicates the event source that triggers the task execution. Possible values are described in the qTrigger_t enum typedef.
 
qBool_t FirstCall
 This field indicates that a task is running for the first time. Can be used for data initialization purposes.
 
qBool_t FirstIteration
 Indicates whether current pass is the first iteration of the task. This flag will be only set when time-elapsed events occurs and the Iteration counter has been parameterized. Asynchronous events never change the task iteration counter, consequently doesn't have effect in this flag.
 
qBool_t LastIteration
 Indicates whether current pass is the last iteration of the task. This flag will be only set when time-elapsed events occurs and the Iteration counter has been parameterized. Asynchronous events never change the task iteration counter, consequently doesn't have effect in this flag.
 
qClock_t StartDelay
 The number of epochs between current system time and point in time when the task was marked as Ready. Can be used to keep track when current task's execution took place relative to when it was scheduled A value of 0 (zero) indicates that task started right on time per schedule.This parameter will be only available on timed tasks. when Trigger == byTimeElapsed.
 

Detailed Description

The task argument with all the regarding information of the task execution.

Note
Should be used only in task-callbacks as the only input argument.
The members of this structure must be read as if it were a pointer.