xRingbufferReceiveSplit() function
Retrieve a split item from an allow-split ring buffer Attempt to retrieve a split item from an allow-split ring buffer. If the item is not split, only a single item is retried. If the item is split, both parts will be retrieved. This function will block until an item is available or until it times out.
Arguments
xRingbuffer
Ring buffer to retrieve the item from
ppvHeadItem
Double pointer to first part (set to NULL if no items were retrieved)
ppvTailItem
Double pointer to second part (set to NULL if item is not split)
pxHeadItemSize
Pointer to size of first part (unmodified if no items were retrieved)
pxTailItemSize
Pointer to size of second part (unmodified if item is not split)
xTicksToWait
Ticks to wait for items in the ring buffer.
Return value
- pdTRUE if an item (split or unsplit) was retrieved - pdFALSE when no item was retrieved
Notes
Call(s) to vRingbufferReturnItem() is required after this to free up the item(s) retrieved. This function should only be called on allow-split buffers It is possible to receive items with a pxItemSize of 0 on allow split buffers.