====== OSA : OS_Smsg_Check ======
**bool OS_Smsg_Check (smsg)**\\
**bool OS_Smsg_Check_I (smsg)**\\
=== ===
Check if simple message //smsg// is present.
=== Call allowed: ===
Everywhere
=== Parameters: ===
{| class = "fpl"
|-
|//''smsg''//
|Simple message descriptor. Variable of ##[[en:osa:ref:description:data_types#OST_SMSG|OST_SMSG]]## type
|}
=== Returns: ===
{| class = "fpl"
|-
|//''false''//
| //smsg// absent (zero)
|-
|//''true''//
| //smsg// present (non-zero)
|}
=== Example: ===
OST_SMSG smsg;
void Task (void)
{
OST_SMSG SM;
for (;;) {
/*...*/
if (OS_Smsg_Check (smsg)) { // If smsg present
OS_Smsg_Accept(smsg, SM); // Accept it and store in SM variable
/*...*/
}
/*...*/
}
}
=== Old style name ===
**OS_CheckSMsg**\\
=== See also ===
* [[en:osa:ref:allservices:OS_Smsg_Create|OS_Smsg_Create]]
* [[en:osa:ref:allservices:OS_Smsg_Send|OS_Smsg_Send]]
* [[en:osa:ref:allservices:OS_Smsg_Send_TO|OS_Smsg_Send_TO]]
* [[en:osa:ref:allservices:OS_Smsg_Send_Now|OS_Smsg_Send_Now]]
* [[en:osa:ref:allservices:OS_Smsg_Accept|OS_Smsg_Accept]]
* [[en:osa:ref:allservices:OS_Smsg_Wait|OS_Smsg_Wait]]
* [[en:osa:ref:allservices:OS_Smsg_Wait_TO|OS_Smsg_Wait_TO]]
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~