OS
v7.3.3
Documentation
|
API interface for the built-in-task Event Flags. More...
Functions | |
qBool_t | qTask_EventFlags_Modify (qTask_t *const Task, const qTask_Flag_t flags, const qBool_t action) |
Modify the EventFlags for the provided task. | |
qTask_Flag_t | qTask_EventFlags_Read (const qTask_t *const Task) |
Returns the current value of the task's EventFlags. | |
qBool_t | qTask_EventFlags_Check (qTask_t *const Task, qTask_Flag_t flagsToCheck, const qBool_t clearOnExit, const qBool_t checkForAll) |
Check for flags set to qTrue inside the task Event-Flags. | |
API interface for the built-in-task Event Flags.
qBool_t qTask_EventFlags_Check | ( | qTask_t *const | Task, |
qTask_Flag_t | flagsToCheck, | ||
const qBool_t | clearOnExit, | ||
const qBool_t | checkForAll ) |
Check for flags set to qTrue inside the task Event-Flags.
[in] | Task | Pointer to the task node. |
[in] | flagsToCheck | A bitwise value that indicates the flags to test inside the EventFlags. Can be combined with a bitwise OR. QEVENTFLAG_01 | QEVENTFLAG_02 | ... | QEVENTFLAG_20 |
[in] | clearOnExit | If is set to qTrue then any flags set in the value passed as the FlagsToCheck parameter will be cleared in the event group before this function returns only when the condition is meet. |
[in] | checkForAll | Used to create either a logical AND test (where all flags must be set) or a logical OR test (where one or more flags must be set) as follows: |
If is set to qTrue, this API will return qTrue when either all the flags set in the value passed as the flagsToCheck parameter are set in the task's EventFlags.
If is set to qFalse, this API will return qTrue when any of the flags set in the value passed as the flagsToCheck parameter are set in the task's EventFlags.
qBool_t qTask_EventFlags_Modify | ( | qTask_t *const | Task, |
const qTask_Flag_t | flags, | ||
const qBool_t | action ) |
Modify the EventFlags for the provided task.
[in] | Task | Pointer to the task node. |
[in] | flags | The flags to modify. Can be combined with a bitwise OR. QEVENTFLAG_01 | QEVENTFLAG_02 | ... | QEVENTFLAG_20 |
[in] | action | QEVENTFLAG_SET or QEVENTFLAG_CLEAR |
qTask_Flag_t qTask_EventFlags_Read | ( | const qTask_t *const | Task | ) |
Returns the current value of the task's EventFlags.
Task | Pointer to the task node. |