Final workings
[uccvend-snackrom.git] / ROM2 / motors.h
1 #ifndef _MOTORS_H_
2 #define _MOTORS_H_
3
4 #include "vend.h"
5
6 /* error codes for dispense_motor */
7 #define MOTOR_SUCCESS   0
8 #define MOTOR_NOSLOT    1
9 #define MOTOR_HOME_FAIL 2
10 #define MOTOR_CURRENT_FAIL 3
11 #define MOTOR_VOLTAGE_FAIL 4
12
13 extern const u8 motor_lookup[80];
14
15 bool is_motor(u8 slot);
16 u8 dispense_motor(u8 slot);
17
18 #endif /* _MOTORS_H_ */

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