OSA : OS_Smsg_Send_Now

OS_Smsg_Send_Now (smsg, smessage)
OS_Smsg_Send_I (smsg, smessage)

Send simple message through smsg. If smsg already exists then it will be overwritten.

Call allowed:

Parameters:

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

Returns:

bEventError If smsg is not free then OS_IsEventError will return true

Example:

OST_SMSG smsg;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Smsg_Send_Now(smsg, 0x33);
        /*...*/
    }
}

Old style name

OS_SendSMsgNoWait

See also