OSA : OS_Smsg_Send

OS_Smsg_Send (smsg, smessage)
OS_Smsg_Send_I (smsg, smessage)

Allowed only in taskSwitches context

Send simple message through smsg. If smsg already exists then wait until it becomes free.

Call allowed:

Only in task

Parameters:

smsg Simple message descriptor. Variable of OST_SMSG type
smessage Message body (OST_SMSG)

Returns:

nothing

Example:

OST_SMSG smsg;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Smsg_Send (smsg, 'E');
        /*...*/
    }
}

Old style name

OS_SendSMsg

See also