This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28388D:SPI 通信

Guru**** 2303350 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1165609/tms320f28388d-spi-communication

器件型号:TMS320F28388D

我希望通过 SPI 发送24位数据、并接收24位数据。

我能否使用以下 API

SPI_transmit24Bits (uint32_t base、uint32_t data、uint16_t txDelay);

SPI_receive24位(uint32_t base、spi_endianess 字节序、uint16_t dummyData、
uint16_t txDelay);

 

在 TI 库中、没有使用上述 API 的可用示例代码。

是否最好使用这些 API 来发送24位数据或仅发送8位(SPI_writeDataNonBlocking ())和逐字节发送数据?

另请共享指向 TI 库的链接、其中包含上述 API 的示例。

请提出建议。请提前感谢。