queue.h
Go to the documentation of this file.
1 /*
2  FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.
3  All rights reserved
4 
5  VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
6 
7  This file is part of the FreeRTOS distribution.
8 
9  FreeRTOS is free software; you can redistribute it and/or modify it under
10  the terms of the GNU General Public License (version 2) as published by the
11  Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
12 
13  ***************************************************************************
14  >>! NOTE: The modification to the GPL is included to allow you to !<<
15  >>! distribute a combined work that includes FreeRTOS without being !<<
16  >>! obliged to provide the source code for proprietary components !<<
17  >>! outside of the FreeRTOS kernel. !<<
18  ***************************************************************************
19 
20  FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
21  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
22  FOR A PARTICULAR PURPOSE. Full license text is available on the following
23  link: http://www.freertos.org/a00114.html
24 
25  ***************************************************************************
26  * *
27  * FreeRTOS provides completely free yet professionally developed, *
28  * robust, strictly quality controlled, supported, and cross *
29  * platform software that is more than just the market leader, it *
30  * is the industry's de facto standard. *
31  * *
32  * Help yourself get started quickly while simultaneously helping *
33  * to support the FreeRTOS project by purchasing a FreeRTOS *
34  * tutorial book, reference manual, or both: *
35  * http://www.FreeRTOS.org/Documentation *
36  * *
37  ***************************************************************************
38 
39  http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
40  the FAQ page "My application does not run, what could be wrong?". Have you
41  defined configASSERT()?
42 
43  http://www.FreeRTOS.org/support - In return for receiving this top quality
44  embedded software for free we request you assist our global community by
45  participating in the support forum.
46 
47  http://www.FreeRTOS.org/training - Investing in training allows your team to
48  be as productive as possible as early as possible. Now you can receive
49  FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
50  Ltd, and the world's leading authority on the world's leading RTOS.
51 
52  http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
53  including FreeRTOS+Trace - an indispensable productivity tool, a DOS
54  compatible FAT file system, and our tiny thread aware UDP/IP stack.
55 
56  http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
57  Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
58 
59  http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
60  Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
61  licenses offer ticketed support, indemnification and commercial middleware.
62 
63  http://www.SafeRTOS.com - High Integrity Systems also provide a safety
64  engineered and independently SIL3 certified version for use in safety and
65  mission critical applications that require provable dependability.
66 
67  1 tab == 4 spaces!
68 */
69 
70 
71 #ifndef QUEUE_H
72 #define QUEUE_H
73 
74 #ifndef INC_FREERTOS_H
75  #error "include FreeRTOS.h" must appear in source files before "include queue.h"
76 #endif
77 
78 #ifdef __cplusplus
79 extern "C" {
80 #endif
81 
82 
88 typedef void * QueueHandle_t;
89 
95 typedef void * QueueSetHandle_t;
96 
102 typedef void * QueueSetMemberHandle_t;
103 
104 /* For internal use only. */
105 #define queueSEND_TO_BACK ( ( BaseType_t ) 0 )
106 #define queueSEND_TO_FRONT ( ( BaseType_t ) 1 )
107 #define queueOVERWRITE ( ( BaseType_t ) 2 )
108 
109 /* For internal use only. These definitions *must* match those in queue.c. */
110 #define queueQUEUE_TYPE_BASE ( ( uint8_t ) 0U )
111 #define queueQUEUE_TYPE_SET ( ( uint8_t ) 0U )
112 #define queueQUEUE_TYPE_MUTEX ( ( uint8_t ) 1U )
113 #define queueQUEUE_TYPE_COUNTING_SEMAPHORE ( ( uint8_t ) 2U )
114 #define queueQUEUE_TYPE_BINARY_SEMAPHORE ( ( uint8_t ) 3U )
115 #define queueQUEUE_TYPE_RECURSIVE_MUTEX ( ( uint8_t ) 4U )
116 
185 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
186  #define xQueueCreate( uxQueueLength, uxItemSize ) xQueueGenericCreate( ( uxQueueLength ), ( uxItemSize ), ( queueQUEUE_TYPE_BASE ) )
187 #endif
188 
271 #if( configSUPPORT_STATIC_ALLOCATION == 1 )
272  #define xQueueCreateStatic( uxQueueLength, uxItemSize, pucQueueStorage, pxQueueBuffer ) xQueueGenericCreateStatic( ( uxQueueLength ), ( uxItemSize ), ( pucQueueStorage ), ( pxQueueBuffer ), ( queueQUEUE_TYPE_BASE ) )
273 #endif /* configSUPPORT_STATIC_ALLOCATION */
274 
355 #define xQueueSendToFront( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT )
356 
437 #define xQueueSendToBack( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
438 
521 #define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
522 
604 #define xQueueOverwrite( xQueue, pvItemToQueue ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), 0, queueOVERWRITE )
605 
606 
692 BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION;
693 
788 #define xQueuePeek( xQueue, pvBuffer, xTicksToWait ) xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdTRUE )
789 
821 BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) PRIVILEGED_FUNCTION;
822 
914 #define xQueueReceive( xQueue, pvBuffer, xTicksToWait ) xQueueGenericReceive( ( xQueue ), ( pvBuffer ), ( xTicksToWait ), pdFALSE )
915 
916 
1013 BaseType_t xQueueGenericReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait, const BaseType_t xJustPeek ) PRIVILEGED_FUNCTION;
1014 
1028 UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1029 
1045 UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1046 
1059 void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1060 
1129 #define xQueueSendToFrontFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT )
1130 
1131 
1200 #define xQueueSendToBackFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
1201 
1287 #define xQueueOverwriteFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE )
1288 
1361 #define xQueueSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
1362 
1440 BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION;
1441 BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
1442 
1530 BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
1531 
1532 /*
1533  * Utilities to query queues that are safe to use from an ISR. These utilities
1534  * should be used only from witin an ISR, or within a critical section.
1535  */
1536 BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1537 BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1538 UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1539 
1540 /*
1541  * The functions defined above are for passing data to and from tasks. The
1542  * functions below are the equivalents for passing data to and from
1543  * co-routines.
1544  *
1545  * These functions are called from the co-routine macro implementation and
1546  * should not be called directly from application code. Instead use the macro
1547  * wrappers defined within croutine.h.
1548  */
1549 BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void *pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken );
1550 BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void *pvBuffer, BaseType_t *pxTaskWoken );
1551 BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void *pvItemToQueue, TickType_t xTicksToWait );
1552 BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait );
1553 
1554 /*
1555  * For internal use only. Use xSemaphoreCreateMutex(),
1556  * xSemaphoreCreateCounting() or xSemaphoreGetMutexHolder() instead of calling
1557  * these functions directly.
1558  */
1559 QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) PRIVILEGED_FUNCTION;
1560 QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) PRIVILEGED_FUNCTION;
1561 QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION;
1562 QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) PRIVILEGED_FUNCTION;
1563 void* xQueueGetMutexHolder( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION;
1564 
1565 /*
1566  * For internal use only. Use xSemaphoreTakeMutexRecursive() or
1567  * xSemaphoreGiveMutexRecursive() instead of calling these functions directly.
1568  */
1569 BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
1570 BaseType_t xQueueGiveMutexRecursive( QueueHandle_t pxMutex ) PRIVILEGED_FUNCTION;
1571 
1572 /*
1573  * Reset a queue back to its original empty state. The return value is now
1574  * obsolete and is always set to pdPASS.
1575  */
1576 #define xQueueReset( xQueue ) xQueueGenericReset( xQueue, pdFALSE )
1577 
1578 /*
1579  * The registry is provided as a means for kernel aware debuggers to
1580  * locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add
1581  * a queue, semaphore or mutex handle to the registry if you want the handle
1582  * to be available to a kernel aware debugger. If you are not using a kernel
1583  * aware debugger then this function can be ignored.
1584  *
1585  * configQUEUE_REGISTRY_SIZE defines the maximum number of handles the
1586  * registry can hold. configQUEUE_REGISTRY_SIZE must be greater than 0
1587  * within FreeRTOSConfig.h for the registry to be available. Its value
1588  * does not effect the number of queues, semaphores and mutexes that can be
1589  * created - just the number that the registry can hold.
1590  *
1591  * @param xQueue The handle of the queue being added to the registry. This
1592  * is the handle returned by a call to xQueueCreate(). Semaphore and mutex
1593  * handles can also be passed in here.
1594  *
1595  * @param pcName The name to be associated with the handle. This is the
1596  * name that the kernel aware debugger will display. The queue registry only
1597  * stores a pointer to the string - so the string must be persistent (global or
1598  * preferably in ROM/Flash), not on the stack.
1599  */
1600 #if( configQUEUE_REGISTRY_SIZE > 0 )
1601  void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcName ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
1602 #endif
1603 
1604 /*
1605  * The registry is provided as a means for kernel aware debuggers to
1606  * locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add
1607  * a queue, semaphore or mutex handle to the registry if you want the handle
1608  * to be available to a kernel aware debugger, and vQueueUnregisterQueue() to
1609  * remove the queue, semaphore or mutex from the register. If you are not using
1610  * a kernel aware debugger then this function can be ignored.
1611  *
1612  * @param xQueue The handle of the queue being removed from the registry.
1613  */
1614 #if( configQUEUE_REGISTRY_SIZE > 0 )
1615  void vQueueUnregisterQueue( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1616 #endif
1617 
1618 /*
1619  * The queue registry is provided as a means for kernel aware debuggers to
1620  * locate queues, semaphores and mutexes. Call pcQueueGetName() to look
1621  * up and return the name of a queue in the queue registry from the queue's
1622  * handle.
1623  *
1624  * @param xQueue The handle of the queue the name of which will be returned.
1625  * @return If the queue is in the registry then a pointer to the name of the
1626  * queue is returned. If the queue is not in the registry then NULL is
1627  * returned.
1628  */
1629 #if( configQUEUE_REGISTRY_SIZE > 0 )
1630  const char *pcQueueGetName( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
1631 #endif
1632 
1633 /*
1634  * Generic version of the function used to creaet a queue using dynamic memory
1635  * allocation. This is called by other functions and macros that create other
1636  * RTOS objects that use the queue structure as their base.
1637  */
1638 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
1639  QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) PRIVILEGED_FUNCTION;
1640 #endif
1641 
1642 /*
1643  * Generic version of the function used to creaet a queue using dynamic memory
1644  * allocation. This is called by other functions and macros that create other
1645  * RTOS objects that use the queue structure as their base.
1646  */
1647 #if( configSUPPORT_STATIC_ALLOCATION == 1 )
1648  QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType ) PRIVILEGED_FUNCTION;
1649 #endif
1650 
1651 /*
1652  * Queue sets provide a mechanism to allow a task to block (pend) on a read
1653  * operation from multiple queues or semaphores simultaneously.
1654  *
1655  * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this
1656  * function.
1657  *
1658  * A queue set must be explicitly created using a call to xQueueCreateSet()
1659  * before it can be used. Once created, standard FreeRTOS queues and semaphores
1660  * can be added to the set using calls to xQueueAddToSet().
1661  * xQueueSelectFromSet() is then used to determine which, if any, of the queues
1662  * or semaphores contained in the set is in a state where a queue read or
1663  * semaphore take operation would be successful.
1664  *
1665  * Note 1: See the documentation on http://wwwFreeRTOS.org/RTOS-queue-sets.html
1666  * for reasons why queue sets are very rarely needed in practice as there are
1667  * simpler methods of blocking on multiple objects.
1668  *
1669  * Note 2: Blocking on a queue set that contains a mutex will not cause the
1670  * mutex holder to inherit the priority of the blocked task.
1671  *
1672  * Note 3: An additional 4 bytes of RAM is required for each space in a every
1673  * queue added to a queue set. Therefore counting semaphores that have a high
1674  * maximum count value should not be added to a queue set.
1675  *
1676  * Note 4: A receive (in the case of a queue) or take (in the case of a
1677  * semaphore) operation must not be performed on a member of a queue set unless
1678  * a call to xQueueSelectFromSet() has first returned a handle to that set member.
1679  *
1680  * @param uxEventQueueLength Queue sets store events that occur on
1681  * the queues and semaphores contained in the set. uxEventQueueLength specifies
1682  * the maximum number of events that can be queued at once. To be absolutely
1683  * certain that events are not lost uxEventQueueLength should be set to the
1684  * total sum of the length of the queues added to the set, where binary
1685  * semaphores and mutexes have a length of 1, and counting semaphores have a
1686  * length set by their maximum count value. Examples:
1687  * + If a queue set is to hold a queue of length 5, another queue of length 12,
1688  * and a binary semaphore, then uxEventQueueLength should be set to
1689  * (5 + 12 + 1), or 18.
1690  * + If a queue set is to hold three binary semaphores then uxEventQueueLength
1691  * should be set to (1 + 1 + 1 ), or 3.
1692  * + If a queue set is to hold a counting semaphore that has a maximum count of
1693  * 5, and a counting semaphore that has a maximum count of 3, then
1694  * uxEventQueueLength should be set to (5 + 3), or 8.
1695  *
1696  * @return If the queue set is created successfully then a handle to the created
1697  * queue set is returned. Otherwise NULL is returned.
1698  */
1699 QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION;
1700 
1701 /*
1702  * Adds a queue or semaphore to a queue set that was previously created by a
1703  * call to xQueueCreateSet().
1704  *
1705  * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this
1706  * function.
1707  *
1708  * Note 1: A receive (in the case of a queue) or take (in the case of a
1709  * semaphore) operation must not be performed on a member of a queue set unless
1710  * a call to xQueueSelectFromSet() has first returned a handle to that set member.
1711  *
1712  * @param xQueueOrSemaphore The handle of the queue or semaphore being added to
1713  * the queue set (cast to an QueueSetMemberHandle_t type).
1714  *
1715  * @param xQueueSet The handle of the queue set to which the queue or semaphore
1716  * is being added.
1717  *
1718  * @return If the queue or semaphore was successfully added to the queue set
1719  * then pdPASS is returned. If the queue could not be successfully added to the
1720  * queue set because it is already a member of a different queue set then pdFAIL
1721  * is returned.
1722  */
1723 BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
1724 
1725 /*
1726  * Removes a queue or semaphore from a queue set. A queue or semaphore can only
1727  * be removed from a set if the queue or semaphore is empty.
1728  *
1729  * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this
1730  * function.
1731  *
1732  * @param xQueueOrSemaphore The handle of the queue or semaphore being removed
1733  * from the queue set (cast to an QueueSetMemberHandle_t type).
1734  *
1735  * @param xQueueSet The handle of the queue set in which the queue or semaphore
1736  * is included.
1737  *
1738  * @return If the queue or semaphore was successfully removed from the queue set
1739  * then pdPASS is returned. If the queue was not in the queue set, or the
1740  * queue (or semaphore) was not empty, then pdFAIL is returned.
1741  */
1742 BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
1743 
1744 /*
1745  * xQueueSelectFromSet() selects from the members of a queue set a queue or
1746  * semaphore that either contains data (in the case of a queue) or is available
1747  * to take (in the case of a semaphore). xQueueSelectFromSet() effectively
1748  * allows a task to block (pend) on a read operation on all the queues and
1749  * semaphores in a queue set simultaneously.
1750  *
1751  * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this
1752  * function.
1753  *
1754  * Note 1: See the documentation on http://wwwFreeRTOS.org/RTOS-queue-sets.html
1755  * for reasons why queue sets are very rarely needed in practice as there are
1756  * simpler methods of blocking on multiple objects.
1757  *
1758  * Note 2: Blocking on a queue set that contains a mutex will not cause the
1759  * mutex holder to inherit the priority of the blocked task.
1760  *
1761  * Note 3: A receive (in the case of a queue) or take (in the case of a
1762  * semaphore) operation must not be performed on a member of a queue set unless
1763  * a call to xQueueSelectFromSet() has first returned a handle to that set member.
1764  *
1765  * @param xQueueSet The queue set on which the task will (potentially) block.
1766  *
1767  * @param xTicksToWait The maximum time, in ticks, that the calling task will
1768  * remain in the Blocked state (with other tasks executing) to wait for a member
1769  * of the queue set to be ready for a successful queue read or semaphore take
1770  * operation.
1771  *
1772  * @return xQueueSelectFromSet() will return the handle of a queue (cast to
1773  * a QueueSetMemberHandle_t type) contained in the queue set that contains data,
1774  * or the handle of a semaphore (cast to a QueueSetMemberHandle_t type) contained
1775  * in the queue set that is available, or NULL if no such queue or semaphore
1776  * exists before before the specified block time expires.
1777  */
1778 QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
1779 
1780 /*
1781  * A version of xQueueSelectFromSet() that can be used from an ISR.
1782  */
1783 QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
1784 
1785 /* Not public API functions. */
1786 void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) PRIVILEGED_FUNCTION;
1787 BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) PRIVILEGED_FUNCTION;
1788 void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION;
1789 UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1790 uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
1791 
1792 
1793 #ifdef __cplusplus
1794 }
1795 #endif
1796 
1797 #endif /* QUEUE_H */
1798 
BaseType_t xQueueAddToSet(QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet) PRIVILEGED_FUNCTION
BaseType_t xQueueTakeMutexRecursive(QueueHandle_t xMutex, TickType_t xTicksToWait) PRIVILEGED_FUNCTION
BaseType_t xQueueCRSendFromISR(QueueHandle_t xQueue, const void *pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken)
QueueHandle_t xQueueCreateMutexStatic(const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue) PRIVILEGED_FUNCTION
void vQueueDelete(QueueHandle_t xQueue) PRIVILEGED_FUNCTION
void * QueueSetMemberHandle_t
Queue sets can contain both queues and semaphores, so the QueueSetMemberHandle_t is defined as a type...
Definition: queue.h:102
void vQueueSetQueueNumber(QueueHandle_t xQueue, UBaseType_t uxQueueNumber) PRIVILEGED_FUNCTION
BaseType_t xQueueIsQueueEmptyFromISR(const QueueHandle_t xQueue) PRIVILEGED_FUNCTION
BaseType_t xQueueGenericSend(QueueHandle_t xQueue, const void *const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition) PRIVILEGED_FUNCTION
BaseType_t xQueueGenericReset(QueueHandle_t xQueue, BaseType_t xNewQueue) PRIVILEGED_FUNCTION
void * xQueueGetMutexHolder(QueueHandle_t xSemaphore) PRIVILEGED_FUNCTION
#define vQueueUnregisterQueue(xQueue)
Definition: FreeRTOS.h:316
QueueSetHandle_t xQueueCreateSet(const UBaseType_t uxEventQueueLength) PRIVILEGED_FUNCTION
void * QueueSetHandle_t
Type by which queue sets are referenced.
Definition: queue.h:95
QueueSetMemberHandle_t xQueueSelectFromSet(QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait) PRIVILEGED_FUNCTION
QueueSetMemberHandle_t xQueueSelectFromSetFromISR(QueueSetHandle_t xQueueSet) PRIVILEGED_FUNCTION
#define pcQueueGetName(xQueue)
Definition: FreeRTOS.h:317
#define vQueueAddToRegistry(xQueue, pcName)
Definition: FreeRTOS.h:315
void vQueueWaitForMessageRestricted(QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely) PRIVILEGED_FUNCTION
BaseType_t xQueueGenericSendFromISR(QueueHandle_t xQueue, const void *const pvItemToQueue, BaseType_t *const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition) PRIVILEGED_FUNCTION
BaseType_t xQueueGiveMutexRecursive(QueueHandle_t pxMutex) PRIVILEGED_FUNCTION
UBaseType_t uxQueueGetQueueNumber(QueueHandle_t xQueue) PRIVILEGED_FUNCTION
BaseType_t xQueueCRReceiveFromISR(QueueHandle_t xQueue, void *pvBuffer, BaseType_t *pxTaskWoken)
uint8_t ucQueueGetQueueType(QueueHandle_t xQueue) PRIVILEGED_FUNCTION
void * QueueHandle_t
Type by which queues are referenced.
Definition: queue.h:88
BaseType_t xQueueGiveFromISR(QueueHandle_t xQueue, BaseType_t *const pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
BaseType_t xQueueIsQueueFullFromISR(const QueueHandle_t xQueue) PRIVILEGED_FUNCTION
UBaseType_t uxQueueSpacesAvailable(const QueueHandle_t xQueue) PRIVILEGED_FUNCTION
UBaseType_t uxQueueMessagesWaitingFromISR(const QueueHandle_t xQueue) PRIVILEGED_FUNCTION
BaseType_t xQueueReceiveFromISR(QueueHandle_t xQueue, void *const pvBuffer, BaseType_t *const pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
BaseType_t xQueuePeekFromISR(QueueHandle_t xQueue, void *const pvBuffer) PRIVILEGED_FUNCTION
UBaseType_t uxQueueMessagesWaiting(const QueueHandle_t xQueue) PRIVILEGED_FUNCTION
BaseType_t xQueueCRSend(QueueHandle_t xQueue, const void *pvItemToQueue, TickType_t xTicksToWait)
QueueHandle_t xQueueCreateMutex(const uint8_t ucQueueType) PRIVILEGED_FUNCTION
BaseType_t xQueueRemoveFromSet(QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet) PRIVILEGED_FUNCTION
QueueHandle_t xQueueCreateCountingSemaphoreStatic(const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue) PRIVILEGED_FUNCTION
#define PRIVILEGED_FUNCTION
Definition: mpu_wrappers.h:169
BaseType_t xQueueGenericReceive(QueueHandle_t xQueue, void *const pvBuffer, TickType_t xTicksToWait, const BaseType_t xJustPeek) PRIVILEGED_FUNCTION
BaseType_t xQueueCRReceive(QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait)
QueueHandle_t xQueueCreateCountingSemaphore(const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount) PRIVILEGED_FUNCTION
Definition: FreeRTOS.h:965