I am reading the documentation AR1xx_Radar_Interface_Control, specifically the sections regarding the radar message structure (section 2.3) through the SPI message sequence (section 3.2). I am a little bit confused about the byte order in which to send data.
This paragraph:
states that message header and message data that is larger than one byte should be sent in little-endian byte order ie. the least significant byte is sent first. Further down in the document, there is a diagram given that demonstrates sending a SPI message:
It demonstrates sending the SYNC word 0x43211234 by first sending 0x1234 and then sending 0x4321. This suggests breaking a 4B field into two 2B chunks, and sending each 2B chunk in little-endian form.
My question is: if I wanted to transmit a 4B field in the message, 0x12345678, in what byte order should it be sent? Should it be sent as (0x8765, 0x4321), or as (0x4321, 0x8765)?