iLLD_TC27xD  1.0
IfxQspi_SpiMaster.h File Reference

QSPI SPIMASTER details. More...

Go to the source code of this file.

Data Structures

struct  IfxQspi_SpiMaster_Input
 SLSI pin configuration structure. More...
 
struct  IfxQspi_SpiMaster_Output
 SLSO pin configuration structure. More...
 
struct  IfxQspi_SpiMaster_Dma
 Dma handle. More...
 
struct  IfxQspi_SpiMaster_DmaConfig
 Dma configuration. More...
 
struct  IfxQspi_SpiMaster_ErrorFlags
 Qspi Master Mode Error Flags. More...
 
union  IfxQspi_SpiMaster_InputOutput
 Union of Slave Select pins. More...
 
struct  IfxQspi_SpiMaster_Pins
 Master pin IO configuration structure. More...
 
struct  IfxQspi_SpiMaster
 Module handle data structure. More...
 
struct  IfxQspi_SpiMaster_ChannelConfig
 Module Channel configuration structure. More...
 
struct  IfxQspi_SpiMaster_Channel_s
 Module Channel handle structure. More...
 
struct  IfxQspi_SpiMaster_Config
 Module configuration structure. More...
 

Typedefs

typedef struct
IfxQspi_SpiMaster_Channel_s 
IfxQspi_SpiMaster_Channel
 
typedef void(* IfxQspi_SpiMaster_AutoSlso )(IfxQspi_SpiMaster_Channel *chHandle)
 

Enumerations

enum  IfxQspi_SpiMaster_ChannelBasedCs {
  IfxQspi_SpiMaster_ChannelBasedCs_disabled = 0,
  IfxQspi_SpiMaster_ChannelBasedCs_enabled = 1
}
 
enum  IfxQspi_SpiMaster_Mode {
  IfxQspi_SpiMaster_Mode_short = 0,
  IfxQspi_SpiMaster_Mode_long = 1,
  IfxQspi_SpiMaster_Mode_shortContinuous = 2,
  IfxQspi_SpiMaster_Mode_longContinuous = 3,
  IfxQspi_SpiMaster_Mode_xxl = 4
}
 

Functions

IFX_EXTERN void IfxQspi_SpiMaster_initModule (IfxQspi_SpiMaster *handle, const IfxQspi_SpiMaster_Config *config)
 Initialises the module. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_initModuleConfig (IfxQspi_SpiMaster_Config *config, Ifx_QSPI *qspi)
 Fills the config structure with default values. More...
 
IFX_EXTERN SpiIf_Status IfxQspi_SpiMaster_initChannel (IfxQspi_SpiMaster_Channel *chHandle, const IfxQspi_SpiMaster_ChannelConfig *chConfig)
 Initializes the channel. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_initChannelConfig (IfxQspi_SpiMaster_ChannelConfig *chConfig, IfxQspi_SpiMaster *handle)
 Fills the config structure with default values. More...
 
IFX_EXTERN SpiIf_Status IfxQspi_SpiMaster_exchange (IfxQspi_SpiMaster_Channel *chHandle, const void *src, void *dest, Ifx_SizeT count)
 Exchanges data between source and data. More...
 
IFX_EXTERN SpiIf_Status IfxQspi_SpiMaster_getStatus (IfxQspi_SpiMaster_Channel *chHandle)
 Gets the transmission status. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_isrDmaReceive (IfxQspi_SpiMaster *qspiHandle)
 Transmit interrupt handler. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_isrDmaTransmit (IfxQspi_SpiMaster *qspiHandle)
 Transmit interrupt handler. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_isrError (IfxQspi_SpiMaster *handle)
 Error Interrupt handler. More...
 
IFX_EXTERN
IfxQspi_PhaseTransitionEvent 
IfxQspi_SpiMaster_isrPhaseTransition (IfxQspi_SpiMaster *handle)
 Phase Transition interrupt handler. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_isrReceive (IfxQspi_SpiMaster *handle)
 Receive Interrupt handler. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_isrTransmit (IfxQspi_SpiMaster *handle)
 Transmit interrupt handler. More...
 
IFX_EXTERN
IfxQspi_PhaseTransitionEvent 
IfxQspi_SpiMaster_isrUserDefined (IfxQspi_SpiMaster *handle)
 User defined interrupt handler. More...
 
IFX_INLINE uint32 IfxQspi_SpiMaster_readReceiveFifo (IfxQspi_SpiMaster *handle)
 Reads data or status in RxFIFO. More...
 
IFX_INLINE void IfxQspi_SpiMaster_writeBasicConfiguration (IfxQspi_SpiMaster *handle, uint32 baconVal)
 Writes Basic configuration value to Tx FIFO. More...
 
IFX_INLINE void IfxQspi_SpiMaster_writeExtendedConfiguration (IfxQspi_SpiMaster_Channel *chHandle, uint32 econVal)
 Writes extended configuration of the channel. More...
 
IFX_INLINE void IfxQspi_SpiMaster_writeMixedDataConfiguration (IfxQspi_SpiMaster *handle, uint32 mixEntryVal)
 Writes data and configuration mixed value to Tx FIFO. More...
 
IFX_INLINE void IfxQspi_SpiMaster_writeTransmitFifo (IfxQspi_SpiMaster_Channel *chHandle, uint32 data)
 Writes the data to TxFIFO. More...
 
IFX_EXTERN void IfxQspi_SpiMaster_packLongModeBuffer (IfxQspi_SpiMaster_Channel *chHandle, void *data, uint32 *longFifoBuffer, Ifx_SizeT dataLength)
 pack data to Long mode buffer More...
 
IFX_EXTERN SpiIf_ChConfig IfxQspi_SpiMaster_getChannelConfig (IfxQspi_SpiMaster_Channel *chHandle)
 Gets the channel configuration. More...
 
IFX_EXTERN SpiIf_Status IfxQspi_SpiMaster_setChannelBaudrate (IfxQspi_SpiMaster_Channel *chHandle, float baudrate)
 Set the channel baudrate. More...
 

Detailed Description

QSPI SPIMASTER details.

Version
iLLD_1_0_0_11_0
                            IMPORTANT NOTICE

Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.

THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file IfxQspi_SpiMaster.h.

Typedef Documentation

typedef void(* IfxQspi_SpiMaster_AutoSlso)(IfxQspi_SpiMaster_Channel *chHandle)

Definition at line 492 of file IfxQspi_SpiMaster.h.

Function Documentation

IFX_EXTERN SpiIf_ChConfig IfxQspi_SpiMaster_getChannelConfig ( IfxQspi_SpiMaster_Channel chHandle)

Gets the channel configuration.

Parameters
chHandleModule Channel handle
Returns
Channel configuration

Definition at line 180 of file IfxQspi_SpiMaster.c.

Referenced by IfxQspi_SpiMaster_setChannelBaudrate().

IFX_EXTERN SpiIf_Status IfxQspi_SpiMaster_setChannelBaudrate ( IfxQspi_SpiMaster_Channel chHandle,
float  baudrate 
)

Set the channel baudrate.

Parameters
chHandleModule Channel handle
baudrateBaudrate to be configured (in Baud)
Returns
Status of Channel (busy or ok or failure)

Definition at line 851 of file IfxQspi_SpiMaster.c.