![]() |
MCUSW
|
SPI Channel configuration structure.
Data Fields | |
uint8 | channelBufType |
uint8 | dataWidth |
uint32 | defaultTxData |
Spi_NumberOfDataType | maxBufLength |
Spi_TransferType | transferType |
uint8 Spi_ChannelConfigType::channelBufType |
Buffer Type IB/EB
uint8 Spi_ChannelConfigType::dataWidth |
Width of clock frame in bits. In case of McSPI, valid values are from 1 to 32 bits.
uint32 Spi_ChannelConfigType::defaultTxData |
Default transmit value when TX buffer is NULL
Spi_NumberOfDataType Spi_ChannelConfigType::maxBufLength |
Max data length for external or internal buffer in SPI words. In case of internal buffers, this represents the number of words to copy from application buffer to internal buffer in case of Spi_WriteIB() API or from internal buffer to application buffer in case of Spi_ReadIB(). The value of this should be less than or equal to the SPI configuration SPI_IB_MAX_LENGTH as this macro is is used for buffer allocation.
Spi_TransferType Spi_ChannelConfigType::transferType |
Start with MSB or LSB. Only MSB is supported.