mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Add a note to specify that two calls to RingbufferReceive are required in wrap mode
This commit is contained in:
@@ -255,6 +255,7 @@ void *xRingbufferReceive(RingbufHandle_t xRingbuffer, size_t *pxItemSize, TickTy
|
|||||||
*
|
*
|
||||||
* @note A call to vRingbufferReturnItemFromISR() is required after this to free the item retrieved.
|
* @note A call to vRingbufferReturnItemFromISR() is required after this to free the item retrieved.
|
||||||
* @note Byte buffers do not allow multiple retrievals before returning an item
|
* @note Byte buffers do not allow multiple retrievals before returning an item
|
||||||
|
* @note Two calls to RingbufferReceiveFromISR() are required if the bytes wrap around the end of the ring buffer.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* - Pointer to the retrieved item on success; *pxItemSize filled with the length of the item.
|
* - Pointer to the retrieved item on success; *pxItemSize filled with the length of the item.
|
||||||
@@ -333,6 +334,7 @@ BaseType_t xRingbufferReceiveSplitFromISR(RingbufHandle_t xRingbuffer,
|
|||||||
* @note A call to vRingbufferReturnItem() is required after this to free up the data retrieved.
|
* @note A call to vRingbufferReturnItem() is required after this to free up the data retrieved.
|
||||||
* @note This function should only be called on byte buffers
|
* @note This function should only be called on byte buffers
|
||||||
* @note Byte buffers do not allow multiple retrievals before returning an item
|
* @note Byte buffers do not allow multiple retrievals before returning an item
|
||||||
|
* @note Two calls to RingbufferReceiveUpTo() are required if the bytes wrap around the end of the ring buffer.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* - Pointer to the retrieved item on success; *pxItemSize filled with
|
* - Pointer to the retrieved item on success; *pxItemSize filled with
|
||||||
|
@@ -210,6 +210,9 @@ using :cpp:func:`xRingbufferReceiveUpTo` and :cpp:func:`vRingbufferReturnItem`
|
|||||||
For ISR safe versions of the functions used above, call :cpp:func:`xRingbufferSendFromISR`, :cpp:func:`xRingbufferReceiveFromISR`,
|
For ISR safe versions of the functions used above, call :cpp:func:`xRingbufferSendFromISR`, :cpp:func:`xRingbufferReceiveFromISR`,
|
||||||
:cpp:func:`xRingbufferReceiveSplitFromISR`, :cpp:func:`xRingbufferReceiveUpToFromISR`, and :cpp:func:`vRingbufferReturnItemFromISR`
|
:cpp:func:`xRingbufferReceiveSplitFromISR`, :cpp:func:`xRingbufferReceiveUpToFromISR`, and :cpp:func:`vRingbufferReturnItemFromISR`
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Two calls to RingbufferReceive[UpTo][FromISR]() are required if the bytes wraps around the end of the ring buffer.
|
||||||
|
|
||||||
Sending to Ring Buffer
|
Sending to Ring Buffer
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Reference in New Issue
Block a user