AM64x MCU+ SDK  10.00.00
MCSPI_ExtendedParams Struct Reference

Detailed Description

Data structure used with MCSPI_lld_read(), MCSPI_lld_readIntr(), MCSPI_lld_readDma(), MCSPI_lld_write(), MCSPI_lld_writeIntr, MCSPI_lld_writeDma, MCSPI_lld_readWrite(), MCSPI_lld_readWriteIntr(), MCSPI_lld_readWriteDma(). MCSPI ExtendedParams to be used in case, one's don't want to use default parameters, else pass NULL.

Data Fields

uint32_t channel
 
uint32_t csDisable
 
uint32_t dataSize
 
void * args
 

Field Documentation

◆ channel

uint32_t MCSPI_ExtendedParams::channel

[IN] Channel number (chip select) to use. Valid value from 0 to (MCSPI_MAX_NUM_CHANNELS - 1)

◆ csDisable

uint32_t MCSPI_ExtendedParams::csDisable

[IN] TRUE/FALSE to disable CS(chip select) If it is set to TRUE, CS is de-asseted automatically at the end of the transfer. If user wants to chain more transfers under one CS pulse, user needs to set it to FALSE for each transfer and for the last transfer, user needs to set to TRUE to de-assert CS

◆ dataSize

uint32_t MCSPI_ExtendedParams::dataSize

[IN] MCSPI data frame size in bits - valid values: 4 bits to 32 bits

The dataSize value determines the element types of txBuf and rxBuf. If the dataSize is from 4 to 8 bits, the driver assumes the data buffers are of type uint8_t (unsigned char). If the dataSize is from 8 to 16 bits, the driver assumes the data buffers are of type uint16_t (unsigned short). If the dataSize is greater than 16 bits, the driver assumes the data buffers are uint32_t (unsigned long).

◆ args

void* MCSPI_ExtendedParams::args

[IN] Argument to be passed to the callback function