A lightweight, thread-safe (Single Producer / Single Consumer) Ring Buffer.
More...
#include <Stm32UartTransport.h>
|
| bool | Put (uint8_t data) |
| | Push a byte into the buffer (Called from ISR).
|
| |
| bool | Get (uint8_t &data) |
| | Pop a byte from the buffer (Called from Consumer Task).
|
| |
| void | Clear () |
| |
template<size_t Size>
class UartRingBuffer< Size >
A lightweight, thread-safe (Single Producer / Single Consumer) Ring Buffer.
- Template Parameters
-
| Size | The size of the buffer in bytes. Must be large enough to hold bursts of data (e.g., 1024 bytes) to prevent overrun. |
◆ Clear()
◆ Get()
Pop a byte from the buffer (Called from Consumer Task).
◆ Put()
Push a byte into the buffer (Called from ISR).
The documentation for this class was generated from the following file: