Implementation
QSPI Master initialization (Cont.)
›
The function IfxQspi_SpiMaster_initModule() is used to initialize the QSPI
master module
›
A QSPI module controls 16 communication channels, which are individually
programmable. In this example, the function initQSPI2MasterChannel() initializes
the channel zero using an instance of the structure
IfxQspi_SpiMaster_ChannelConfig. Afterwards, the slave select channel
number is set through the parameter sls.output and the baud rate is modified via
the parameter base.baudrate
›
The function IfxQspi_SpiMaster_initChannel() is used to initialize the QSPI
master channel
›
Finally, the buffers used by the QSPI master are initialized
The functions needed to initialize the QSPI Master can be found in the iLLD header
IfxQspi_SpiMaster.h.
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.
8