Download Print this page

Infineon SPI DMA 1 Manual page 7

Spi data communication via dma, aurix tc2xx microcontroller training

Advertisement

Implementation
QSPI Slave initialization (Cont.)
The function IfxQspi_SpiSlave_initModule() is used to initialize the QSPI slave module
Finally, the buffers used by the QSPI slave are initialized
The functions needed to initialize the QSPI Slave can be found in the iLLD header
IfxQspi_SpiSlave.h.
QSPI Master initialization
The initialization of the QSPI master module is done by defining an instance of the
IfxQspi_SpiMaster_Config structure
The structure is filled with default values by the function
IfxQspi_SpiMaster_initModuleConfig()
Afterwards, the following parameters are modified to enable the DMA usage, set its
channels, interrupt priorities and IO port pins:
DMA configuration: dma.useDma, dma.txDmaChannelId, dma.rxDmaChannelId
Interrupts configuration: base.txPriority, base.rxPriority, base.erPriority,
base.isrProvider
Pins configuration: pins
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.
7

Advertisement

loading