Microchip® Advanced Software Framework

freertos-7.5.2/Source/include/queue.h File Reference

Macros

#define queueOVERWRITE   ( ( portBASE_TYPE ) 2 )
 
#define queueQUEUE_TYPE_BASE   ( ( unsigned char ) 0U )
 
#define queueQUEUE_TYPE_BINARY_SEMAPHORE   ( ( unsigned char ) 3U )
 
#define queueQUEUE_TYPE_COUNTING_SEMAPHORE   ( ( unsigned char ) 2U )
 
#define queueQUEUE_TYPE_MUTEX   ( ( unsigned char ) 1U )
 
#define queueQUEUE_TYPE_RECURSIVE_MUTEX   ( ( unsigned char ) 4U )
 
#define queueQUEUE_TYPE_SET   ( ( unsigned char ) 0U )
 
#define queueSEND_TO_BACK   ( ( portBASE_TYPE ) 0 )
 
#define queueSEND_TO_FRONT   ( ( portBASE_TYPE ) 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 xQueueCreate(uxQueueLength, uxItemSize)   xQueueGenericCreate( uxQueueLength, uxItemSize, queueQUEUE_TYPE_BASE )
 
#define xQueueOverwrite(xQueue, pvItemToQueue)   xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), 0, queueOVERWRITE )
 
#define xQueueOverwriteFromISR(xQueue, pvItemToQueue, pxHigherPriorityTaskWoken)   xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE )
 
#define xQueuePeek(xQueue, pvBuffer, xTicksToWait)   xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE )
 
#define xQueueReceive(xQueue, pvBuffer, xTicksToWait)   xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE )
 
#define xQueueReset(xQueue)   xQueueGenericReset( xQueue, pdFALSE )
 
#define xQueueSend(xQueue, pvItemToQueue, xTicksToWait)   xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
 
#define xQueueSendFromISR(xQueue, pvItemToQueue, pxHigherPriorityTaskWoken)   xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
 
#define xQueueSendToBack(xQueue, pvItemToQueue, xTicksToWait)   xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
 
#define xQueueSendToBackFromISR(xQueue, pvItemToQueue, pxHigherPriorityTaskWoken)   xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
 
#define xQueueSendToFront(xQueue, pvItemToQueue, xTicksToWait)   xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT )
 
#define xQueueSendToFrontFromISR(xQueue, pvItemToQueue, pxHigherPriorityTaskWoken)   xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT )
 

Typedefs

typedef void * xQueueHandle
 Type by which queues are referenced. More...
 
typedef void * xQueueSetHandle
 Type by which queue sets are referenced. More...
 
typedef void * xQueueSetMemberHandle
 Queue sets can contain both queues and semaphores, so the xQueueSetMemberHandle is defined as a type to be used where a parameter or return value can be either an xQueueHandle or an xSemaphoreHandle. More...
 

Functions

