MAJOR refactoring of Sensors code
[matches/MCTX3420.git] / server / sensors / strain.h
diff --git a/server/sensors/strain.h b/server/sensors/strain.h
new file mode 100644 (file)
index 0000000..1afb625
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _STRAIN_H
+#define _STRAIN_H
+
+#include <stdbool.h>
+
+/**
+ * Enum of strain IDs
+ */
+typedef enum
+{
+       STRAIN0,
+       STRAIN1,        
+       STRAIN2,
+       STRAIN3
+} StrainID;
+
+// Initialise a strain gauge
+extern bool Strain_Init(const char * name, int id);
+// Read from a strain gauge
+extern bool Strain_Read(int id, double * value);
+
+#endif //_STRAIN_H

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