X-Git-Url: https://git.ucc.asn.au/?p=uccvend-snackrom.git;a=blobdiff_plain;f=ROM2%2Fmotors.h;h=f44e327b93fd597e65a0dc5ddb3a8193daefbb14;hp=c38e90848faebeb8191e0023eccec53728873108;hb=293827a53b325c2faffddcba380b6f0c19da802a;hpb=05333de42083420af87bbd629e90956231dc963c diff --git a/ROM2/motors.h b/ROM2/motors.h index c38e908..f44e327 100644 --- a/ROM2/motors.h +++ b/ROM2/motors.h @@ -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_ */