Merge pull request #35 from Callum-/master
[matches/MCTX3420.git] / server / control.h
index af61066..a1aa5c7 100644 (file)
@@ -1,7 +1,23 @@
+/**
+ * @file control.h
+ * @brief Header file for control functions
+ */
 #ifndef _CONTROL_H
 #define _CONTROL_H
 
-extern void Control_Handler(FCGIContext *context, char *params);
+/** Number of actuators **/
+#define NUMACTUATORS 2
+
+/** List of actuator ids (should be of size NUMACTUATORS) **/
+typedef enum ActuatorId {
+       ACT_PRESSURE,
+       ACT_SOLENOID1
+} ActuatorId;
 
+/** Human readable names for the actuator ids **/
+extern const char * g_actuator_names[NUMACTUATORS];
+
+/** ID codes for all the actuators **/
+extern void Control_Handler(FCGIContext *context, char *params);
 
 #endif

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