MCSPI Parameters.
MCSPI Parameters are used to with the MCSPI_open() call. Default values for these parameters are set using MCSPI_OpenParams_init().
If NULL is passed for the parameters, MCSPI_open() uses default parameters.
Data Fields | |
uint32_t | transferMode |
uint32_t | transferTimeout |
MCSPI_CallbackFxn | transferCallbackFxn |
uint32_t | msMode |
int32_t | mcspiDmaIndex |
uint32_t MCSPI_OpenParams::transferMode |
Blocking or Callback mode. Refer MCSPI_TransferMode
uint32_t MCSPI_OpenParams::transferTimeout |
Transfer timeout in system ticks
MCSPI_CallbackFxn MCSPI_OpenParams::transferCallbackFxn |
Callback function pointer
uint32_t MCSPI_OpenParams::msMode |
Master or Slave mode. Refer MCSPI_MsMode
int32_t MCSPI_OpenParams::mcspiDmaIndex |
Index of DMA instance used by MCSPI Driver. This index will be set by SysCfg according to the DMA driver chosen. The MCSPI driver uses this index to do an MCSPI_dmaOpen inside the MCSPI_open if the DMA mode is enabled