git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #35 from Callum-/master
[matches/MCTX3420.git]
/
server
/
control.h
diff --git
a/server/control.h
b/server/control.h
index
af61066
..
a1aa5c7
100644
(file)
--- 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
#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
#endif
UCC
git Repository :: git.ucc.asn.au