Command disabled: backlink
 
Available Languages?:

OSA : OS_Msg_Wait

OS_Msg_Wait (msg_cb, os_msg_type_var)

Allowed only in taskSwitches context

Wait for message msg_cb.

Call allowed:

Only in task

Parameters:

msg_cb Pointer to message descriptor. Variable of OST_MSG_CB type
os_msg_type_var Variable of OST_MSG type, where pointer to message will be placed

Returns:

nothing

Example:

OST_MSG_CB msg_cb;
 
void Task (void)
{
    OST_MSG msg;
    for (;;) {
        /*...*/
        OS_Msg_Wait(msg_cb, msg); // Wait for message and store it into msg
        /*...*/
    }
}

Old style name

OS_WaitMsg

See also

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