unsigned char ucQueueGetQueueNumber (xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
unsigned char ucQueueGetQueueType (xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
unsigned portBASE_TYPE uxQueueMessagesWaiting (const xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR (const xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
void vQueueDelete (xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
void vQueueSetQueueNumber (xQueueHandle xQueue, unsigned char ucQueueNumber) PRIVILEGED_FUNCTION
 
void vQueueWaitForMessageRestricted (xQueueHandle xQueue, portTickType xTicksToWait) PRIVILEGED_FUNCTION
 
portBASE_TYPE xQueueAddToSet (xQueueSetMemberHandle xQueueOrSemaphore, xQueueSetHandle xQueueSet) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueAltGenericReceive (xQueueHandle xQueue, void *const pvBuffer, portTickType xTicksToWait, portBASE_TYPE xJustPeeking)
 
signed portBASE_TYPE xQueueAltGenericSend (xQueueHandle xQueue, const void *const pvItemToQueue, portTickType xTicksToWait, portBASE_TYPE xCopyPosition)
 
xQueueHandle xQueueCreateCountingSemaphore (unsigned portBASE_TYPE uxCountValue, unsigned portBASE_TYPE uxInitialCount) PRIVILEGED_FUNCTION
 
xQueueHandle xQueueCreateMutex (unsigned char ucQueueType) PRIVILEGED_FUNCTION
 
xQueueSetHandle xQueueCreateSet (unsigned portBASE_TYPE uxEventQueueLength) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueCRReceive (xQueueHandle xQueue, void *pvBuffer, portTickType xTicksToWait)
 
signed portBASE_TYPE xQueueCRReceiveFromISR (xQueueHandle xQueue, void *pvBuffer, signed portBASE_TYPE *pxTaskWoken)
 
signed portBASE_TYPE xQueueCRSend (xQueueHandle xQueue, const void *pvItemToQueue, portTickType xTicksToWait)
 
signed portBASE_TYPE xQueueCRSendFromISR (xQueueHandle xQueue, const void *pvItemToQueue, signed portBASE_TYPE xCoRoutinePreviouslyWoken)
 
xQueueHandle xQueueGenericCreate (unsigned portBASE_TYPE uxQueueLength, unsigned portBASE_TYPE uxItemSize, unsigned char ucQueueType) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueGenericReceive (xQueueHandle xQueue, const void *const pvBuffer, portTickType xTicksToWait, portBASE_TYPE xJustPeek) PRIVILEGED_FUNCTION
 
portBASE_TYPE xQueueGenericReset (xQueueHandle xQueue, portBASE_TYPE xNewQueue) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueGenericSend (xQueueHandle xQueue, const void *const pvItemToQueue, portTickType xTicksToWait, portBASE_TYPE xCopyPosition) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueGenericSendFromISR (xQueueHandle xQueue, const void *const pvItemToQueue, signed portBASE_TYPE *pxHigherPriorityTaskWoken, portBASE_TYPE xCopyPosition) PRIVILEGED_FUNCTION
 
void * xQueueGetMutexHolder (xQueueHandle xSemaphore) PRIVILEGED_FUNCTION
 
portBASE_TYPE xQueueGiveMutexRecursive (xQueueHandle pxMutex) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueIsQueueEmptyFromISR (const xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueIsQueueFullFromISR (const xQueueHandle xQueue) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueuePeekFromISR (xQueueHandle xQueue, const void *const pvBuffer) PRIVILEGED_FUNCTION
 
signed portBASE_TYPE xQueueReceiveFromISR (xQueueHandle xQueue, const void *const pvBuffer, signed portBASE_TYPE *pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
 
portBASE_TYPE xQueueRemoveFromSet (xQueueSetMemberHandle xQueueOrSemaphore, xQueueSetHandle xQueueSet) PRIVILEGED_FUNCTION
 
xQueueSetMemberHandle xQueueSelectFromSet (xQueueSetHandle xQueueSet, portTickType xBlockTimeTicks) PRIVILEGED_FUNCTION
 
xQueueSetMemberHandle xQueueSelectFromSetFromISR (xQueueSetHandle xQueueSet) PRIVILEGED_FUNCTION
 
portBASE_TYPE xQueueTakeMutexRecursive (xQueueHandle xMutex, portTickType xBlockTime) PRIVILEGED_FUNCTION
 

#define queueOVERWRITE   ( ( portBASE_TYPE ) 2 )
#define queueQUEUE_TYPE_BASE   ( ( unsigned char ) 0U )
#define queueQUEUE_TYPE_BINARY_SEMAPHORE   ( ( unsigned char ) 3U )
#define queueQUEUE_TYPE_COUNTING_SEMAPHORE   ( ( unsigned char ) 2U )
#define queueQUEUE_TYPE_MUTEX   ( ( unsigned char ) 1U )
#define queueQUEUE_TYPE_RECURSIVE_MUTEX   ( ( unsigned char ) 4U )
#define queueQUEUE_TYPE_SET   ( ( unsigned char ) 0U )
#define queueSEND_TO_BACK   ( ( portBASE_TYPE ) 0 )
#define queueSEND_TO_FRONT   ( ( portBASE_TYPE ) 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 xQueueCreate (   uxQueueLength,
  uxItemSize 
)    xQueueGenericCreate( uxQueueLength, uxItemSize, queueQUEUE_TYPE_BASE )

Referenced by demotasks_init().

#define xQueueOverwrite (   xQueue,
  pvItemToQueue 
)    xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), 0, queueOVERWRITE )
#define xQueueOverwriteFromISR (   xQueue,
  pvItemToQueue,
  pxHigherPriorityTaskWoken 
)    xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE )
#define xQueuePeek (   xQueue,
  pvBuffer,
  xTicksToWait 
)    xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE )
#define xQueueReceive (   xQueue,
  pvBuffer,
  xTicksToWait 
)    xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE )

Referenced by uart_task().

#define xQueueReset (   xQueue)    xQueueGenericReset( xQueue, pdFALSE )
#define xQueueSend (   xQueue,
  pvItemToQueue,
  xTicksToWait 
)    xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
#define xQueueSendFromISR (   xQueue,
  pvItemToQueue,
  pxHigherPriorityTaskWoken 
)    xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )

Referenced by cdc_rx_handler().

#define xQueueSendToBack (   xQueue,
  pvItemToQueue,
  xTicksToWait 
)    xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
#define xQueueSendToBackFromISR (   xQueue,
  pvItemToQueue,
  pxHigherPriorityTaskWoken 
)    xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
#define xQueueSendToFront (   xQueue,
  pvItemToQueue,
  xTicksToWait 
)    xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT )
#define xQueueSendToFrontFromISR (   xQueue,
  pvItemToQueue,
  pxHigherPriorityTaskWoken 
)    xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT )

