Merge branch 'master' of github:szmoore/MCTX3420
[matches/MCTX3420.git] / server / control.h
index cc8f327..a1aa5c7 100644 (file)
@@ -1,7 +1,23 @@
+/**
+ * @file control.h
+ * @brief Header file for control functions
+ */
 #ifndef _CONTROL_H
 #define _CONTROL_H
 
-typedef enum Actuators {ACT_NONE = -1, ACT_PREG = 0, ACT_SOLENOID1} Actuators;
+/** 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