Command disabled: backlink
 
Available Languages?:

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:

smsg Simple message descriptor. Variable of OST_SMSG type

Returns:

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_check.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki