48 handle = xQueueCreate(maxItems, itemSize);
51 #ifndef CPP_FREERTOS_NO_EXCEPTIONS 54 configASSERT(!
"Queue Constructor Failed");
70 success = xQueueSendToBack(
handle, item, portMAX_DELAY);
72 return success == pdTRUE ? true :
false;
80 success = xQueueSendToBack(
handle, item, Timeout);
82 return success == pdTRUE ? true :
false;
90 success = xQueueReceive(
handle, item, Timeout);
92 return success == pdTRUE ? true :
false;
100 success = xQueuePeek(
handle, item, Timeout);
102 return success == pdTRUE ? true :
false;
110 success = xQueueSendToBackFromISR(
handle, item, pxHigherPriorityTaskWoken);
112 return success == pdTRUE ? true :
false;
120 success = xQueueReceiveFromISR(
handle, item, pxHigherPriorityTaskWoken);
122 return success == pdTRUE ? true :
false;
130 success = xQueuePeekFromISR(
handle, item);
132 return success == pdTRUE ? true :
false;
138 UBaseType_t cnt = uxQueueMessagesWaiting(
handle);
140 return cnt == 0 ? true :
false;
146 UBaseType_t cnt = uxQueueSpacesAvailable(
handle);
148 return cnt == 0 ? true :
false;
160 return uxQueueMessagesWaiting(
handle);
166 return uxQueueSpacesAvailable(
handle);
171 :
Queue(maxItems, itemSize)
180 success = xQueueSendToFront(
handle, item, Timeout);
182 return success == pdTRUE ? true :
false;
190 success = xQueueSendToFrontFromISR(
handle, item, pxHigherPriorityTaskWoken);
192 return success == pdTRUE ? true :
false;
204 (void)xQueueOverwrite(
handle, item);
211 (void)xQueueOverwriteFromISR(
handle, item, pxHigherPriorityTaskWoken);
bool Dequeue(void *item, TickType_t Timeout=portMAX_DELAY)
bool Peek(void *item, TickType_t Timeout=portMAX_DELAY)
UBaseType_t NumSpacesLeft()
virtual bool EnqueueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
bool EnqueueToFront(void *item, TickType_t Timeout=portMAX_DELAY)
Queue(UBaseType_t maxItems, UBaseType_t itemSize)
virtual bool Enqueue(void *item)
bool EnqueueToFrontFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
bool DequeueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
BinaryQueue(UBaseType_t itemSize)
bool PeekFromISR(void *item)
Deque(UBaseType_t maxItems, UBaseType_t itemSize)
virtual bool EnqueueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
virtual bool Enqueue(void *item)