X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcontrol.h;h=a1aa5c733a56933939f23c1fe276afa64d106412;hb=b3638d094c76e4e64c8807459641afe1674ce30a;hp=af6106629cf9d8d0f32f78a09cb62a1d7afcf179;hpb=0a7664de84e25474991ead0d76dc9aea58e61aba;p=matches%2FMCTX3420.git diff --git a/server/control.h b/server/control.h index af61066..a1aa5c7 100644 --- a/server/control.h +++ b/server/control.h @@ -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