-
In writing a serial driver for TMC2209 I was using code in st_morpho.c as a guide. Here is a snippet of a function that writes a packet to the TMC2209: Here is the definition of the packets datastructure: Turns out sizeof(TMC_uart_write_datagram_t) is 12, the same as the sizeof(msg). The sum of the elements of msg have a total size of 8. First, is there a way to force msg to somehow pack into 8 bytes? Is there another way to organize the datastructure that would allow using the data[] for transmitting the packet? If I replace the line above with: Anyone have any ideas? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind. I found the pragma in the original source. |
Beta Was this translation helpful? Give feedback.
Never mind. I found the pragma in the original source.