X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcontrol.h;h=a1aa5c733a56933939f23c1fe276afa64d106412;hb=18027c718bc45eaa191068da1e739eebeb6111e4;hp=cc8f32753c53dcc4a261e053c6231038cfe3acec;hpb=075b45a5a7c8bb6262521cd66900c9851e633743;p=matches%2FMCTX3420.git diff --git a/server/control.h b/server/control.h index cc8f327..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 -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