Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Revision:
52:99915f5240b2
Parent:
34:c0b8705f183d
diff -r 47f5db68500b -r 99915f5240b2 TIME.hpp
--- a/TIME.hpp	Tue Jan 09 15:15:08 2018 +0000
+++ b/TIME.hpp	Tue Jan 09 22:27:49 2018 +0000
@@ -1,12 +1,17 @@
-#ifndef _TIME_HPP_ //Known as header guards
+/*
+This is where we control the Time of the MicroController and the DATA
+*/
+
+#ifndef _TIME_HPP_//Header Guards Prevents Multiple includes
 #define _TIME_HPP_
-
+//Libraries and header includes
 #include "mbed.h"
 #include "rtos.h"
 #include <string>
 #include <iostream>
 #include <sstream>
 
+//Definitions of Parameters according to the UNIX time standard
 #define Days_In_Month 30.436875
 #define second 1
 #define minute 60
@@ -16,20 +21,20 @@
 #define month 2629743
 #define year 31556926
 
-int get_current_time();
-void set_new_date(int days, int months, int years);
-void set_new_time(int hours, int minutes, int seconds);
-void Add_Second();
-void Subtract_Second();
-void Add_Minute();
-void Subtract_Minute();
-void Add_Hour();
-void Subtract_Hour();
-void Add_Day();
-void Subtract_Day();
-void Add_Month();
-void Subtract_Month();
-void Add_Year();
-void Subtract_Year();
+int get_current_time();                                 //Returns Current time
+void set_new_date(int days, int months, int years);     //Sets the day,month and year
+void set_new_time(int hours, int minutes, int seconds); //Sets the hour, minute and seconds
+void Add_Second();                                      //Adds a seconds to time
+void Subtract_Second();                                 //Subtracts a second from time
+void Add_Minute();                                      //Add a minute to time
+void Subtract_Minute();                                 //Subtracts a minute from time
+void Add_Hour();                                        //Adds an hour to time
+void Subtract_Hour();                                   //Subtracts an hour from time
+void Add_Day();                                         //Add a day to time
+void Subtract_Day();                                    //Subtracts a day from time
+void Add_Month();                                       //Adds a month to time
+void Subtract_Month();                                  //Subtracts a month to time
+void Add_Year();                                        //Add a year to time
+void Subtract_Year();                                   //Subtracts a year from time
 
 #endif
\ No newline at end of file