Command disabled: backlink
 
Available Languages?:

OSA : OS_Msg_Send

OS_Msg_Send (msg_cb, message)
OS_Msg_Send_I (msg_cb, message)

Allowed only in taskSwitches context

Send message message through msg_cb. If msg_cb is busy then wait until it becomes free.

Call allowed:

Only in task

Parameters:

msg_cb Pointer to message descriptor. Variable of OST_MSG_CB type
message pointer to message body (OST_MSG)

Returns:

nothing

Example:

OST_MSG_CB msg_cb;
 
void Task (void)
{
    OST_MSG msg;
    static char buf[10];
    for (;;) {
        /*...*/
        OS_Msg_Send(msg_cb, buf);
        /*...*/
    }
}

Old style name

OS_SendMsg

See also

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