Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
SERIAL.hpp@48:244d6d81bb52, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 00:37:01 2018 +0000
- Revision:
- 48:244d6d81bb52
- Parent:
- 47:6d128e500875
- Child:
- 52:99915f5240b2
HOLY SHIT IT WORKS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 25:36699ed589ab | 1 | #ifndef SERIAL_HPP //Known as header guards |
thomasmorris | 25:36699ed589ab | 2 | #define SERIAL_HPP |
thomasmorris | 25:36699ed589ab | 3 | |
thomasmorris | 25:36699ed589ab | 4 | #include "mbed.h" |
thomasmorris | 25:36699ed589ab | 5 | #include <iostream> |
thomasmorris | 47:6d128e500875 | 6 | #include "FIFO.hpp" |
thomasmorris | 25:36699ed589ab | 7 | using namespace std; |
thomasmorris | 25:36699ed589ab | 8 | |
thomasmorris | 25:36699ed589ab | 9 | void DELETE_ALL(); |
thomasmorris | 25:36699ed589ab | 10 | void READ_n(); |
thomasmorris | 25:36699ed589ab | 11 | void DELETE_n(); |
thomasmorris | 25:36699ed589ab | 12 | float SETDATE(); |
thomasmorris | 25:36699ed589ab | 13 | float SETT();//Set the sampling rate |
thomasmorris | 25:36699ed589ab | 14 | void STATE();//Start or Stop sampling |
thomasmorris | 48:244d6d81bb52 | 15 | void LOGGING(); |
thomasmorris | 47:6d128e500875 | 16 | static Serial pc(USBTX, USBRX);//Define serial namespace so the serial comms can be printed to |
thomasmorris | 48:244d6d81bb52 | 17 | extern int Log_Value;//Value of the Log |
thomasmorris | 47:6d128e500875 | 18 | |
thomasmorris | 47:6d128e500875 | 19 | bool Decimal_Check(char Input[100]); |
thomasmorris | 47:6d128e500875 | 20 | |
thomasmorris | 47:6d128e500875 | 21 | int Decimal_Position(char Input[100]); |
thomasmorris | 25:36699ed589ab | 22 | |
thomasmorris | 25:36699ed589ab | 23 | |
thomasmorris | 25:36699ed589ab | 24 | #endif |