mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Embed: (wiki syntax)

« Back to documentation index

CircularBuffer< T, BufferSize, CounterType > Class Template Reference

CircularBuffer< T, BufferSize, CounterType > Class Template Reference
[Platform]

Templated Circular buffer class. More...

#include <CircularBuffer.h>

Public Member Functions

void push (const T &data)
 Push the transaction to the buffer.
bool pop (T &data)
 Pop the transaction from the buffer.
bool empty ()
 Check if the buffer is empty.
bool full ()
 Check if the buffer is full.
void reset ()
 Reset the buffer.

Detailed Description

template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
class mbed::CircularBuffer< T, BufferSize, CounterType >

Templated Circular buffer class.

Synchronization level: Interrupt safe

Definition at line 30 of file CircularBuffer.h.