#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
Data Structures | |
struct | QueueDefinition |
Macros | |
#define | MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define | prvLockQueue(pxQueue) |
#define | pxMutexHolder pcTail |
#define | queueLOCKED_UNMODIFIED ( ( BaseType_t ) 0 ) |
#define | queueMUTEX_GIVE_BLOCK_TIME ( ( TickType_t ) 0U ) |
#define | queueQUEUE_IS_MUTEX NULL |
#define | queueSEMAPHORE_QUEUE_ITEM_LENGTH ( ( UBaseType_t ) 0 ) |
#define | queueUNLOCKED ( ( BaseType_t ) -1 ) |
#define | queueYIELD_IF_USING_PREEMPTION() |
#define | uxQueueType pcHead |
Typedefs | |
typedef xQUEUE | Queue_t |
typedef struct QueueDefinition | xQUEUE |
Functions | |
static void | prvCopyDataFromQueue (Queue_t *const pxQueue, void *const pvBuffer) PRIVILEGED_FUNCTION |
static BaseType_t | prvCopyDataToQueue (Queue_t *const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition) PRIVILEGED_FUNCTION |
static BaseType_t | prvIsQueueEmpty (const Queue_t *pxQueue) PRIVILEGED_FUNCTION |
static BaseType_t | prvIsQueueFull (const Queue_t *pxQueue) PRIVILEGED_FUNCTION |
static void | prvUnlockQueue (Queue_t *const pxQueue) PRIVILEGED_FUNCTION |
UBaseType_t | uxQueueMessagesWaiting (const QueueHandle_t xQueue) |
UBaseType_t | uxQueueMessagesWaitingFromISR (const QueueHandle_t xQueue) |
UBaseType_t | uxQueueSpacesAvailable (const QueueHandle_t xQueue) |
void | vQueueDelete (QueueHandle_t xQueue) |
QueueHandle_t | xQueueGenericCreate (const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType) |
BaseType_t | xQueueGenericReceive (QueueHandle_t xQueue, void *const pvBuffer, TickType_t xTicksToWait, const BaseType_t xJustPeeking) |
BaseType_t | xQueueGenericReset (QueueHandle_t xQueue, BaseType_t xNewQueue) |
BaseType_t | xQueueGenericSend (QueueHandle_t xQueue, const void *const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition) |
BaseType_t | xQueueGenericSendFromISR (QueueHandle_t xQueue, const void *const pvItemToQueue, BaseType_t *const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition) |
BaseType_t | xQueueGiveFromISR (QueueHandle_t xQueue, BaseType_t *const pxHigherPriorityTaskWoken) |
BaseType_t | xQueueIsQueueEmptyFromISR (const QueueHandle_t xQueue) |
BaseType_t | xQueueIsQueueFullFromISR (const QueueHandle_t xQueue) |
BaseType_t | xQueuePeekFromISR (QueueHandle_t xQueue, void *const pvBuffer) |
BaseType_t | xQueueReceiveFromISR (QueueHandle_t xQueue, void *const pvBuffer, BaseType_t *const pxHigherPriorityTaskWoken) |
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define prvLockQueue | ( | pxQueue | ) |
Referenced by xQueueGenericReceive(), and xQueueGenericSend().
#define pxMutexHolder pcTail |
#define queueLOCKED_UNMODIFIED ( ( BaseType_t ) 0 ) |
Referenced by prvUnlockQueue().
#define queueMUTEX_GIVE_BLOCK_TIME ( ( TickType_t ) 0U ) |
#define queueQUEUE_IS_MUTEX NULL |
Referenced by prvCopyDataToQueue(), xQueueGenericReceive(), and xQueueGiveFromISR().
#define queueSEMAPHORE_QUEUE_ITEM_LENGTH ( ( UBaseType_t ) 0 ) |
#define queueUNLOCKED ( ( BaseType_t ) -1 ) |
Referenced by prvUnlockQueue(), xQueueGenericReset(), xQueueGenericSendFromISR(), xQueueGiveFromISR(), and xQueueReceiveFromISR().
#define queueYIELD_IF_USING_PREEMPTION | ( | ) |
Referenced by xQueueGenericReceive(), xQueueGenericReset(), and xQueueGenericSend().
#define uxQueueType pcHead |
typedef struct QueueDefinition xQUEUE |
|
static |
|
static |
References mtCOVERAGE_TEST_MARKER, NULL, QueueDefinition::pcHead, QueueDefinition::pcReadFrom, QueueDefinition::pcTail, QueueDefinition::pcWriteTo, pdFALSE, queueOVERWRITE, queueQUEUE_IS_MUTEX, queueSEND_TO_BACK, QueueDefinition::u, QueueDefinition::uxItemSize, QueueDefinition::uxMessagesWaiting, and xTaskPriorityDisinherit().
Referenced by xQueueGenericSend(), and xQueueGenericSendFromISR().
|
static |
References pdFALSE, pdTRUE, taskENTER_CRITICAL, taskEXIT_CRITICAL, and QueueDefinition::uxMessagesWaiting.
Referenced by xQueueGenericReceive().
|
static |
References pdFALSE, pdTRUE, taskENTER_CRITICAL, taskEXIT_CRITICAL, QueueDefinition::uxLength, and QueueDefinition::uxMessagesWaiting.
Referenced by xQueueGenericSend().
|
static |
References listLIST_IS_EMPTY, mtCOVERAGE_TEST_MARKER, NULL, pdFALSE, pdTRUE, queueLOCKED_UNMODIFIED, queueSEND_TO_BACK, queueUNLOCKED, taskENTER_CRITICAL, taskEXIT_CRITICAL, vTaskMissedYield(), QueueDefinition::xRxLock, xTaskRemoveFromEventList(), QueueDefinition::xTasksWaitingToReceive, QueueDefinition::xTasksWaitingToSend, and QueueDefinition::xTxLock.
Referenced by xQueueGenericReceive(), and xQueueGenericSend().
UBaseType_t uxQueueMessagesWaiting | ( | const QueueHandle_t | xQueue | ) |
UBaseType_t uxQueueMessagesWaitingFromISR | ( | const QueueHandle_t | xQueue | ) |
UBaseType_t uxQueueSpacesAvailable | ( | const QueueHandle_t | xQueue | ) |
void vQueueDelete | ( | QueueHandle_t | xQueue | ) |
QueueHandle_t xQueueGenericCreate | ( | const UBaseType_t | uxQueueLength, |
const UBaseType_t | uxItemSize, | ||
const uint8_t | ucQueueType | ||
) |
BaseType_t xQueueGenericReceive | ( | QueueHandle_t | xQueue, |
void *const | pvBuffer, | ||
TickType_t | xTicksToWait, | ||
const BaseType_t | xJustPeeking | ||
) |
References configASSERT, errQUEUE_EMPTY, listLIST_IS_EMPTY, mtCOVERAGE_TEST_MARKER, NULL, QueueDefinition::pcReadFrom, pdFALSE, pdPASS, pdTRUE, portYIELD_WITHIN_API, prvCopyDataFromQueue(), prvIsQueueEmpty(), prvLockQueue, prvUnlockQueue(), pvTaskIncrementMutexHeldCount(), queueQUEUE_IS_MUTEX, queueYIELD_IF_USING_PREEMPTION, taskENTER_CRITICAL, taskEXIT_CRITICAL, taskSCHEDULER_SUSPENDED, traceBLOCKING_ON_QUEUE_RECEIVE, traceQUEUE_PEEK, traceQUEUE_RECEIVE, traceQUEUE_RECEIVE_FAILED, QueueDefinition::u, QueueDefinition::uxItemSize, QueueDefinition::uxMessagesWaiting, vTaskPlaceOnEventList(), vTaskPriorityInherit(), vTaskSetTimeOutState(), vTaskSuspendAll(), xTaskCheckForTimeOut(), xTaskGetSchedulerState(), xTaskRemoveFromEventList(), xTaskResumeAll(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTasksWaitingToSend.
BaseType_t xQueueGenericReset | ( | QueueHandle_t | xQueue, |
BaseType_t | xNewQueue | ||
) |
BaseType_t xQueueGenericSend | ( | QueueHandle_t | xQueue, |
const void *const | pvItemToQueue, | ||
TickType_t | xTicksToWait, | ||
const BaseType_t | xCopyPosition | ||
) |
BaseType_t xQueueGenericSendFromISR | ( | QueueHandle_t | xQueue, |
const void *const | pvItemToQueue, | ||
BaseType_t *const | pxHigherPriorityTaskWoken, | ||
const BaseType_t | xCopyPosition | ||
) |
BaseType_t xQueueGiveFromISR | ( | QueueHandle_t | xQueue, |
BaseType_t *const | pxHigherPriorityTaskWoken | ||
) |
BaseType_t xQueueIsQueueEmptyFromISR | ( | const QueueHandle_t | xQueue | ) |
BaseType_t xQueueIsQueueFullFromISR | ( | const QueueHandle_t | xQueue | ) |
BaseType_t xQueuePeekFromISR | ( | QueueHandle_t | xQueue, |
void *const | pvBuffer | ||
) |
BaseType_t xQueueReceiveFromISR | ( | QueueHandle_t | xQueue, |
void *const | pvBuffer, | ||
BaseType_t *const | pxHigherPriorityTaskWoken | ||
) |