xRingbufferReceiveSplitFromISR() function
Retrieve a split item from an allow-split ring buffer in an ISR 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 returns immediately if there are no items available for retrieval
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)
Return value
- pdTRUE if an item (split or unsplit) was retrieved - pdFALSE when no item was retrieved
Notes
Calls to vRingbufferReturnItemFromISR() 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.