FEP RX

Dependencies:   mbed myFEP

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Fri Oct 15 13:38:20 2021 +0000
Commit message:
ok

Changed in this revision

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
myFEP.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 05f690a0f3aa main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 15 13:38:20 2021 +0000
@@ -0,0 +1,21 @@
+/**
+ *  @file   main.cpp
+ *  @brief  FEP受信側プログラム
+ *  @author 安澤瑠
+ *  @date   21/10/11
+ */
+#include "mbed.h"
+#include "FEP.h"
+
+myFEP fep(D1, D0, 005);
+Serial pc(USBTX, USBRX, 115200);
+
+int main() {
+    fep.StartReceive();
+    uint8_t data[256];
+    uint8_t temp;
+    while (1) {
+        temp = fep.GetData(data);
+        pc.printf("%3d | %3d | %3d | %3d | %3d\r\n", data[3], data[4], data[5], data[6], fep.status);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 05f690a0f3aa mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 15 13:38:20 2021 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/d75b3fe1f5cb
\ No newline at end of file
diff -r 000000000000 -r 05f690a0f3aa myFEP.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/myFEP.lib	Fri Oct 15 13:38:20 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/piroro4560/code/myFEP/#8d754f144b96