Revision 282
new network packet definitions
tooltron.h | ||
---|---|---|
27 | 27 |
#define SERVER 1 |
28 | 28 |
|
29 | 29 |
// These are the bytes used in the messaage types |
30 |
#define TT_GET_KEY 'k' // Get a key from the keyboard |
|
31 |
#define TT_SEND_KEY 's' // Send a Key back (has 1 extra data packet) |
|
32 | 30 |
#define TT_ACK 'a' // Ack |
33 | 31 |
#define TT_NACK 'n' // Nack |
34 |
#define TT_ON 'o' // Turn the tool on |
|
35 |
#define TT_TO 'f' // State timeout |
|
32 |
#define TT_KC 'x' // A transaction containing a key and a card number |
|
33 |
#define TT_GRANT 'q' // Tool access granted |
|
34 |
#define TT_DENY 'f' // Tool access denied |
|
36 | 35 |
#define TT_TIMEOUT 't' // Packet timeout |
37 | 36 |
#define TT_RESET 'r' // Tool reset request |
38 | 37 |
#define TT_BOOT 'b' // Tool boot message |
... | ... | |
41 | 40 |
#define TT_PING 'g' // Ping command |
42 | 41 |
#define TT_BAD 0 // If there was a packet parsing error |
43 | 42 |
|
43 |
// Depricated commands: |
|
44 |
//#define TT_GET_KEY 'k' // Get a key from the keyboard |
|
45 |
//#define TT_SEND_KEY 's' // Send a Key back (has 1 extra data packet) |
|
46 |
//#define TT_ON 'o' // Turn the tool on |
|
44 | 47 |
|
45 | 48 |
// Number of bytes that the PROGx packets have in the payload |
46 | 49 |
#define MAX_PAYLOAD_SIZE 32 |
Also available in: Unified diff