#include "mpu_wrappers.h"
Macros | |
#define | queueSEND_TO_BACK ( 0 ) |
#define | queueSEND_TO_FRONT ( 1 ) |
#define | xQueueAltPeek(xQueue, pvBuffer, xTicksToWait) xQueueAltGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE ) |
#define | xQueueAltReceive(xQueue, pvBuffer, xTicksToWait) xQueueAltGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE ) |
#define | xQueueAltSendToBack(xQueue, pvItemToQueue, xTicksToWait) xQueueAltGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) |
#define | xQueueAltSendToFront(xQueue, pvItemToQueue, xTicksToWait) xQueueAltGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT ) |
#define | xQueuePeek(xQueue, pvBuffer, xTicksToWait) xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE ) |
#define | xQueueReceive(xQueue, pvBuffer, xTicksToWait) xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE ) |
#define | xQueueSend(xQueue, pvItemToQueue, xTicksToWait) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) |
#define | xQueueSendFromISR(pxQueue, pvItemToQueue, pxHigherPriorityTaskWoken) xQueueGenericSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) |
#define | xQueueSendToBack(xQueue, pvItemToQueue, xTicksToWait) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) |
#define | xQueueSendToBackFromISR(pxQueue, pvItemToQueue, pxHigherPriorityTaskWoken) xQueueGenericSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) |
#define | xQueueSendToFront(xQueue, pvItemToQueue, xTicksToWait) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT ) |
#define | xQueueSendToFrontFromISR(pxQueue, pvItemToQueue, pxHigherPriorityTaskWoken) xQueueGenericSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT ) |
Typedefs | |
typedef void * | xQueueHandle |
Type by which queues are referenced. More... | |
Functions | |
unsigned portBASE_TYPE | uxQueueMessagesWaiting (const xQueueHandle xQueue) |
unsigned portBASE_TYPE | uxQueueMessagesWaitingFromISR (const xQueueHandle pxQueue) |
void | vQueueDelete (xQueueHandle pxQueue) |
void | vQueueWaitForMessageRestricted (xQueueHandle pxQueue, portTickType xTicksToWait) |
signed portBASE_TYPE | xQueueAltGenericReceive (xQueueHandle pxQueue, void *const pvBuffer, portTickType xTicksToWait, portBASE_TYPE xJustPeeking) |
signed portBASE_TYPE | xQueueAltGenericSend (xQueueHandle pxQueue, const void *const pvItemToQueue, portTickType xTicksToWait, portBASE_TYPE xCopyPosition) |
xQueueHandle | xQueueCreate (unsigned portBASE_TYPE uxQueueLength, unsigned portBASE_TYPE uxItemSize) |
xQueueHandle | xQueueCreateCountingSemaphore (unsigned portBASE_TYPE uxCountValue, unsigned portBASE_TYPE uxInitialCount) |
xQueueHandle | xQueueCreateMutex (void) |
signed portBASE_TYPE | xQueueCRReceive (xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait) |
signed portBASE_TYPE | xQueueCRReceiveFromISR (xQueueHandle pxQueue, void *pvBuffer, signed portBASE_TYPE *pxTaskWoken) |
signed portBASE_TYPE | xQueueCRSend (xQueueHandle pxQueue, const void *pvItemToQueue, portTickType xTicksToWait) |
signed portBASE_TYPE | xQueueCRSendFromISR (xQueueHandle pxQueue, const void *pvItemToQueue, signed portBASE_TYPE xCoRoutinePreviouslyWoken) |
signed portBASE_TYPE | xQueueGenericReceive (xQueueHandle xQueue, void *const pvBuffer, portTickType xTicksToWait, portBASE_TYPE xJustPeek) |
signed portBASE_TYPE | xQueueGenericSend (xQueueHandle pxQueue, const void *const pvItemToQueue, portTickType xTicksToWait, portBASE_TYPE xCopyPosition) |
signed portBASE_TYPE | xQueueGenericSendFromISR (xQueueHandle pxQueue, const void *const pvItemToQueue, signed portBASE_TYPE *pxHigherPriorityTaskWoken, portBASE_TYPE xCopyPosition) |
portBASE_TYPE | xQueueGiveMutexRecursive (xQueueHandle pxMutex) |
signed portBASE_TYPE | xQueueIsQueueEmptyFromISR (const xQueueHandle pxQueue) |
signed portBASE_TYPE | xQueueIsQueueFullFromISR (const xQueueHandle pxQueue) |
signed portBASE_TYPE | xQueueReceiveFromISR (xQueueHandle pxQueue, void *const pvBuffer, signed portBASE_TYPE *pxTaskWoken) |
portBASE_TYPE | xQueueTakeMutexRecursive (xQueueHandle pxMutex, portTickType xBlockTime) |
#define queueSEND_TO_BACK ( 0 ) |
#define queueSEND_TO_FRONT ( 1 ) |
#define xQueueAltPeek | ( | xQueue, | |
pvBuffer, | |||
xTicksToWait | |||
) | xQueueAltGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE ) |
#define xQueueAltReceive | ( | xQueue, | |
pvBuffer, | |||
xTicksToWait | |||
) | xQueueAltGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE ) |
#define xQueueAltSendToBack | ( | xQueue, | |
pvItemToQueue, | |||
xTicksToWait | |||
) | xQueueAltGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) |
#define xQueueAltSendToFront | ( | xQueue, | |
pvItemToQueue, | |||
xTicksToWait | |||
) | xQueueAltGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT ) |
#define xQueuePeek | ( | xQueue, | |
pvBuffer, | |||
xTicksToWait | |||
) | xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE ) |
#define xQueueReceive | ( | xQueue, | |
pvBuffer, | |||
xTicksToWait | |||
) | xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE ) |
#define xQueueSend | ( | xQueue, | |
pvItemToQueue, | |||
xTicksToWait | |||
) | xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) |
#define xQueueSendFromISR | ( | pxQueue, | |
pvItemToQueue, | |||
pxHigherPriorityTaskWoken | |||
) | xQueueGenericSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) |
#define xQueueSendToBack | ( | xQueue, | |
pvItemToQueue, | |||
xTicksToWait | |||
) | xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) |
#define xQueueSendToBackFromISR | ( | pxQueue, | |
pvItemToQueue, | |||
pxHigherPriorityTaskWoken | |||
) | xQueueGenericSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) |
#define xQueueSendToFront | ( | xQueue, | |
pvItemToQueue, | |||
xTicksToWait | |||
) | xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT ) |
#define xQueueSendToFrontFromISR | ( | pxQueue, | |
pvItemToQueue, | |||
pxHigherPriorityTaskWoken | |||
) | xQueueGenericSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT ) |
typedef void* xQueueHandle |
Type by which queues are referenced.
For example, a call to xQueueCreate returns (via a pointer parameter) an xQueueHandle variable that can then be used as a parameter to xQueueSend(), xQueueReceive(), etc.
unsigned portBASE_TYPE uxQueueMessagesWaiting | ( | const xQueueHandle | xQueue | ) |
unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, and QueueDefinition::uxMessagesWaiting.
void vQueueDelete | ( | xQueueHandle | pxQueue | ) |
References configASSERT, QueueDefinition::pcHead, traceQUEUE_DELETE, vPortFree(), and vQueueUnregisterQueue.
Referenced by sys_mbox_free(), and sys_sem_free().
void vQueueWaitForMessageRestricted | ( | xQueueHandle | pxQueue, |
portTickType | xTicksToWait | ||
) |
signed portBASE_TYPE xQueueAltGenericReceive | ( | xQueueHandle | pxQueue, |
void *const | pvBuffer, | ||
portTickType | xTicksToWait, | ||
portBASE_TYPE | xJustPeeking | ||
) |
signed portBASE_TYPE xQueueAltGenericSend | ( | xQueueHandle | pxQueue, |
const void *const | pvItemToQueue, | ||
portTickType | xTicksToWait, | ||
portBASE_TYPE | xCopyPosition | ||
) |
xQueueHandle xQueueCreate | ( | unsigned portBASE_TYPE | uxQueueLength, |
unsigned portBASE_TYPE | uxItemSize | ||
) |
xQueueHandle xQueueCreateCountingSemaphore | ( | unsigned portBASE_TYPE | uxCountValue, |
unsigned portBASE_TYPE | uxInitialCount | ||
) |
xQueueHandle xQueueCreateMutex | ( | void | ) |
signed portBASE_TYPE xQueueCRReceive | ( | xQueueHandle | pxQueue, |
void * | pvBuffer, | ||
portTickType | xTicksToWait | ||
) |
signed portBASE_TYPE xQueueCRReceiveFromISR | ( | xQueueHandle | pxQueue, |
void * | pvBuffer, | ||
signed portBASE_TYPE * | pxTaskWoken | ||
) |
signed portBASE_TYPE xQueueCRSend | ( | xQueueHandle | pxQueue, |
const void * | pvItemToQueue, | ||
portTickType | xTicksToWait | ||
) |
signed portBASE_TYPE xQueueCRSendFromISR | ( | xQueueHandle | pxQueue, |
const void * | pvItemToQueue, | ||
signed portBASE_TYPE | xCoRoutinePreviouslyWoken | ||
) |
signed portBASE_TYPE xQueueGenericReceive | ( | xQueueHandle | xQueue, |
void *const | pvBuffer, | ||
portTickType | xTicksToWait, | ||
portBASE_TYPE | xJustPeek | ||
) |
References configASSERT, errQUEUE_EMPTY, listLIST_IS_EMPTY, NULL, QueueDefinition::pcReadFrom, pdFALSE, pdPASS, pdTRUE, portTickType, portYIELD_WITHIN_API, prvCopyDataFromQueue(), prvIsQueueEmpty(), prvLockQueue, prvUnlockQueue(), queueQUEUE_IS_MUTEX, taskENTER_CRITICAL, taskEXIT_CRITICAL, traceBLOCKING_ON_QUEUE_RECEIVE, traceQUEUE_PEEK, traceQUEUE_RECEIVE, traceQUEUE_RECEIVE_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxMessagesWaiting, vTaskPlaceOnEventList(), vTaskPriorityInherit(), vTaskSetTimeOutState(), vTaskSuspendAll(), xTaskCheckForTimeOut(), xTaskGetCurrentTaskHandle(), xTaskRemoveFromEventList(), xTaskResumeAll(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTasksWaitingToSend.
signed portBASE_TYPE xQueueGenericSend | ( | xQueueHandle | pxQueue, |
const void *const | pvItemToQueue, | ||
portTickType | xTicksToWait, | ||
portBASE_TYPE | xCopyPosition | ||
) |
References configASSERT, errQUEUE_FULL, listLIST_IS_EMPTY, NULL, pdFALSE, pdPASS, pdTRUE, portTickType, portYIELD_WITHIN_API, prvCopyDataToQueue(), prvIsQueueFull(), prvLockQueue, prvUnlockQueue(), taskENTER_CRITICAL, taskEXIT_CRITICAL, traceBLOCKING_ON_QUEUE_SEND, traceQUEUE_SEND, traceQUEUE_SEND_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxLength, QueueDefinition::uxMessagesWaiting, vTaskPlaceOnEventList(), vTaskSetTimeOutState(), vTaskSuspendAll(), xTaskCheckForTimeOut(), xTaskRemoveFromEventList(), xTaskResumeAll(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTasksWaitingToSend.
signed portBASE_TYPE xQueueGenericSendFromISR | ( | xQueueHandle | pxQueue, |
const void *const | pvItemToQueue, | ||
signed portBASE_TYPE * | pxHigherPriorityTaskWoken, | ||
portBASE_TYPE | xCopyPosition | ||
) |
References configASSERT, errQUEUE_FULL, listLIST_IS_EMPTY, NULL, pdFALSE, pdPASS, pdTRUE, portCLEAR_INTERRUPT_MASK_FROM_ISR, portSET_INTERRUPT_MASK_FROM_ISR, prvCopyDataToQueue(), queueUNLOCKED, traceQUEUE_SEND_FROM_ISR, traceQUEUE_SEND_FROM_ISR_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxLength, QueueDefinition::uxMessagesWaiting, xTaskRemoveFromEventList(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTxLock.
portBASE_TYPE xQueueGiveMutexRecursive | ( | xQueueHandle | pxMutex | ) |
signed portBASE_TYPE xQueueIsQueueEmptyFromISR | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, and QueueDefinition::uxMessagesWaiting.
signed portBASE_TYPE xQueueIsQueueFullFromISR | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, QueueDefinition::uxLength, and QueueDefinition::uxMessagesWaiting.
signed portBASE_TYPE xQueueReceiveFromISR | ( | xQueueHandle | pxQueue, |
void *const | pvBuffer, | ||
signed portBASE_TYPE * | pxTaskWoken | ||
) |
References configASSERT, listLIST_IS_EMPTY, NULL, pdFAIL, pdFALSE, pdPASS, pdTRUE, portCLEAR_INTERRUPT_MASK_FROM_ISR, portSET_INTERRUPT_MASK_FROM_ISR, prvCopyDataFromQueue(), queueUNLOCKED, traceQUEUE_RECEIVE_FROM_ISR, traceQUEUE_RECEIVE_FROM_ISR_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxMessagesWaiting, QueueDefinition::xRxLock, xTaskRemoveFromEventList(), and QueueDefinition::xTasksWaitingToSend.
portBASE_TYPE xQueueTakeMutexRecursive | ( | xQueueHandle | pxMutex, |
portTickType | xBlockTime | ||
) |