MCUSW
Spi_ConfigType Struct Reference

Detailed Description

SPI config structure.

Data Fields

uint8 maxChannels
 
uint8 maxJobs
 
uint8 maxSeq
 
uint8 maxHwUnit
 
uint8 maxExtDevCfg
 
uint32 udmaInstId
 
Spi_CacheWbInv cacheWbInv
 
Spi_CacheWb cacheWb
 
Spi_CacheInv cacheInv
 
Spi_ChannelConfigType channelCfg [SPI_MAX_CHANNELS]
 
Spi_JobConfigType jobCfg [SPI_MAX_JOBS]
 
Spi_SeqConfigType seqCfg [SPI_MAX_SEQ]
 
Spi_HwUnitConfigType hwUnitCfg [SPI_MAX_HW_UNIT]
 
Spi_ExternalDeviceConfigType extDevCfg [SPI_MAX_EXT_DEV]
 

Field Documentation

◆ maxChannels

uint8 Spi_ConfigType::maxChannels

Maximum number of channels. Should not be more than SPI_MAX_CHANNELS

◆ maxJobs

uint8 Spi_ConfigType::maxJobs

Maximum number of jobs Should not be more than SPI_MAX_JOBS

◆ maxSeq

uint8 Spi_ConfigType::maxSeq

Maximum number of sequences Should not be more than SPI_MAX_SEQ

◆ maxHwUnit

uint8 Spi_ConfigType::maxHwUnit

Maximum number of HW unit Should not be more than SPI_MAX_HW_UNIT

◆ maxExtDevCfg

uint8 Spi_ConfigType::maxExtDevCfg

Maximum number of external device configurations Should not be more than SPI_MAX_EXT_DEV

◆ udmaInstId

uint32 Spi_ConfigType::udmaInstId

UDMA Instance Id. Based on core in which the SpiDriver is running Udma Instance should be chosen

  • UDMA_INST_ID_MCU_0 for cores in MCU domain
  • UDMA_INST_ID_MAIN_0 for cores in Main domain

◆ cacheWbInv

Spi_CacheWbInv Spi_ConfigType::cacheWbInv

Cache write-back invalidate function

◆ cacheWb

Spi_CacheWb Spi_ConfigType::cacheWb

Cache write-back function

◆ cacheInv

Spi_CacheInv Spi_ConfigType::cacheInv

Cache invalidate function

◆ channelCfg

Spi_ChannelConfigType Spi_ConfigType::channelCfg[SPI_MAX_CHANNELS]

Channel configurations

◆ jobCfg

Spi_JobConfigType Spi_ConfigType::jobCfg[SPI_MAX_JOBS]

Job configurations

◆ seqCfg

Spi_SeqConfigType Spi_ConfigType::seqCfg[SPI_MAX_SEQ]

Sequence configurations

◆ hwUnitCfg

Spi_HwUnitConfigType Spi_ConfigType::hwUnitCfg[SPI_MAX_HW_UNIT]

HW Unit configurations

◆ extDevCfg

Spi_ExternalDeviceConfigType Spi_ConfigType::extDevCfg[SPI_MAX_EXT_DEV]

External HW device config