|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
A structure to represent a ring buffer. More...
#include <ring_buffer.h>
A structure to represent a ring buffer.
The struct stores the buffer capacity size (N). No slot is sacrificed: read_idx and write_idx are free-running indices in [0, 2N), so the full and empty states are disambiguated by their lap rather than by a reserved slot. The user-visible capacity equals size.