PDK API Guide for J721E
MCSPI_Params Struct Reference

Detailed Description

MCSPI Parameters.

MCSPI Parameters are used to with the MCSPI_open() call. Default values for these parameters are set using MCSPI_Params_init().

See also
MCSPI_Params_init()

Data Fields

SPI_TransferMode transferMode
 
uint32_t transferTimeout
 
MCSPI_CallbackFxn transferCallbackFxn
 
SPI_Mode mode
 
uint32_t bitRate
 
uint32_t dataSize
 
SPI_FrameFormat frameFormat
 
void * custom
 

Field Documentation

◆ transferMode

SPI_TransferMode MCSPI_Params::transferMode

Blocking or Callback mode

◆ transferTimeout

uint32_t MCSPI_Params::transferTimeout

Transfer timeout in system ticks (Not supported with all implementations

◆ transferCallbackFxn

MCSPI_CallbackFxn MCSPI_Params::transferCallbackFxn

Callback function pointer

◆ mode

SPI_Mode MCSPI_Params::mode

Master or Slave mode, all the channels on the same instance should have the same mode

◆ bitRate

uint32_t MCSPI_Params::bitRate

SPI bit rate in Hz in single channle mode

◆ dataSize

uint32_t MCSPI_Params::dataSize

SPI data frame size in bits in single channle mode

◆ frameFormat

SPI_FrameFormat MCSPI_Params::frameFormat

SPI frame format in single channle mode

◆ custom

void* MCSPI_Params::custom

Custom argument used by driver implementation