OSA : OS_Smsg_Create

OS_Smsg_Create (smsg)

Create a simple message. After creation, the simple message's value is zeroed.

Call allowed:

Everywhere

Parameters:

smsg Simple message descriptor. Variable of OST_SMSG type

Returns:

nothing

Example:

OST_SMSG smsg;
 
void Task (void)
{
    OS_Smsg_Create (smsg);
    for (;;) {
        /*...*/
    }
}

Old style name

OS_CreateSMsg

See also