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.

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Wed Oct 17 16:19:38 2018 +0000
Parent:
1:3b3e8080688f
Commit message:
Number of start patterns in preamble can be set.

Changed in this revision

ManchesterUART.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 3b3e8080688f -r 5bf6cf198838 ManchesterUART.lib
--- a/ManchesterUART.lib	Mon Jul 30 09:42:18 2018 +0000
+++ b/ManchesterUART.lib	Wed Oct 17 16:19:38 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/hudakz/code/ManchesterUART/#b869674fe56e
+https://os.mbed.com/users/hudakz/code/ManchesterUART/#8cb6a0a77e56
diff -r 3b3e8080688f -r 5bf6cf198838 main.cpp
--- 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 @@
         }
     }
 }
-
diff -r 3b3e8080688f -r 5bf6cf198838 mbed.bld
--- a/mbed.bld	Mon Jul 30 09:42:18 2018 +0000
+++ b/mbed.bld	Wed Oct 17 16:19:38 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file