OS_Msg_Wait (msg_cb, os_msg_type_var)
Only in task
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 |
nothing
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 /*...*/ } }
OS_WaitMsg