40.2.2.5 ringbuffer_flush
Flush ring buffer, the user needs to handle the concurrent access on buffer via put/get/flush.
uint32_t ringbuffer_flush(
struct ringbuffer *const rb
)
Parameters
- rb
-
Type: struct ringbuffer Struct *const
The pointer to a ring buffer structure instance
Returns
Type: uint32_t
ERR_NONE on success, or an error code on failure.