I'm looking for the best way to transmit bytes with the HALCoGen SPI api.
The srcbuff parameter takes a uint16 *
I can set in HALCoGen that the SPI data format length is 8 bits.
Does this send each uint16 as two times a byte, or does this ignore 8 most significant bits of the uint16?
If I want to send 4 byte values, should I create
- - a buffer uint16 TX_Data_Master[2] and expect that the API take care that it send this as 4 bytes, or
- - a buffer uint16 TX_Data_Master[4] and take care that the values don't hold anything bigger than a byte?
Confused :)