![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
MBED Framework with communication to be tested
SPICOMMANDS.h@4:85bc76bb6fdb, 2017-07-23 (annotated)
- Committer:
- AndrewLouw
- Date:
- Sun Jul 23 20:29:38 2017 +0000
- Revision:
- 4:85bc76bb6fdb
- Parent:
- 0:a32d085719df
Republish MBED 145
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndrewLouw | 0:a32d085719df | 1 | |
AndrewLouw | 0:a32d085719df | 2 | |
AndrewLouw | 0:a32d085719df | 3 | //Slave list |
AndrewLouw | 0:a32d085719df | 4 | |
AndrewLouw | 0:a32d085719df | 5 | #define ERROR 0x00 |
AndrewLouw | 0:a32d085719df | 6 | |
AndrewLouw | 0:a32d085719df | 7 | #define MEGA1 0x01 |
AndrewLouw | 0:a32d085719df | 8 | #define MEGA2 0x02 |
AndrewLouw | 0:a32d085719df | 9 | #define MEGA3 0x03 |
AndrewLouw | 0:a32d085719df | 10 | |
AndrewLouw | 0:a32d085719df | 11 | // each mega needs its own number they must all be different. |
AndrewLouw | 0:a32d085719df | 12 | |
AndrewLouw | 0:a32d085719df | 13 | |
AndrewLouw | 0:a32d085719df | 14 | |
AndrewLouw | 0:a32d085719df | 15 | // NOTE: This must match the command list in the MEGA headder. |
AndrewLouw | 0:a32d085719df | 16 | |
AndrewLouw | 0:a32d085719df | 17 | // command list |
AndrewLouw | 0:a32d085719df | 18 | |
AndrewLouw | 0:a32d085719df | 19 | #define ERROR 0x00 |
AndrewLouw | 0:a32d085719df | 20 | #define MOTOR_GOTO 0x01 |
AndrewLouw | 0:a32d085719df | 21 | #define ENCODER_READ 0X02 |
AndrewLouw | 0:a32d085719df | 22 | |
AndrewLouw | 0:a32d085719df | 23 | |
AndrewLouw | 0:a32d085719df | 24 |