====== 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: ===
{| class = "fpl"
|-
|//''flags''//
|Variable of ##[[en:osa:ref:description:data types#OST_FLAG|OST_FLAGx]]## (x = 8, 16, 32) type
|-
|//''mask''//
|Bit mask to operate on
|}
=== Returns: ===
{| class = "fpl"
|-
|//''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 ===
* [[en:osa:ref:allservices:OS_Flag_Create|OS_Flag_Create]]
* [[en:osa:ref:allservices:OS_Flag_Init|OS_Flag_Init]]
* [[en:osa:ref:allservices:OS_Flag_Set|OS_Flag_Set]]
* [[en:osa:ref:allservices:OS_Flag_Clear|OS_Flag_Clear]]
* [[en:osa:ref:allservices:OS_Flag_Check_AllOn|OS_Flag_Check_AllOn]]
* [[en:osa:ref:allservices:OS_Flag_Check_On|OS_Flag_Check_On]]
* [[en:osa:ref:allservices:OS_Flag_Check_AllOff|OS_Flag_Check_AllOff]]
* [[en:osa:ref:allservices:OS_Flag_Wait_AllOn|OS_Flag_Wait_AllOn]]
* [[en:osa:ref:allservices:OS_Flag_Wait_On|OS_Flag_Wait_On]]
* [[en:osa:ref:allservices:OS_Flag_Wait_AllOff|OS_Flag_Wait_AllOff]]
* [[en:osa:ref:allservices:OS_Flag_Wait_Off|OS_Flag_Wait_Off]]
* [[en:osa:ref:allservices:OS_Flag_Wait_AllOn_TO|OS_Flag_Wait_AllOn_TO]]
* [[en:osa:ref:allservices:OS_Flag_Wait_On_TO|OS_Flag_Wait_On_TO]]
* [[en:osa:ref:allservices:OS_Flag_Wait_AllOff_TO|OS_Flag_Wait_AllOff_TO]]
* [[en:osa:ref:allservices:OS_Flag_Wait_Off_TO|OS_Flag_Wait_Off_TO]]
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~