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_MCU_MCSPI2   ((Spi_HWUnitType) CSIB2)
 MCU MCSPI2 instance.
 
#define SPI_UNIT_MCSPI0   ((Spi_HWUnitType) CSIB3)
 MCSPI0 instance.
 
#define SPI_UNIT_MCSPI1   ((Spi_HWUnitType) CSIB4)
 MCSPI1 instance.
 
#define SPI_UNIT_MCSPI2   ((Spi_HWUnitType) CSIB5)
 MCSPI2 instance.
 
#define SPI_UNIT_MCSPI3   ((Spi_HWUnitType) CSIB6)
 MCSPI3 instance.
 
#define SPI_UNIT_MCSPI4   ((Spi_HWUnitType) CSIB7)
 MCSPI4 instance.
 
#define SPI_UNIT_MCSPI5   ((Spi_HWUnitType) CSIB8)
 MCSPI5 instance.
 
#define SPI_UNIT_MCSPI6   ((Spi_HWUnitType) CSIB9)
 MCSPI6 instance.
 
#define SPI_UNIT_MCSPI7   ((Spi_HWUnitType) CSIB10)
 MCSPI7 instance.
 
#define SPI_HW_UNIT_CNT   (11U)
 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 , CSIB5 , CSIB6 , CSIB7 ,
  CSIB8 , CSIB9 , CSIB10
}
 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.
 
void SpiApp_wbInvCache (uint8 *buf, uint16 len)
 Cache write-back invalidate function.
 
void SpiApp_wbCache (uint8 *buf, uint16 len)
 Cache write-back function.
 
void SpiApp_invCache (uint8 *buf, uint16 len)
 Cache invalidate function.
 
void Spi_IrqUnitMcuMcspi0TxRx (void)
 SPI Hwunit ISR.
 
void Spi_IrqUnitMcuMcspi1TxRx (void)
 SPI MCU_MCSPI1 ISR.
 
void Spi_IrqUnitMcuMcspi2TxRx (void)
 SPI MCU_MCSPI2 ISR.
 
void Spi_IrqUnitMcspi0TxRx (void)
 SPI MCSPI0 ISR.
 
void Spi_IrqUnitMcspi1TxRx (void)
 SPI MCSPI1 ISR.
 
void Spi_IrqUnitMcspi2TxRx (void)
 SPI MCSPI2 ISR.
 
void Spi_IrqUnitMcspi3TxRx (void)
 SPI MCSPI3 ISR.
 
void Spi_IrqUnitMcspi4TxRx (void)
 SPI MCSPI4 ISR.
 

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   (1U)
 Maximum channels across all jobs/sequence/hwunit.
 
#define SPI_MAX_JOBS   (1U)
 Maximum jobs across all sequence/hwunit.
 
#define SPI_MAX_SEQ   (1U)
 Maximum sequence across all hwunit.
 
#define SPI_MAX_HW_UNIT   (8U)
 Maximum HW unit - This should match the sum for the below units ISR which are ON.
 
#define SPI_MAX_EXT_DEV   (11U)
 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_UNIT_MCU_MCSPI2_ACTIVE   (STD_ON)
 Enable/disable SPI MCU MCSPI2 unit ISR.
 
#define SPI_UNIT_MCSPI0_ACTIVE   (STD_ON)
 Enable/disable SPI MCSPI0 unit ISR.
 
#define SPI_UNIT_MCSPI1_ACTIVE   (STD_ON)
 Enable/disable SPI MCSPI1 unit ISR.
 
#define SPI_UNIT_MCSPI2_ACTIVE   (STD_ON)
 Enable/disable SPI MCSPI2 unit ISR.
 
#define SPI_UNIT_MCSPI3_ACTIVE   (STD_ON)
 Enable/disable SPI MCSPI3 unit ISR.
 
#define SPI_UNIT_MCSPI4_ACTIVE   (STD_ON)
 Enable/disable SPI MCSPI4 unit ISR.
 
#define SPI_UNIT_MCSPI5_ACTIVE   (STD_OFF)
 Enable/disable SPI MCSPI5 unit ISR.
 
#define SPI_UNIT_MCSPI6_ACTIVE   (STD_OFF)
 Enable/disable SPI MCSPI6 unit ISR.
 
#define SPI_UNIT_MCSPI7_ACTIVE   (STD_OFF)
 Enable/disable SPI MCSPI7 unit ISR.
 
#define SPI_ISR_TYPE   (SPI_ISR_CAT1)
 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_ON)
 Enable/disable SPI register read back API.
 
#define SPI_SAFETY_API   (STD_ON)
 Enable/disable SPI safety API.
 
#define SpiConf_SpiChannel_SpiChannel_0   (0U)
 Symbolic Name Channel Id - 0 SpiChannel_0.
 
#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_SpiSequence_SpiSequence_0   (0U)
 Symbolic Name Sequence Id - 0 SpiSequence_0.
 
#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.
 
#define SpiConf_SpiExternalDevice_HwUnitId5   (CSIB5)
 Symbolic Name HW Unit - 0.
 
#define SpiConf_SpiExternalDevice_HwUnitId6   (CSIB6)
 Symbolic Name HW Unit - 0.
 
#define SpiConf_SpiExternalDevice_HwUnitId7   (CSIB7)
 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.