STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
QueueDefinition Struct Reference
Collaboration diagram for QueueDefinition:
[legend]

Public Attributes

int8_t * pcHead
 Points to the beginning of the queue storage area.
int8_t * pcWriteTo
 Points to the free next place in the storage area.
union { 
   QueuePointers_t   xQueue 
 Data required exclusively when this structure is used as a queue. More...
   SemaphoreData_t   xSemaphore 
 Data required exclusively when this structure is used as a semaphore. More...
} u
List_t xTasksWaitingToSend
 List of tasks that are blocked waiting to post onto this queue.
List_t xTasksWaitingToReceive
 List of tasks that are blocked waiting to read from this queue.
volatile UBaseType_t uxMessagesWaiting
 The number of items currently in the queue.
UBaseType_t uxLength
 The length of the queue defined as the number of items it will hold, not the number of bytes.
UBaseType_t uxItemSize
 The size of each items that the queue will hold.
volatile int8_t cRxLock
 Stores the number of items received from the queue (removed from the queue) while the queue was locked.
volatile int8_t cTxLock
 Stores the number of items transmitted to the queue (added to the queue) while the queue was locked.

Detailed Description

Definition at line 100 of file queue.c.

Member Data Documentation

◆ cRxLock

volatile int8_t QueueDefinition::cRxLock

Stores the number of items received from the queue (removed from the queue) while the queue was locked.

Set to queueUNLOCKED when the queue is not locked.

Definition at line 118 of file queue.c.

Referenced by prvUnlockQueue(), xQueueGenericReset(), and xQueueReceiveFromISR().

◆ cTxLock

volatile int8_t QueueDefinition::cTxLock

Stores the number of items transmitted to the queue (added to the queue) while the queue was locked.

Set to queueUNLOCKED when the queue is not locked.

Definition at line 119 of file queue.c.

Referenced by prvUnlockQueue(), xQueueGenericReset(), xQueueGenericSendFromISR(), and xQueueGiveFromISR().

◆ pcHead

int8_t* QueueDefinition::pcHead

Points to the beginning of the queue storage area.

Definition at line 102 of file queue.c.

Referenced by prvCopyDataFromQueue(), prvCopyDataToQueue(), prvInitialiseNewQueue(), and xQueueGenericReset().

◆ pcWriteTo

int8_t* QueueDefinition::pcWriteTo

Points to the free next place in the storage area.

Definition at line 103 of file queue.c.

Referenced by prvCopyDataToQueue(), and xQueueGenericReset().

◆ [union]

◆ uxItemSize

◆ uxLength

UBaseType_t QueueDefinition::uxLength

The length of the queue defined as the number of items it will hold, not the number of bytes.

Definition at line 115 of file queue.c.

Referenced by prvInitialiseNewQueue(), prvIsQueueFull(), uxQueueSpacesAvailable(), xQueueGenericReset(), xQueueGenericSend(), xQueueGenericSendFromISR(), and xQueueIsQueueFullFromISR().

◆ uxMessagesWaiting

◆ xQueue

QueuePointers_t QueueDefinition::xQueue

Data required exclusively when this structure is used as a queue.

Definition at line 107 of file queue.c.

Referenced by prvCopyDataFromQueue(), prvCopyDataToQueue(), xQueueGenericReset(), xQueuePeek(), and xQueuePeekFromISR().

◆ xSemaphore

SemaphoreData_t QueueDefinition::xSemaphore

Data required exclusively when this structure is used as a semaphore.

Definition at line 108 of file queue.c.

Referenced by prvCopyDataToQueue(), xQueueGiveFromISR(), and xQueueSemaphoreTake().

◆ xTasksWaitingToReceive

List_t QueueDefinition::xTasksWaitingToReceive

List of tasks that are blocked waiting to read from this queue.

Stored in priority order.

Definition at line 112 of file queue.c.

Referenced by prvUnlockQueue(), xQueueGenericReset(), xQueueGenericSend(), xQueueGenericSendFromISR(), xQueueGiveFromISR(), xQueuePeek(), xQueueReceive(), and xQueueSemaphoreTake().

◆ xTasksWaitingToSend

List_t QueueDefinition::xTasksWaitingToSend

List of tasks that are blocked waiting to post onto this queue.

Stored in priority order.

Definition at line 111 of file queue.c.

Referenced by prvUnlockQueue(), xQueueGenericReset(), xQueueGenericSend(), xQueueReceive(), xQueueReceiveFromISR(), and xQueueSemaphoreTake().


The documentation for this struct was generated from the following file:
  • firmware/Flight_Computer/Middlewares/Third_Party/FreeRTOS/Source/queue.c