40.2.2.4 ringbuffer_num
Return the element number of ring buffer.
uint32_t ringbuffer_num(
const struct ringbuffer *const rb
)
Parameters
- rb
-
Type: const struct ringbuffer Struct *const
The pointer to a ring buffer structure instance
Returns
Type: uint32_t
The number of elements in ring buffer [0, rb->size]