Ryu Anzawa
/
087_myFEP_RX
FEP RX
Diff: main.cpp
- Revision:
- 0:05f690a0f3aa
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