SPI Master/Slave communication between two NUCLEO module. You can send objects ( float, text, ..etc) between them. These projects should be used together: SPI_NUCLEO_MASTER SPI_NUCLEO_SLAVE
Diff: main.cpp
- Revision:
- 1:39accdbe3208
- Parent:
- 0:65e85b7b26c1
- Child:
- 2:06274adb4f7a
--- a/main.cpp Tue Dec 05 10:30:45 2017 +0000 +++ b/main.cpp Wed Dec 06 08:44:47 2017 +0000 @@ -19,10 +19,10 @@ typedef unsigned char byte; -typedef union SPI_Packet_t{ +typedef union { float sensor; byte SPI_Packet[sizeof(float)]; -}; +}SPI_Packet_t; unsigned short tem; int i; unsigned int paSize;