Ryu Anzawa
/
087_myFEP_RX
FEP RX
Revision 0:05f690a0f3aa, committed 2021-10-15
- Comitter:
- piroro4560
- Date:
- Fri Oct 15 13:38:20 2021 +0000
- Commit message:
- ok
Changed in this revision
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