MCUSW
Loading...
Searching...
No Matches
Spi_Cfg.h File Reference

Introduction

This file contains generated pre compile configuration file for SPI MCAL driver.

Go to the source code of this file.

SPI HW unit Info

#define SPI_UNIT_MCU_MCSPI0   ((Spi_HWUnitType) CSIB0)
 MCU MCSPI0 instance.
 
#define SPI_UNIT_MCU_MCSPI1   ((Spi_HWUnitType) CSIB1)
 MCU MCSPI1 instance.
 
#define SPI_UNIT_MCSPI0   ((Spi_HWUnitType) CSIB2)
 MCSPI0 instance.
 
#define SPI_UNIT_MCSPI1   ((Spi_HWUnitType) CSIB3)
 MCSPI1 instance.
 
#define SPI_UNIT_MCSPI2   ((Spi_HWUnitType) CSIB4)
 MCSPI2 instance.
 
#define SPI_HW_UNIT_CNT   (5U)
 Total HW units - used for array allocation. This should be +1 of the max unit number.
 
enum  Spi_HwUnitType {
  CSIB0 = 0U , CSIB1 , CSIB2 , CSIB3 ,
  CSIB4
}
 This type defines a range of HW SPI Hardware microcontroller peripheral allocated to this Job. More...
 
const uint32 Spi_HwUnitBaseAddr [SPI_HW_UNIT_CNT]
 
const struct Spi_ConfigType_s SpiDriver
 SPI Configuration struct declaration.
 
 ISR (Spi_IrqUnitMcuMcspi0TxRx)
 SPI Hwunit ISR.
 
 ISR (Spi_IrqUnitMcuMcspi1TxRx)
 
 ISR (Spi_IrqUnitMcspi0TxRx)
 
 ISR (Spi_IrqUnitMcspi1TxRx)
 
 ISR (Spi_IrqUnitMcspi2TxRx)
 

Macros

#define SPI_VARIANT_POST_BUILD   (STD_ON)
 SPI Build Variant. Build variants.(i.e Pre Compile,Post Build or Link time)
 
SPI Driver ISR category level

Definitions for SPI Driver ISR ISR category level.

#define SPI_ISR_VOID   (0x00U)
 void ISR type
 
#define SPI_ISR_CAT1   (0x01U)
 Category 1 ISR type.
 
#define SPI_ISR_CAT2   (0x02U)
 Category 2 ISR type.
 
#define SPI_CHANNELBUFFERS   (SPI_IB_EB)
 Pre Compile config macro name.
 
#define SPI_IB_MAX_LENGTH   (64U)
 Internal Buffer length in bytes - applicable only for SPI_IB.
 
#define SPI_DEV_ERROR_DETECT   (STD_ON)
 Enable/disable SPI dev detect error.
 
#define SPI_JOB_LOG   (STD_OFF)
 Enable/disable SPI job log.
 
#define SPI_MAX_JOB_LOG   (100U)
 Maximum job log entries when logging is ON.
 
#define SPI_MAX_HW_DMA_UNIT   (0U)
 Enable/disable SPI DMA Support.
 
#define SPI_DMA_ENABLE   (STD_OFF)
 Enable/disable SPI DMA Support.
 
#define SPI_LEVEL_0   (0U)
 Basic Synchronous functions.
 
#define SPI_LEVEL_1   (1U)
 Basic Asynchronous functions.
 
#define SPI_LEVEL_2   (2U)
 Synchronous and Asynchronous functions.
 
#define SPI_SUPPORT_CONCURRENT_SYNC_TRANSMIT   (STD_OFF)
 Concurrent sync transmit support - by defualt this is off.
 
#define SPI_SCALEABILITY   (SPI_LEVEL_2)
 Scalability level.
 
#define SPI_VERSION_INFO_API   (STD_ON)
 Enable/disable SPI get version info API.
 
#define SPI_HW_STATUS_API   (STD_ON)
 Enable/disable SPI HW Status API.
 
#define SPI_CANCEL_API   (STD_ON)
 Enable/disable SPI cancel API.
 
#define SPI_MAX_CHANNELS_PER_JOB   (1U)
 Maximum channels allowed per job.
 
#define SPI_MAX_JOBS_PER_SEQ   (1U)
 Maximum jobs allowed per sequence.
 
#define SPI_MAX_CHANNELS   (4U)
 Maximum channels across all jobs/sequence/hwunit.
 
