Question:
Define arguments in ADI_SPI_TRANSCEIVER structure
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Answer:
SPI transceiver structure contains the functional elements used to implement the SPI transceiver model. The SPI driver uses a transceiver model to transmit and receive data across the SPI.
The transceiver includes a prologue buffer and size, a transmit buffer and size and a receive buffer and size. The prologue buffer is used to transmit opcode commands, addressing or mode fields to a slave SPI. The transmit or receiver buffers can be used to either write or read data packets to/from the SPI slave device.
The prologue buffer is optional (set to NULL with a zero size if not required) and can be used to send common SPI header or protocol fields.