Add pressure sensors
[matches/MCTX3420.git] / server / sensors / pressure.h
diff --git a/server/sensors/pressure.h b/server/sensors/pressure.h
new file mode 100644 (file)
index 0000000..22d1adc
--- /dev/null
@@ -0,0 +1,23 @@
+/**
+ * @file pressure.h
+ * @purpose Declarations for Pressure Sensor functions
+ */
+
+#ifndef _PRESSURE_H
+
+#include "../common.h"
+
+typedef enum
+{
+       PRES_HIGH0,
+       PRES_HIGH1,
+       PRES_LOW0
+} PressureId;
+
+extern bool Pressure_Init(const char * name, int id);
+extern bool Pressure_Cleanup(int id);
+extern bool Pressure_Read(int id, double * value);
+
+#endif //_PRESSURE_H
+
+

UCC git Repository :: git.ucc.asn.au