#define SPI_MAX_JOBS   (4U)
 Maximum jobs across all sequence/hwunit.
 
#define SPI_MAX_SEQ   (4U)
 Maximum sequence across all hwunit.
 
#define SPI_MAX_HW_UNIT   (5U)
 Maximum HW unit - This should match the sum for the below units ISR which are ON.
 
#define SPI_MAX_EXT_DEV   (5U)
 Maximum external device cfg.
 
#define SPI_UNIT_MCU_MCSPI0_ACTIVE   (STD_ON)
 Enable/disable SPI MCU MCSPI0 unit ISR.
 
#define SPI_UNIT_MCU_MCSPI1_ACTIVE   (STD_ON)
 Enable/disable SPI MCU MCSPI1 unit ISR.
 
#define SPI_ISR_TYPE   (SPI_ISR_CAT2)
 ISR type.
 
#define SPI_OS_COUNTER_ID   ((CounterType)OsCounter_0)
 OS counter ID - used for timeout in case of error.
 
#define SPI_TIMEOUT_DURATION   (32000U)
 SPI timeout - used in McSPI IP reset Each tick is 31.25us (for 32K Counter). Wait for 100ms which comes to below value.
 
#define SPI_REGISTER_READBACK_API   (STD_OFF)
 Enable/disable SPI register read back API.
 
#define SpiConf_SpiChannel_SpiChannel_0   (0U)
 Symbolic Name Channel Id - 0 SpiChannel_0.
 
#define SpiConf_SpiChannel_SpiChannel_1   (1U)
 Symbolic Name Channel Id - 1 SpiChannel_1.
 
#define SpiConf_SpiChannel_SpiChannel_2   (2U)
 Symbolic Name Channel Id - 2 SpiChannel_2.
 
#define SpiConf_SpiChannel_SpiChannel_3   (3U)
 Symbolic Name Channel Id - 3 SpiChannel_3.
 
#define SpiConf_SpiExternalDevice_CS0   (SPI_CS0)
 Symbolic Name Chip Select - 0.
 
#define SpiConf_SpiJob_SpiJob_0   (0U)
 Symbolic Name Job Id - 0 SpiJob_0.
 
#define SpiConf_SpiExternalDevice_CS1   (SPI_CS1)
 Symbolic Name Chip Select - 1.
 
#define SpiConf_SpiJob_SpiJob_1   (1U)
 Symbolic Name Job Id - 1 SpiJob_1.
 
#define SpiConf_SpiExternalDevice_CS2   (SPI_CS3)
 Symbolic Name Chip Select - 2.
 
#define SpiConf_SpiJob_SpiJob_2   (2U)
 Symbolic Name Job Id - 2 SpiJob_2.
 
#define SpiConf_SpiExternalDevice_CS3   (SPI_CS0)
 Symbolic Name Chip Select - 3.
 
#define SpiConf_SpiJob_SpiJob_3   (3U)
 Symbolic Name Job Id - 3 SpiJob_3.
 
#define SpiConf_SpiSequence_SpiSequence_0   (0U)
 Symbolic Name Sequence Id - 0 SpiSequence_0.
 
#define SpiConf_SpiSequence_SpiSequence_1   (1U)
 Symbolic Name Sequence Id - 1 SpiSequence_1.
 
#define SpiConf_SpiSequence_SpiSequence_2   (2U)
 Symbolic Name Sequence Id - 2 SpiSequence_2.
 
#define SpiConf_SpiSequence_SpiSequence_3   (3U)
 Symbolic Name Sequence Id - 3 SpiSequence_3.
 
#define SpiConf_SpiExternalDevice_HwUnitId0   (CSIB0)
 Symbolic Name HW Unit - 0.
 
#define SpiConf_SpiExternalDevice_HwUnitId1   (CSIB1)
 Symbolic Name HW Unit - 0.
 
#define SpiConf_SpiExternalDevice_HwUnitId2   (CSIB2)
 Symbolic Name HW Unit - 0.
 
#define SpiConf_SpiExternalDevice_HwUnitId3   (CSIB3)
 Symbolic Name HW Unit - 0.
 
#define SpiConf_SpiExternalDevice_HwUnitId4   (CSIB4)
 Symbolic Name HW Unit - 0.
 
SPI DEM Error codes to report

Pre-compile switches for enabling/disabling DEM events

#define SPI_E_HARDWARE_ERROR   (DemConf_DemEventParameter_SPI_E_HARDWARE_ERROR)
 Hardware failed.