![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
FIFO.hpp
- Committer:
- thomasmorris
- Date:
- 2018-01-09
- Revision:
- 49:d51f96a46cc3
- Parent:
- 47:6d128e500875
- Child:
- 50:3d61ca637399
File content as of revision 49:d51f96a46cc3:
#ifndef __FIFO_HPP_ #define __FIFO_HPP_ #include "DATA.hpp" #include "mbed.h" #include "rtos.h" //Definition of Data buffer size (120 in specification) #define mailsize 10 //Variables extern DATA Data_Active;//Current data sample extern DATA Data_Buffer[mailsize];//Data buffer extern int Data_Buffer_Write_Pointer; extern int Write_To_Data_Buffer(DATA Data_Store, int Write_Pointer); extern int Write_Pointer; extern Mutex Data_Buffer_Lock; //Functions int Write_Data(DATA Data_Store, int Write_Pointer); DATA Read_Data(int Read_Pointer); void Delete_Data(int Delete_Pointer); #endif