OS_Squeue_Wait (squeue, os_smsg_type_var)
Wait for simple message from queue.
OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.
Only in task
squeue |
Queue of simple messages descriptor. Variable of OST_SQUEUE type. |
os_smsg_type_var |
Variable of OST_SMSG type, where simple message will be placed |
nothing
OST_SQUEUE squeue; void Task (void) { OST_SMSG smsg; for (;;) { /*...*/ OS_Squeue_Wait(squeue, smsg); // Wait for simple message and store // it into smsg /*...*/ } }
OS_WaitQSMsg