#include <CircularBuffer.h>
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
class mbed::CircularBuffer< T, BufferSize, CounterType >
Templated Circular buffer class
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
Check if the buffer is empty
- Returns
- True if the buffer is empty, false if not
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
Check if the buffer is full
- Returns
- True if the buffer is full, false if not
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
Pop the transaction from the buffer
- Parameters
-
data | Data to be pushed to the buffer |
- Returns
- True if the buffer is not empty and data contains a transaction, false otherwise
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
Push the transaction to the buffer. This overwrites the buffer if it's full
- Parameters
-
data | Data to be pushed to the buffer |
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
The documentation for this class was generated from the following file: