OS_Queue_Wait (queue, os_msg_type_var)
Wait for message from queue.
OS_ENABLE_QUEUE constant must be defined in OSAcfg.h.
Only in task
queue |
Queue of messages descriptor. Variable of OST_QUEUE type. |
os_msg_type_var |
Variable of OST_MSG type, where pointer to message will be placed |
nothing
OST_QUEUE queue; void Task (void) { OST_MSG msg; for (;;) { /*...*/ OS_Queue_Wait (queue, msg); // Wait for message and store it into msg /*...*/ } }
OS_WaitQMsg