bool OS_Squeue_IsFull (squeue)
bool OS_Squeue_IsFull_I (squeue)
Check if queue of simple messages is full.
OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.
Everywhere
squeue |
Queue of simple messages descriptor. Variable of OST_SQUEUE type. |
false |
there is free room to add new message |
true |
queue is full |
OST_SQUEUE squeue; void Task (void) { for (;;) { /*...*/ if (!OS_Squeue_IsFull (squeue)) { // If there is a room OS_Squeue_Send_Now(squeue, 'A'); // then send simple message 'A' }; /*...*/ } }
OS_IsQSMsgFull