Library set up as dummy module on mbed to mimic Nordic.
protocol.h@0:226550611f0d, 2016-12-12 (annotated)
- Committer:
- Stephen_NewVistas
- Date:
- Mon Dec 12 23:06:58 2016 +0000
- Revision:
- 0:226550611f0d
Got system working on bus, calling registered functions with ACK/NACK/RESPONSE. Need to clean up.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Stephen_NewVistas | 0:226550611f0d | 1 | #ifndef PROTOCOL_H |
| Stephen_NewVistas | 0:226550611f0d | 2 | #define PROTOCOL_H |
| Stephen_NewVistas | 0:226550611f0d | 3 | |
| Stephen_NewVistas | 0:226550611f0d | 4 | |
| Stephen_NewVistas | 0:226550611f0d | 5 | #define START 0x00 |
| Stephen_NewVistas | 0:226550611f0d | 6 | #define DEVICEADDRESS 0x01 |
| Stephen_NewVistas | 0:226550611f0d | 7 | #define SOURCEADD 0x02 |
| Stephen_NewVistas | 0:226550611f0d | 8 | #define POLL 0x03 |
| Stephen_NewVistas | 0:226550611f0d | 9 | #define COLLECTCOMMAND 0x04 |
| Stephen_NewVistas | 0:226550611f0d | 10 | #define COLLECTCOUNT1 0x05 |
| Stephen_NewVistas | 0:226550611f0d | 11 | #define COLLECTCOUNT2 0x06 |
| Stephen_NewVistas | 0:226550611f0d | 12 | #define COLLECTPACKET 0x07 |
| Stephen_NewVistas | 0:226550611f0d | 13 | #define COLLECTCHECKSUM 0x08 |
| Stephen_NewVistas | 0:226550611f0d | 14 | #define HANDLEESCAPE 0x20 |
| Stephen_NewVistas | 0:226550611f0d | 15 | #define STARTPACK 0x7F |
| Stephen_NewVistas | 0:226550611f0d | 16 | #define STARTPOLL 0x8F |
| Stephen_NewVistas | 0:226550611f0d | 17 | #define ESCAPE 0x8E |
| Stephen_NewVistas | 0:226550611f0d | 18 | #define ACKCHAR 0x8D |
| Stephen_NewVistas | 0:226550611f0d | 19 | #define NAKCHAR 0x8C |
| Stephen_NewVistas | 0:226550611f0d | 20 | #define RESPONSE 0x8E //#SCD #RESPONSE |
| Stephen_NewVistas | 0:226550611f0d | 21 | |
| Stephen_NewVistas | 0:226550611f0d | 22 | #endif // PROTOCOL_H |