Receiver demo for the Manchester encoding library using UART's hardware.
Dependencies: CRC16 ManchesterMsg ManchesterUART mbed
Example of a Manchester code receiver using the ManchesterUART library.
Diff: main.cpp
- Revision:
- 2:5bf6cf198838
- Parent:
- 1:3b3e8080688f
--- a/main.cpp Mon Jul 30 09:42:18 2018 +0000 +++ b/main.cpp Wed Oct 17 16:19:38 2018 +0000 @@ -42,9 +42,7 @@ //printf("Calculated CRC16 = %d\r\n", calcCRC16); //Extract data and CRC16 from the message - msg >> binaryData; - msg >> str; - msg >> recvCRC16; + msg >> binaryData >> str >> recvCRC16; //printf("Received CRC16 = %d\r\n", recvCRC16); printf("\r\n"); @@ -62,4 +60,3 @@ } } } -