UART Driver to receive asynchronous Serial Comms from a Raspberry Pi and parse the results.
Diff: SerialComms.h
- Revision:
- 4:85353bd571f2
- Parent:
- 3:b608ee5b9b5d
- Child:
- 6:74b5ac7719f4
--- a/SerialComms.h Mon Feb 15 20:10:55 2016 +0000 +++ b/SerialComms.h Sat Feb 20 13:26:51 2016 +0000 @@ -2,7 +2,7 @@ #define SERIAL_COMMS_H #define SERIAL_BAUD_RATE 115200 -#define NUM_BYTES_RECEIVING 4 +#define NUM_BYTES_RECEIVING 5 #define TRUE 1 #define FALSE 0 @@ -14,7 +14,7 @@ public: SerialComms(PinName tx,PinName rx); - int *returnMotorSpeeds(); + int *returnCommData(); private: void incomingDataISR();