OSA : OS_Flag_Wait_Off

OS_Flag_Wait_Off (flags, mask)

Allowed only in taskSwitches context

Wait for any 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_Off(flag, 0x13); // Wait for one of bits 0, 1, 4 to be cleared
        /*...*/
    }
}

Old style name

OS_WaitAnyFlagClear

OS_Flag_Wait_Off

See also