![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
SERIAL.hpp@47:6d128e500875, 2018-01-08 (annotated)
- Committer:
- thomasmorris
- Date:
- Mon Jan 08 21:53:40 2018 +0000
- Revision:
- 47:6d128e500875
- Parent:
- 25:36699ed589ab
- Child:
- 48:244d6d81bb52
FINAL working copy
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 | 25:36699ed589ab | 15 | void LOGGING(); |
thomasmorris | 25:36699ed589ab | 16 | void HELP(); |
thomasmorris | 47:6d128e500875 | 17 | static Serial pc(USBTX, USBRX);//Define serial namespace so the serial comms can be printed to |
thomasmorris | 47:6d128e500875 | 18 | static int Log_Value = 0;//Value of the Log |
thomasmorris | 47:6d128e500875 | 19 | |
thomasmorris | 47:6d128e500875 | 20 | bool Decimal_Check(char Input[100]); |
thomasmorris | 47:6d128e500875 | 21 | |
thomasmorris | 47:6d128e500875 | 22 | int Decimal_Position(char Input[100]); |
thomasmorris | 25:36699ed589ab | 23 | |
thomasmorris | 25:36699ed589ab | 24 | |
thomasmorris | 25:36699ed589ab | 25 | #endif |