Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Peripherals Buffer_lib_v2 SD_Lib_EffedUP_ERP Time_Lib_v2 Year3_Version5 BMP280 Network_Lib TextLCD BME280
Buffer/circular_buffer.cpp
- Committer:
- cgogay
- Date:
- 2018-12-07
- Revision:
- 10:fa1c8db4e28c
- Parent:
- 8:dde5976445b4
File content as of revision 10:fa1c8db4e28c:
#include "mbed.h"
#include "data_types.hpp"
#include "platform/CircularBuffer.h"
#define BUF_SIZE 120
class Buffer
{
//Variables
public:
private:
CircularBuffer<SensorData, BUF_SIZE> buf;
protected:
//Functions
public:
Buffer()
{
//char data_stream[] = "DataToBeAddedToBuffer";
}
~Buffer(){}
void write_buffer()
{
if (!buf.full())
{
//buf.push(data)
}
}
void read_buffer()
{
}
void store_buffer()
{
}
private:
protected:
};