MiddleWare GUS

Dependents:   MainTaskGus

Revision:
3:d527bae62c60
Parent:
1:fd355dc296b1
Child:
4:a7da6ca6aef2
--- a/Sensors.h	Wed Dec 09 04:50:13 2015 +0000
+++ b/Sensors.h	Thu Dec 10 05:03:13 2015 +0000
@@ -1,4 +1,9 @@
+#ifndef SENSORS_H_
+#define SENSORS_H_
+
+
 #include "mbed.h"
+#include "ultrasonic.h"
 
 /*Macros*/
 #define BAD_PARAMETER (-1)
@@ -8,8 +13,30 @@
 #define TRUE 1
 #define CLOSED 0
 #define OPEN 1
+#define RANGE 500
 
 
+/*Function Initialization*/
+//START PIR SENSOR INPUT INIT
+static DigitalIn PIR1(D0);
+static DigitalIn PIR2(D1);
+//END PIR SENSOR INPUT INIT
+//START WINDOW SENSOR INPUT
+static DigitalIn W1(D2);
+static DigitalIn W2(D3);
+static DigitalIn W3(D4);
+//END WINDOW SENSOR INPUT INIT
+//START DOOR SENSOR INPUT
+static DigitalIn DOORSensor(D5);
+//END DOOR SENSOR INPUT INIT
+//START LIGHT CONTROL OUTPUT
+static DigitalOut LightControl(D6);
+//END LIGHT CONTROL OUTPUT
+//START LIGHT FEEDBACK INPUT
+static DigitalIn LIGHTSTATUS(D8);
+//END LIGHT FEEDBACK INPUT
+
+ static int PersonNumber;
 
 
 /*Extern Functions*/
@@ -55,4 +82,15 @@
 Input parameters  -> void
 
 Output parameters -> unsigned int PersonNumber; 0 - 4294967296.
-*/
\ No newline at end of file
+*/
+
+////////////////////////////////////////////////////
+extern bool GetLightStatus();
+/* GetLightStatus:
+Input parameters  -> void
+
+Output parameters -> bool LightFeedback;    0-> Light is OFF
+                                            1-> Light is ON
+*/
+
+#endif
\ No newline at end of file