bool OS_Flag_Check_AllOff (flags, mask)
bool OS_Flag_Check_AllOff_I (flags, mask)
Check if all mask bits in flags are cleared.
Everywhere
flags |
Variable of OST_FLAGx (x = 8, 16, 32) type |
mask |
Bit mask to operate on |
false |
flags & mask != 0 |
true |
flags & mask == 0 |
OST_FLAG flag; void Task (void) { for (;;) { /*...*/ OS_Flag_Check_AllOff (flag, 3); // check bits 0 and 1 are cleared /*...*/ } }
OS_CheckAllFlagClear
OS_Flag_Check_AllOff