![]() |
MCUSW
|
This file contains generated pre compile configuration file for SPI MCAL driver.
Go to the source code of this file.
Macros | |
| #define | SPI_VARIANT_POST_BUILD (STD_ON) |
| SPI Build Variant. Build variants.(i.e Pre Compile,Post Build or Link time) More... | |
| #define | SPI_CHANNELBUFFERS (SPI_IB_EB) |
| Pre Compile config macro name. More... | |
| #define | SPI_IB_MAX_LENGTH (64U) |
| Internal Buffer length in bytes - applicable only for SPI_IB. More... | |
| #define | SPI_DEV_ERROR_DETECT (STD_ON) |
| Enable/disable SPI dev detect error. More... | |
| #define | SPI_JOB_LOG (STD_ON) |
| Enable/disable SPI job log. More... | |
| #define | SPI_MAX_JOB_LOG (100U) |
| Maximum job log entries when logging is ON. More... | |
| #define | SPI_MAX_HW_DMA_UNIT (0U) |
| Enable/disable SPI DMA Support. More... | |
| #define | SPI_DMA_ENABLE (STD_OFF) |
| Enable/disable SPI DMA Support. More... | |
| #define | SPI_LEVEL_0 (0U) |
| Basic Synchronous functions. More... | |
| #define | SPI_LEVEL_1 (1U) |
| Basic Asynchronous functions. More... | |
| #define | SPI_LEVEL_2 (2U) |
| Synchronous and Asynchronous functions. More... | |
| #define | SPI_SUPPORT_CONCURRENT_SYNC_TRANSMIT (STD_OFF) |
| Concurrent sync transmit support - by defualt this is off. More... | |
| #define | SPI_SCALEABILITY (SPI_LEVEL_2) |
| Scalability level. More... | |
| #define | SPI_VERSION_INFO_API (STD_ON) |
| Enable/disable SPI get version info API. More... | |
| #define | SPI_HW_STATUS_API (STD_ON) |
| Enable/disable SPI HW Status API. More... | |
| #define | SPI_CANCEL_API (STD_ON) |
| Enable/disable SPI cancel API. More... | |
| #define | SPI_MAX_CHANNELS_PER_JOB (1U) |
| Maximum channels allowed per job. More... | |
| #define | SPI_MAX_JOBS_PER_SEQ (1U) |
| Maximum jobs allowed per sequence. More... | |
| #define | SPI_MAX_CHANNELS (1U) |
| Maximum channels across all jobs/sequence/hwunit. More... | |
| #define | SPI_MAX_JOBS (1U) |
| Maximum jobs across all sequence/hwunit. More... | |
| #define | SPI_MAX_SEQ (1U) |
| Maximum sequence across all hwunit. More... | |
| #define | SPI_MAX_HW_UNIT (8U) |
| Maximum HW unit - This should match the sum for the below units ISR which are ON. More... | |
| #define | SPI_MAX_EXT_DEV (11U) |
| Maximum external device cfg. More... | |
| #define | SPI_UNIT_MCU_MCSPI0_ACTIVE (STD_ON) |
| Enable/disable SPI MCU MCSPI0 unit ISR. More... | |
| #define | SPI_UNIT_MCU_MCSPI1_ACTIVE (STD_ON) |
| Enable/disable SPI MCU MCSPI1 unit ISR. More... | |
| #define | SPI_UNIT_MCU_MCSPI2_ACTIVE (STD_ON) |
| Enable/disable SPI MCU MCSPI2 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI0_ACTIVE (STD_ON) |
| Enable/disable SPI MCSPI0 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI1_ACTIVE (STD_ON) |
| Enable/disable SPI MCSPI1 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI2_ACTIVE (STD_ON) |
| Enable/disable SPI MCSPI2 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI3_ACTIVE (STD_ON) |
| Enable/disable SPI MCSPI3 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI4_ACTIVE (STD_ON) |
| Enable/disable SPI MCSPI4 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI5_ACTIVE (STD_OFF) |
| Enable/disable SPI MCSPI5 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI6_ACTIVE (STD_OFF) |
| Enable/disable SPI MCSPI6 unit ISR. More... | |
| #define | SPI_UNIT_MCSPI7_ACTIVE (STD_OFF) |
| Enable/disable SPI MCSPI7 unit ISR. More... | |
| #define | SPI_ISR_TYPE (SPI_ISR_CAT1) |
| ISR type. More... | |
| #define | SPI_OS_COUNTER_ID ((CounterType)OsCounter_0) |
| OS counter ID - used for timeout in case of error. More... | |
| #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. More... | |
| #define | SPI_REGISTER_READBACK_API (STD_ON) |
| Enable/disable SPI register read back API. More... | |
| #define | SPI_SAFETY_API (STD_ON) |
| Enable/disable SPI safety API. More... | |
| #define | SpiConf_SpiChannel_SpiChannel_0 (0U) |
| Symbolic Name Channel Id - 0 SpiChannel_0. More... | |
| #define | SpiConf_SpiExternalDevice_CS0 (SPI_CS0) |
| Symbolic Name Chip Select - 0. More... | |
| #define | SpiConf_SpiJob_SpiJob_0 (0U) |
| Symbolic Name Job Id - 0 SpiJob_0. More... | |
| #define | SpiConf_SpiSequence_SpiSequence_0 (0U) |
| Symbolic Name Sequence Id - 0 SpiSequence_0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId0 (CSIB0) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId1 (CSIB1) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId2 (CSIB2) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId3 (CSIB3) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId4 (CSIB4) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId5 (CSIB5) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId6 (CSIB6) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SpiConf_SpiExternalDevice_HwUnitId7 (CSIB7) |
| Symbolic Name HW Unit - 0. More... | |
| #define | SPI_HW_UNIT_CNT (11U) |
| Total HW units - used for array allocation. This should be +1 of the max unit number. More... | |
SPI DEM Error codes to report | |
Pre-compile switches for enabling/disabling DEM events | |
| #define | DemConf_DemEventParameter_SPI_DEM_NO_EVENT (0xFFFFU) |
| #define | SPI_DEM_NO_EVENT DemConf_DemEventParameter_SPI_DEM_NO_EVENT |
| #define | SPI_E_HARDWARE_ERROR (DemConf_DemEventParameter_SPI_E_HARDWARE_ERROR) |
| Hardware failed. More... | |
SPI HW unit Info | |
| #define | SPI_UNIT_MCU_MCSPI0 ((Spi_HWUnitType) CSIB0) |
| MCU MCSPI0 instance. More... | |
| #define | SPI_UNIT_MCU_MCSPI1 ((Spi_HWUnitType) CSIB1) |
| MCU MCSPI1 instance. More... | |
| #define | SPI_UNIT_MCU_MCSPI2 ((Spi_HWUnitType) CSIB2) |
| MCU MCSPI2 instance. More... | |
| #define | SPI_UNIT_MCSPI0 ((Spi_HWUnitType) CSIB3) |
| MCSPI0 instance. More... | |
| #define | SPI_UNIT_MCSPI1 ((Spi_HWUnitType) CSIB4) |
| MCSPI1 instance. More... | |
| #define | SPI_UNIT_MCSPI2 ((Spi_HWUnitType) CSIB5) |
| MCSPI2 instance. More... | |
| #define | SPI_UNIT_MCSPI3 ((Spi_HWUnitType) CSIB6) |
| MCSPI3 instance. More... | |
| #define | SPI_UNIT_MCSPI4 ((Spi_HWUnitType) CSIB7) |
| MCSPI4 instance. More... | |
| #define | SPI_UNIT_MCSPI5 ((Spi_HWUnitType) CSIB8) |
| MCSPI5 instance. More... | |
| #define | SPI_UNIT_MCSPI6 ((Spi_HWUnitType) CSIB9) |
| MCSPI6 instance. More... | |
| #define | SPI_UNIT_MCSPI7 ((Spi_HWUnitType) CSIB10) |
| MCSPI7 instance. More... | |
Enumerations | |
| 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... | |
Functions | |
| void | SpiApp_wbInvCache (uint8 *buf, uint16 len) |
| Cache write-back invalidate function. More... | |
| void | SpiApp_wbCache (uint8 *buf, uint16 len) |
| Cache write-back function. More... | |
| void | SpiApp_invCache (uint8 *buf, uint16 len) |
| Cache invalidate function. More... | |
| void | Spi_IrqUnitMcuMcspi0TxRx (void) |
| SPI Hwunit ISR. More... | |
| void | Spi_IrqUnitMcuMcspi1TxRx (void) |
| SPI MCU_MCSPI1 ISR. More... | |
| void | Spi_IrqUnitMcuMcspi2TxRx (void) |
| SPI MCU_MCSPI2 ISR. More... | |
| void | Spi_IrqUnitMcspi3TxRx (void) |
| SPI MCSPI3 ISR. More... | |
| void | Spi_IrqUnitMcspi4TxRx (void) |
| SPI MCSPI4 ISR. More... | |
| void | Spi_IrqUnitMcspi5TxRx (void) |
| SPI MCSPI5 ISR. More... | |
| void | Spi_IrqUnitMcspi6TxRx (void) |
| SPI MCSPI6 ISR. More... | |
| void | Spi_IrqUnitMcspi7TxRx (void) |
| SPI MCSPI7 ISR. More... | |
Variables | |
| const uint32 | Spi_HwUnitBaseAddr [SPI_HW_UNIT_CNT] |
| const struct Spi_ConfigType_s | SpiDriver |
| SPI Configuration struct declaration. More... | |
| enum Spi_HwUnitType |
This type defines a range of HW SPI Hardware microcontroller peripheral allocated to this Job.
| 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.
SPI MCU_MCSPI0 ISR
| void Spi_IrqUnitMcuMcspi1TxRx | ( | void | ) |
SPI MCU_MCSPI1 ISR.
| void Spi_IrqUnitMcuMcspi2TxRx | ( | void | ) |
SPI MCU_MCSPI2 ISR.
| void Spi_IrqUnitMcspi3TxRx | ( | void | ) |
SPI MCSPI3 ISR.
| void Spi_IrqUnitMcspi4TxRx | ( | void | ) |
SPI MCSPI4 ISR.
| void Spi_IrqUnitMcspi5TxRx | ( | void | ) |
SPI MCSPI5 ISR.
| void Spi_IrqUnitMcspi6TxRx | ( | void | ) |
SPI MCSPI6 ISR.
| void Spi_IrqUnitMcspi7TxRx | ( | void | ) |
SPI MCSPI7 ISR.
| const struct Spi_ConfigType_s SpiDriver |
SPI Configuration struct declaration.