Liam Grazier
/
Final351CW_FINAL
SEND
Fork of 0NicksCoursework_copywithserialtime by
Diff: serialtx/stx.hpp
- Revision:
- 10:098c2fa0a1a6
- Parent:
- 8:582ac4c5a524
--- a/serialtx/stx.hpp Tue Jan 09 06:14:41 2018 +0000 +++ b/serialtx/stx.hpp Tue Jan 09 11:33:14 2018 +0000 @@ -1,9 +1,13 @@ +/* ELEC351 COURSEWORK 2018 +DESIGNED USING MBED ONLINE COMPILER IMPORTED TO KEIL +LIAM GRAZIER // DOUG TILLEY // ALEX BARON + */ #ifndef __stx__ #define __stx__ -#define SIG_SX 1 -void welcomemsg(void); -void datain(); -void useseriel(); +#define SIG_SX 1 //thread signal for serial "SX" thread +void welcomemsg(void);//function for displayign welcome msg on serial terminal +void datain();//function for reading data in from the serial terminal +void useseriel(); //function for using the data in and analysising content void readalldata(); //displays date, tim, temperature, presure, ligt void deletealldata(); //deletes all memory from th iternal memory void setdate(); //sets the day month and year @@ -11,10 +15,10 @@ void setT(); //sets the sampling period to <T> seconds void stateon(); //turns ampling ON and OFF void stateoff(); //turns ampling ON and OFF -void help(); -void loggingon(); -void loggingoff(); //turns diagnostic logging ON and OFF -void deleten();//deletes the <n> records -void readdata(); -void printcommandlist(); +void help(); //shows help display on serial termninal +void loggingon(); //function for enable logging +void loggingoff(); //function for disable logging +void deleten();//function fordeletes the <n> records +void readdata(); //function for read data code +void printcommandlist();//function for printing command list to serial terminal #endif \ No newline at end of file