Modification of Mbed-dev library for LQFP48 package microcontrollers: STM32F103C8 (STM32F103C8T6) and STM32F103CB (STM32F103CBT6) (Bluepill boards, Maple mini etc. )

Fork of mbed-STM32F103C8_org by Nothing Special

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.