Final workings
[uccvend-snackrom.git] / ROM2 / motors.h
index c38e908..f44e327 100644 (file)
@@ -1,8 +1,18 @@
 #ifndef _MOTORS_H_
 #define _MOTORS_H_
 
+#include "vend.h"
+
+/* error codes for dispense_motor */
+#define MOTOR_SUCCESS   0
+#define MOTOR_NOSLOT    1
+#define MOTOR_HOME_FAIL 2
+#define MOTOR_CURRENT_FAIL 3
+#define MOTOR_VOLTAGE_FAIL 4
+
+extern const u8 motor_lookup[80];
+
 bool is_motor(u8 slot);
 u8 dispense_motor(u8 slot);
-bool scan_motors();
 
 #endif /* _MOTORS_H_ */

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