Classes | 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:

Go to the source code of this file.

Classes

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

◆ MPU_WRAPPERS_INCLUDED_FROM_API_FILE

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Definition at line 35 of file queue.c.

◆ prvLockQueue

#define prvLockQueue (   pxQueue)
Value:
{ \
if( ( pxQueue )->cRxLock == queueUNLOCKED ) \
{ \
( pxQueue )->cRxLock = queueLOCKED_UNMODIFIED; \
} \
if( ( pxQueue )->cTxLock == queueUNLOCKED ) \
{ \
( pxQueue )->cTxLock = queueLOCKED_UNMODIFIED; \
} \
} \
taskEXIT_CRITICAL()
#define queueLOCKED_UNMODIFIED
Definition: queue.c:54
#define queueUNLOCKED
Definition: queue.c:53
#define taskENTER_CRITICAL()
Definition: task.h:179

Definition at line 233 of file queue.c.

◆ pxMutexHolder

#define pxMutexHolder   pcTail

Definition at line 67 of file queue.c.

◆ queueLOCKED_UNMODIFIED

#define queueLOCKED_UNMODIFIED   ( ( int8_t ) 0 )

Definition at line 54 of file queue.c.

◆ queueMUTEX_GIVE_BLOCK_TIME

#define queueMUTEX_GIVE_BLOCK_TIME   ( ( TickType_t ) 0U )

Definition at line 74 of file queue.c.

◆ queueQUEUE_IS_MUTEX

#define queueQUEUE_IS_MUTEX   NULL

Definition at line 69 of file queue.c.

◆ queueSEMAPHORE_QUEUE_ITEM_LENGTH

#define queueSEMAPHORE_QUEUE_ITEM_LENGTH   ( ( UBaseType_t ) 0 )

Definition at line 73 of file queue.c.

◆ queueUNLOCKED

#define queueUNLOCKED   ( ( int8_t ) -1 )

Definition at line 53 of file queue.c.

◆ queueYIELD_IF_USING_PREEMPTION

#define queueYIELD_IF_USING_PREEMPTION ( )

Definition at line 79 of file queue.c.

◆ uxQueueType

#define uxQueueType   pcHead

Definition at line 68 of file queue.c.

Typedef Documentation

◆ Queue_t

typedef xQUEUE Queue_t

Definition at line 128 of file queue.c.

◆ xQUEUE

typedef struct QueueDefinition xQUEUE

Function Documentation

◆ prvCopyDataFromQueue()

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

Definition at line 2120 of file queue.c.

◆ prvCopyDataToQueue()

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

Definition at line 2041 of file queue.c.

◆ prvInitialiseNewQueue()

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

Definition at line 409 of file queue.c.

◆ prvIsQueueEmpty()

static BaseType_t prvIsQueueEmpty ( const Queue_t pxQueue)
static

Definition at line 2258 of file queue.c.

◆ prvIsQueueFull()

static BaseType_t prvIsQueueFull ( const Queue_t pxQueue)
static

Definition at line 2297 of file queue.c.

◆ prvUnlockQueue()

static void prvUnlockQueue ( Queue_t *const  pxQueue)
static

Definition at line 2138 of file queue.c.

◆ uxQueueMessagesWaiting()

UBaseType_t uxQueueMessagesWaiting ( const QueueHandle_t  xQueue)

Definition at line 1896 of file queue.c.

◆ uxQueueMessagesWaitingFromISR()

UBaseType_t uxQueueMessagesWaitingFromISR ( const QueueHandle_t  xQueue)

Definition at line 1930 of file queue.c.

◆ uxQueueSpacesAvailable()

UBaseType_t uxQueueSpacesAvailable ( const QueueHandle_t  xQueue)

Definition at line 1912 of file queue.c.

◆ vQueueDelete()

void vQueueDelete ( QueueHandle_t  xQueue)

Definition at line 1942 of file queue.c.

◆ xQueueGenericReset()

BaseType_t xQueueGenericReset ( QueueHandle_t  xQueue,
BaseType_t  xNewQueue 
)

Definition at line 248 of file queue.c.

◆ xQueueGenericSend()

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

Definition at line 726 of file queue.c.

◆ xQueueGenericSendFromISR()

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

Definition at line 924 of file queue.c.

◆ xQueueGiveFromISR()

BaseType_t xQueueGiveFromISR ( QueueHandle_t  xQueue,
BaseType_t *const  pxHigherPriorityTaskWoken 
)

Definition at line 1075 of file queue.c.

◆ xQueueIsQueueEmptyFromISR()

BaseType_t xQueueIsQueueEmptyFromISR ( const QueueHandle_t  xQueue)

Definition at line 2279 of file queue.c.

◆ xQueueIsQueueFullFromISR()

BaseType_t xQueueIsQueueFullFromISR ( const QueueHandle_t  xQueue)

Definition at line 2318 of file queue.c.

◆ xQueuePeek()

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

Definition at line 1601 of file queue.c.

◆ xQueuePeekFromISR()

BaseType_t xQueuePeekFromISR ( QueueHandle_t  xQueue,
void *const  pvBuffer 
)

Definition at line 1842 of file queue.c.

◆ xQueueReceive()

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

Definition at line 1240 of file queue.c.

◆ xQueueReceiveFromISR()

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

Definition at line 1751 of file queue.c.

◆ xQueueSemaphoreTake()

BaseType_t xQueueSemaphoreTake ( QueueHandle_t  xQueue,
TickType_t  xTicksToWait 
)

Definition at line 1382 of file queue.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59