Available Languages?:

OSA : OS_Smsg_Send_I

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

Only insize interrupt

Send message msg_cb from interrupt routine. If msg_cb already exists then it will be overwritten.

OS_ENABLE_INT_SMSG constant must be defined in OSAcfg.h

Call allowed:

Only in interrupt

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 interrupt isr(void)
{
    OS_EnterInt();
    /*...*/
    OS_Smsg_Send_I (smsg, smessage);
    /*...*/
    OS_LeaveInt();
}
void Task (void)
{
    for (;;) {
        /*...*/
        /*...*/
    }
}

Old style name

OS_IntSendSMsgNoWait

See also

 
en/osa/ref/allservices/os_smsg_send_i.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