OSA : OS_Flag_Wait_AllOff

OS_Flag_Wait_AllOff (flags, mask)

Allowed only in taskSwitches context

Wait for all mask bits in flags to be cleared.

Call allowed:

Only in task

Parameters:

flags Variable of OST_FLAGx (x = 8, 16, 32) type
mask Bit mask to operate on

Returns:

nothing

Example:

OST_FLAG flag;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Flag_Wait_AllOff (flag, mask);
        /*...*/
    }
}

Old style name

OS_WaitAllFlagClear

OS_Flag_Wait_AllOff

See also