Other Parts Discussed in Thread: TMS320C5515
Hello folks,
on reading the CSL documentation for the SPI port, I see that a SPI_dataTransaction function is provided to facilitate communications with SPI based peripherals.
The documentation for this function indicates that four parameters are to be passed, one is the handle, the second is a pointer to a read or write buffer defined as an array of size Uint16, the third parameter is the buffer length and teh last parameter is a "readOrWrite" command indicator.
The SPI port in the TMS320C5515 provides two 16 bit shift registers SPI_DAT2 and SPI_DAT1 that can be concatinated to support character lengths up to 32 bits.
I am looking to understand how the values passed into the function via the read or write buffer array gets loaded into SPI_DAT2 and SPI_DAT1.
Can anyone shed some light onto how the array values are transferred into the 16 bit registers SPI_DAT2 and SPI_DAT1?
Also, what is the relationship between the character length and the buffer length?
Thanks once more in anticipation of your replies.....David