typedef void* xQueueHandle

Type by which queues are referenced.

For example, a call to xQueueCreate() returns an xQueueHandle variable that can then be used as a parameter to xQueueSend(), xQueueReceive(), etc.

typedef void* xQueueSetHandle

Type by which queue sets are referenced.

For example, a call to xQueueCreateSet() returns an xQueueSet variable that can then be used as a parameter to xQueueSelectFromSet(), xQueueAddToSet(), etc.

typedef void* xQueueSetMemberHandle

Queue sets can contain both queues and semaphores, so the xQueueSetMemberHandle is defined as a type to be used where a parameter or return value can be either an xQueueHandle or an xSemaphoreHandle.

unsigned char ucQueueGetQueueNumber ( xQueueHandle  xQueue)
unsigned char ucQueueGetQueueType ( xQueueHandle  xQueue)
unsigned portBASE_TYPE uxQueueMessagesWaiting ( const xQueueHandle  xQueue)
unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR ( const xQueueHandle  xQueue)
void vQueueDelete ( xQueueHandle  xQueue)
void vQueueSetQueueNumber ( xQueueHandle  xQueue,
unsigned char  ucQueueNumber 
)
void vQueueWaitForMessageRestricted ( xQueueHandle  xQueue,
portTickType  xTicksToWait 
)
portBASE_TYPE xQueueAddToSet ( xQueueSetMemberHandle  xQueueOrSemaphore,
xQueueSetHandle  xQueueSet 
)
signed portBASE_TYPE xQueueAltGenericReceive ( xQueueHandle  xQueue,
void *const  pvBuffer,
portTickType  xTicksToWait,
portBASE_TYPE  xJustPeeking 
)
signed portBASE_TYPE xQueueAltGenericSend ( xQueueHandle  xQueue,
const void *const  pvItemToQueue,
portTickType  xTicksToWait,
portBASE_TYPE  xCopyPosition 
)
xQueueHandle xQueueCreateCountingSemaphore ( unsigned portBASE_TYPE  uxCountValue,
unsigned portBASE_TYPE  uxInitialCount 
)
xQueueHandle xQueueCreateMutex ( unsigned char  ucQueueType)
xQueueSetHandle xQueueCreateSet ( unsigned portBASE_TYPE  uxEventQueueLength)
signed portBASE_TYPE xQueueCRReceive ( xQueueHandle  xQueue,
void *  pvBuffer,
portTickType  xTicksToWait 
)
signed portBASE_TYPE xQueueCRReceiveFromISR ( xQueueHandle  xQueue,
void *  pvBuffer,
signed portBASE_TYPE *  pxTaskWoken 
)
signed portBASE_TYPE xQueueCRSend ( xQueueHandle  xQueue,
const void *  pvItemToQueue,
portTickType  xTicksToWait 
)
signed portBASE_TYPE xQueueCRSendFromISR ( xQueueHandle  xQueue,
const void *  pvItemToQueue,
signed portBASE_TYPE  xCoRoutinePreviouslyWoken 
)
xQueueHandle xQueueGenericCreate ( unsigned portBASE_TYPE  uxQueueLength,
unsigned portBASE_TYPE  uxItemSize,
unsigned char  ucQueueType 
)
portBASE_TYPE xQueueGenericReset ( xQueueHandle  xQueue,
portBASE_TYPE  xNewQueue 
)
signed portBASE_TYPE xQueueGenericSend ( xQueueHandle  xQueue,
const void *const  pvItemToQueue,
portTickType  xTicksToWait,
portBASE_TYPE  xCopyPosition 
)
signed portBASE_TYPE xQueueGenericSendFromISR ( xQueueHandle  xQueue,
const void *const  pvItemToQueue,
signed portBASE_TYPE *  pxHigherPriorityTaskWoken,
portBASE_TYPE  xCopyPosition 
)
void* xQueueGetMutexHolder ( xQueueHandle  xSemaphore)
portBASE_TYPE xQueueGiveMutexRecursive ( xQueueHandle  pxMutex)
signed portBASE_TYPE xQueueIsQueueEmptyFromISR ( const xQueueHandle  xQueue)
signed portBASE_TYPE xQueueIsQueueFullFromISR ( const xQueueHandle  xQueue)
portBASE_TYPE xQueueRemoveFromSet ( xQueueSetMemberHandle  xQueueOrSemaphore,
xQueueSetHandle  xQueueSet 
)
xQueueSetMemberHandle xQueueSelectFromSet ( xQueueSetHandle  xQueueSet,
portTickType  xBlockTimeTicks 
)
xQueueSetMemberHandle xQueueSelectFromSetFromISR ( xQueueSetHandle  xQueueSet)
portBASE_TYPE xQueueTakeMutexRecursive ( xQueueHandle  xMutex,
portTickType  xBlockTime 
)