This is the final version of Mini Gateway for Automation and Security desgined for Renesas GR Peach Design Contest

Dependencies:   GR-PEACH_video GraphicsFramework HTTPServer R_BSP mbed-rpc mbed-rtos Socket lwip-eth lwip-sys lwip FATFileSystem

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

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.