Project

General

Profile

Revision b22d9e2f

IDb22d9e2f4c44526a71793730db60e4ca77caa901
Parent e66d0e5c
Child a7a56246

Added by Thomas Mullins over 11 years ago

Changed register/coil addresses to be 1 indexed

View differences:

tooltron_mb.h
6 6
 */
7 7

  
8 8
/* Serial number from rfid reader, or 0 if there is no rfid tag present */
9
#define MB_INP_SERNOL  0
10
#define MB_INP_SERNOH  1
9
#define MB_INP_SERNOL  1
10
#define MB_INP_SERNOH  2
11 11

  
12 12
/* Value from current sensor */
13
#define MB_INP_CURRENT 2
13
#define MB_INP_CURRENT 3
14 14

  
15 15
/*
16 16
 * Coils, 1 bit read/write
......
18 18

  
19 19
/* When 1, there is a new rfid tag in the tool. Automatically cleared when the
20 20
 * main box writes to MB_COIL_EN */
21
#define MB_COIL_NEW     0
21
#define MB_COIL_NEW     1
22 22

  
23 23
/* When 1, the tool receives power. Write 1 or 0 to grant or deny an access
24 24
 * request, respectively. If the tool is running, write 0 to immediately shut
25 25
 * off the tool */
26
#define MB_COIL_EN      1
26
#define MB_COIL_EN      2
27 27

  
28 28
/* Write 1 to request that the tool is disabled soon (what that means will be
29 29
 * determined later) */
30
#define MB_COIL_REQ_DIS 2
30
#define MB_COIL_REQ_DIS 3
31 31

  
32 32
/* When 1, tool has been properly initialized. When 0, tool has lost power and
33 33
 * the main box should rewrite values for current limits (to be implemented
34 34
 * later) */
35
#define MB_COIL_INIT    3
35
#define MB_COIL_INIT    4
36 36

  
37 37
/* Number of coils */
38 38
#define N_COILS 4

Also available in: Unified diff