Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning

Dependencies:   BME280 BMP280 TextLCD

Working Repository

Committer:
thomasmorris
Date:
Tue Jan 09 11:41:07 2018 +0000
Revision:
49:d51f96a46cc3
Parent:
47:6d128e500875
Child:
50:3d61ca637399
SD Card Working;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 47:6d128e500875 1 #ifndef __FIFO_HPP_
thomasmorris 47:6d128e500875 2 #define __FIFO_HPP_
thomasmorris 47:6d128e500875 3 #include "DATA.hpp"
thomasmorris 47:6d128e500875 4 #include "mbed.h"
thomasmorris 47:6d128e500875 5 #include "rtos.h"
thomasmorris 47:6d128e500875 6 //Definition of Data buffer size (120 in specification)
thomasmorris 49:d51f96a46cc3 7 #define mailsize 10
thomasmorris 47:6d128e500875 8
thomasmorris 47:6d128e500875 9 //Variables
thomasmorris 47:6d128e500875 10
thomasmorris 47:6d128e500875 11 extern DATA Data_Active;//Current data sample
thomasmorris 47:6d128e500875 12 extern DATA Data_Buffer[mailsize];//Data buffer
thomasmorris 47:6d128e500875 13 extern int Data_Buffer_Write_Pointer;
thomasmorris 47:6d128e500875 14 extern int Write_To_Data_Buffer(DATA Data_Store, int Write_Pointer);
thomasmorris 47:6d128e500875 15 extern int Write_Pointer;
thomasmorris 47:6d128e500875 16 extern Mutex Data_Buffer_Lock;
thomasmorris 47:6d128e500875 17
thomasmorris 47:6d128e500875 18 //Functions
thomasmorris 47:6d128e500875 19 int Write_Data(DATA Data_Store, int Write_Pointer);
thomasmorris 47:6d128e500875 20 DATA Read_Data(int Read_Pointer);
thomasmorris 47:6d128e500875 21 void Delete_Data(int Delete_Pointer);
thomasmorris 47:6d128e500875 22 #endif