5598bec21825e2332a9f0ca840aa1feafd3681f1
[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
10 const u8 motor_lookup[80] =
11 { 1,12,23,34,46,57,68,79,
12  11,22,33,44,56,67,78,89,
13  21,32,43,54,66,77,88,99,
14  31,42,53,64,76,87,98,
15   9,41,52,63,74,86,97,
16   8,19,51,62,73,84,96,
17   7,18,29,61,72,83,94,
18   6,17,28,39,71,82,93,
19   4,16,27,38,49,81,92,
20   3,14,26,37,48,59,91,
21   2,13,24,36,47,58,69,
22 };
23
24 bool is_motor(u8 slot);
25 u8 dispense_motor(u8 slot);
26 void scan_motors();
27
28 #endif /* _MOTORS_H_ */

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