OS_Squeue_Send_Now (squeue, smessage)
OS_Squeue_Send_I (squeue, smessage)
Send simple message to queue of simple messages. If there is no free room to add a new message then oldest message will be dropped.
OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.
squeue |
Queue of simple messages descriptor. Variable of OST_SQUEUE type. |
smessage |
Message body (OST_SMSG) |
bEventError |
If queue was full then OS_IsEventError will return true |
OST_SQUEUE squeue; void Task (void) { for (;;) { /*...*/ OS_Squeue_Send_Now(squeue, 'N'); /*...*/ } }
OS_SendQSMsgNoWait