Project

General

Profile

Revision 7bdb98c5

ID7bdb98c5c7f6b44c764f8dd3620f7da270cfd830
Parent ec0eab37
Child 208a6fb2

Added by Thomas Mullins over 11 years ago

Initial commit of mainbox code.

View differences:

tooltron_mb.h
16 16
 * Coils, 1 bit read/write
17 17
 */
18 18

  
19
/* When 1, there is a new rfid tag in the tool. The main box should either
20
 * write 1 to MB_COIL_EN, which automatically clears MB_COIL_NEW, or it should
21
 * write 0 directly to MB_COIL_NEW which denies the request */
19
/* When 1, there is a new rfid tag in the tool. Automatically cleared when the
20
 * main box writes to MB_COIL_EN */
22 21
#define MB_COIL_NEW     0
23 22

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

  
27 28
/* Write 1 to request that the tool is disabled soon (what that means will be
......
33 34
 * later) */
34 35
#define MB_COIL_INIT    3
35 36

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

  
36 40
/*
37 41
 * Other things
38 42
 */

Also available in: Unified diff