QueuePointers::pcReadFrom is only used within FreeRTOS.
 
Symbols
loading...
Files
loading...

QueuePointers::pcReadFrom field

Syntax

int8_t *pcReadFrom;

References

LocationReferrerText
queue.c:70
int8_t *pcReadFrom; /*< Points to the last place that a queued item was read from when the structure is used as a queue. */
queue.c:266xQueueGenericReset()
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
queue.c:1674xQueuePeek()
pcOriginalReadPosition = pxQueue->u.xQueue.pcReadFrom;
queue.c:1680xQueuePeek()
pxQueue->u.xQueue.pcReadFrom = pcOriginalReadPosition;
queue.c:1912xQueuePeekFromISR()
pcOriginalReadPosition = pxQueue->u.xQueue.pcReadFrom;
queue.c:1914xQueuePeekFromISR()
pxQueue->u.xQueue.pcReadFrom = pcOriginalReadPosition;
queue.c:2115prvCopyDataToQueue()
( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
queue.c:2116prvCopyDataToQueue()
pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
queue.c:2117prvCopyDataToQueue()
if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
queue.c:2119prvCopyDataToQueue()
queue.c:2157prvCopyDataFromQueue()
pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
queue.c:2158prvCopyDataFromQueue()
if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
queue.c:2160prvCopyDataFromQueue()
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
queue.c:2166prvCopyDataFromQueue()
( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */

Data Use

Functions writing QueuePointers::pcReadFrom
Functions reading QueuePointers::pcReadFrom
QueuePointers::pcReadFrom
Type of QueuePointers::pcReadFrom
QueuePointers::pcReadFrom
int8_t
all items filtered out