XDK API  3.6.0
Documentation
Data Structures | Macros | Typedefs | Functions
queue.c File Reference
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
+ Include dependency graph for queue.c:

Data Structures

struct  QueueDefinition
 

Macros

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
 
#define prvLockQueue(pxQueue)
 
#define pxMutexHolder   pcTail
 
#define queueLOCKED_UNMODIFIED   ( ( int8_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   ( ( int8_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 void prvInitialiseNewQueue (const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue) 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)
 
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 xQueuePeek (QueueHandle_t xQueue, void *const pvBuffer, TickType_t xTicksToWait)
 
BaseType_t xQueuePeekFromISR (QueueHandle_t xQueue, void *const pvBuffer)
 
BaseType_t xQueueReceive (QueueHandle_t xQueue, void *const pvBuffer, TickType_t xTicksToWait)
 
BaseType_t xQueueReceiveFromISR (QueueHandle_t xQueue, void *const pvBuffer, BaseType_t *const pxHigherPriorityTaskWoken)
 
BaseType_t xQueueSemaphoreTake (QueueHandle_t xQueue, TickType_t xTicksToWait)
 

Macro Definition Documentation

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
#define prvLockQueue (   pxQueue)
Value:
{ \
if( ( pxQueue )->cRxLock == queueUNLOCKED ) \
{ \
( pxQueue )->cRxLock = queueLOCKED_UNMODIFIED; \
} \
if( ( pxQueue )->cTxLock == queueUNLOCKED ) \
{ \
( pxQueue )->cTxLock = queueLOCKED_UNMODIFIED; \
} \
} \
#define queueLOCKED_UNMODIFIED
Definition: queue.c:53
#define taskEXIT_CRITICAL()
Definition: task.h:193
#define queueUNLOCKED
Definition: queue.c:52
#define taskENTER_CRITICAL()
Definition: task.h:178
#define pxMutexHolder   pcTail
#define queueLOCKED_UNMODIFIED   ( ( int8_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   ( ( int8_t ) -1 )
#define queueYIELD_IF_USING_PREEMPTION ( )
#define uxQueueType   pcHead

Typedef Documentation

typedef xQUEUE Queue_t
typedef struct QueueDefinition xQUEUE

Function Documentation

static void prvCopyDataFromQueue ( Queue_t *const  pxQueue,
void *const  pvBuffer 
)
static

+ Here is the caller graph for this function:

static BaseType_t prvCopyDataToQueue ( Queue_t *const  pxQueue,
const void *  pvItemToQueue,
const BaseType_t  xPosition 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void prvInitialiseNewQueue ( const UBaseType_t  uxQueueLength,
const UBaseType_t  uxItemSize,
uint8_t *  pucQueueStorage,
const uint8_t  ucQueueType,
Queue_t pxNewQueue 
)
static

+ Here is the call graph for this function:

static BaseType_t prvIsQueueEmpty ( const Queue_t pxQueue)
static

+ Here is the caller graph for this function:

static BaseType_t prvIsQueueFull ( const Queue_t pxQueue)
static

+ Here is the caller graph for this function:

static void prvUnlockQueue ( Queue_t *const  pxQueue)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this 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)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BaseType_t xQueueGenericReset ( QueueHandle_t  xQueue,
BaseType_t  xNewQueue 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BaseType_t xQueueGenericSend ( QueueHandle_t  xQueue,
const void *const  pvItemToQueue,
TickType_t  xTicksToWait,
const BaseType_t  xCopyPosition 
)

+ Here is the call graph for this function:

BaseType_t xQueueGenericSendFromISR ( QueueHandle_t  xQueue,
const void *const  pvItemToQueue,
BaseType_t *const  pxHigherPriorityTaskWoken,
const BaseType_t  xCopyPosition 
)

+ Here is the call graph for this function:

BaseType_t xQueueGiveFromISR ( QueueHandle_t  xQueue,
BaseType_t *const  pxHigherPriorityTaskWoken 
)

+ Here is the call graph for this function:

BaseType_t xQueueIsQueueEmptyFromISR ( const QueueHandle_t  xQueue)
BaseType_t xQueueIsQueueFullFromISR ( const QueueHandle_t  xQueue)
BaseType_t xQueuePeek ( QueueHandle_t  xQueue,
void *const  pvBuffer,
TickType_t  xTicksToWait 
)

+ Here is the call graph for this function:

BaseType_t xQueuePeekFromISR ( QueueHandle_t  xQueue,
void *const  pvBuffer 
)

+ Here is the call graph for this function:

BaseType_t xQueueReceive ( QueueHandle_t  xQueue,
void *const  pvBuffer,
TickType_t  xTicksToWait 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BaseType_t xQueueReceiveFromISR ( QueueHandle_t  xQueue,
void *const  pvBuffer,
BaseType_t *const  pxHigherPriorityTaskWoken 
)

+ Here is the call graph for this function:

BaseType_t xQueueSemaphoreTake ( QueueHandle_t  xQueue,
TickType_t  xTicksToWait 
)

+ Here is the call graph for this function:


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:45 by doxygen 1.8.8