OSA : OS_Flag_Check_Off

bool OS_Flag_Check_Off (flags, mask)
bool OS_Flag_Check_Off_I (flags, mask)

Check if any mask bits in flags are cleared.

Call allowed:

Everywhere

Parameters:

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

Returns:

false flags & mask == mask
true flags & mask != mask

Example:

OST_FLAG flag;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Flag_Check_Off (flag, 7); // Check if at least one of bits 0, 1 and 2 is cleared
        /*...*/
    }
}

Old style name

OS_CheckAnyFlagClear

OS_Flag_Check_Off

See also