Liam Grazier
/
Final351CW_FINAL
SEND
Fork of 0NicksCoursework_copywithserialtime by
serialtx/stx.hpp@10:098c2fa0a1a6, 2018-01-09 (annotated)
- Committer:
- liam_grazier
- Date:
- Tue Jan 09 11:33:14 2018 +0000
- Revision:
- 10:098c2fa0a1a6
- Parent:
- 8:582ac4c5a524
fin commented
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
liam_grazier | 10:098c2fa0a1a6 | 1 | /* ELEC351 COURSEWORK 2018 |
liam_grazier | 10:098c2fa0a1a6 | 2 | DESIGNED USING MBED ONLINE COMPILER IMPORTED TO KEIL |
liam_grazier | 10:098c2fa0a1a6 | 3 | LIAM GRAZIER // DOUG TILLEY // ALEX BARON |
liam_grazier | 10:098c2fa0a1a6 | 4 | */ |
liam_grazier | 8:582ac4c5a524 | 5 | #ifndef __stx__ |
liam_grazier | 8:582ac4c5a524 | 6 | #define __stx__ |
liam_grazier | 10:098c2fa0a1a6 | 7 | #define SIG_SX 1 //thread signal for serial "SX" thread |
liam_grazier | 10:098c2fa0a1a6 | 8 | void welcomemsg(void);//function for displayign welcome msg on serial terminal |
liam_grazier | 10:098c2fa0a1a6 | 9 | void datain();//function for reading data in from the serial terminal |
liam_grazier | 10:098c2fa0a1a6 | 10 | void useseriel(); //function for using the data in and analysising content |
liam_grazier | 8:582ac4c5a524 | 11 | void readalldata(); //displays date, tim, temperature, presure, ligt |
liam_grazier | 8:582ac4c5a524 | 12 | void deletealldata(); //deletes all memory from th iternal memory |
liam_grazier | 8:582ac4c5a524 | 13 | void setdate(); //sets the day month and year |
liam_grazier | 8:582ac4c5a524 | 14 | void settime(); //sets the clock hours, minutes, seconds |
liam_grazier | 8:582ac4c5a524 | 15 | void setT(); //sets the sampling period to <T> seconds |
liam_grazier | 8:582ac4c5a524 | 16 | void stateon(); //turns ampling ON and OFF |
liam_grazier | 8:582ac4c5a524 | 17 | void stateoff(); //turns ampling ON and OFF |
liam_grazier | 10:098c2fa0a1a6 | 18 | void help(); //shows help display on serial termninal |
liam_grazier | 10:098c2fa0a1a6 | 19 | void loggingon(); //function for enable logging |
liam_grazier | 10:098c2fa0a1a6 | 20 | void loggingoff(); //function for disable logging |
liam_grazier | 10:098c2fa0a1a6 | 21 | void deleten();//function fordeletes the <n> records |
liam_grazier | 10:098c2fa0a1a6 | 22 | void readdata(); //function for read data code |
liam_grazier | 10:098c2fa0a1a6 | 23 | void printcommandlist();//function for printing command list to serial terminal |
liam_grazier | 8:582ac4c5a524 | 24 | #endif |