Expand description
An implementation of STAtically allocated Ring Buffers.
This is a simple ring-buffer structure that lives on the stack,
rather than the heap, so that it can be used in no-std
environments, such as embedded.
Structs§
- Reader
- Consumer of
RingBuffer
. - Ring
Buffer - A lock-free concurrent ring buffer that prevents overwriting data before it is read.
- Writer
- Producer for
Ringbuffer
.
Enums§
- Error
- Errors that can be made when interacting with the ring buffer.
Constants§
- CAPACITY
- Underlying buffer capacity. Needs to be hard-coded for now, because the size of the structure needs to be known at compile time so it can be statically allocated or created on the stack.