OS_Smsg_Wait (smsg, os_smsg_type_var)
Only in task
smsg |
Simple message descriptor. Variable of OST_SMSG type |
os_smsg_type_var |
Variable of OST_SMSG type, where simple message will be placed |
nothing
OST_SMSG smsg; void Task (void) { OST_SMSG mysmsg; for (;;) { /*...*/ OS_Smsg_Wait(smsg, mysmsg); // Wait for simple message and store it // into mysmsg /*...*/ } }
OS_WaitSMsg