iLLD_TC27xD  1.0
Support Functions
Collaboration diagram for Support Functions:

Functions

IFX_INLINE void IfxQspi_flushReceiveFifo (Ifx_QSPI *qspi)
 flush the receive FIFO More...
 
IFX_INLINE void IfxQspi_flushTransmitFifo (Ifx_QSPI *qspi)
 flush the transmit FIFO More...
 
IFX_INLINE IfxQspi_Mode IfxQspi_getMode (Ifx_QSPI *qspi)
 Gets the current mode of QSPI. More...
 
IFX_INLINE float IfxQspi_getModuleFrequency (Ifx_QSPI *qspi)
 Specifies function to get module frequency. More...
 
IFX_INLINE IfxQspi_Phase IfxQspi_getPhase (Ifx_QSPI *qspi)
 Gets actual transmission phase. More...
 
IFX_INLINE uint8 IfxQspi_getReceiveFifoLevel (Ifx_QSPI *qspi)
 Gets the filling level of RXFIFO. More...
 
IFX_INLINE float IfxQspi_getTimeQuantaFrequency (Ifx_QSPI *qspi)
 Gets Time Quanta frequency. More...
 
IFX_INLINE uint8 IfxQspi_getTransmitFifoLevel (Ifx_QSPI *qspi)
 Gets the filling level of TXFIFO. More...
 
IFX_INLINE boolean IfxQspi_isModuleEnabled (Ifx_QSPI *qspi)
 Specifies the Module enable or disable status. More...
 
IFX_INLINE void IfxQspi_setDisableModuleRequest (Ifx_QSPI *qspi)
 Sets the disable module request. More...
 
IFX_INLINE void IfxQspi_setEnableModuleRequest (Ifx_QSPI *qspi)
 Sets the enable module request. More...
 
IFX_INLINE void IfxQspi_setSleepMode (Ifx_QSPI *qspi, IfxQspi_SleepMode mode)
 Sets the disable module request. More...
 
IFX_INLINE void IfxQspi_setTransmitFifoInterrruptThreshold (Ifx_QSPI *qspi, IfxQspi_TxFifoInt txFifoInt)
 Set the threshold of TXFIFO for service request generation. More...
 
IFX_INLINE void IfxQspi_writeBasicConfiguration (Ifx_QSPI *qspi, uint32 baconVal)
 Write configuration into BACON register. More...
 
IFX_INLINE void IfxQspi_writeBasicConfigurationBeginStream (Ifx_QSPI *qspi, uint32 baconVal)
 Write configuration into BACON register with .LAST flag set to 0. More...
 
IFX_INLINE void IfxQspi_writeBasicConfigurationEndStream (Ifx_QSPI *qspi, uint32 baconVal)
 Write configuration into BACON register with .LAST flag set to 1. More...
 
IFX_INLINE void IfxQspi_writeExtendedConfiguration (Ifx_QSPI *qspi, IfxQspi_ChannelId channelId, uint32 econVal)
 Writes channel timing configuration into ECON register. More...
 
IFX_INLINE void IfxQspi_writeMixedDataTransmitFifo (Ifx_QSPI *qspi, uint32 mixEntryVal)
 Writes Data and Configuration into MIXEDENTRY register. More...
 
IFX_EXTERN float IfxQspi_calcRealBaudrate (Ifx_QSPI *qspi, IfxQspi_ChannelId channelId)
 Function to calculate baudrate of specified channel. More...
 
IFX_EXTERN uint32 IfxQspi_calculateBasicConfigurationValue (Ifx_QSPI *qspi, const IfxQspi_ChannelId channelId, const SpiIf_ChMode *chMode, const float baudrate)
 Function to calculate BACON register values. More...
 
IFX_EXTERN uint32 IfxQspi_calculateExtendedConfigurationValue (Ifx_QSPI *qspi, const uint8 cs, const SpiIf_ChConfig *chConfig)
 Function to calculate ECON register values. More...
 
IFX_EXTERN uint32 IfxQspi_calculatePrescaler (Ifx_QSPI *qspi, float baudrate)
 Function to calculate prescaler. More...
 
IFX_EXTERN uint32 IfxQspi_calculateTimeQuantumLength (Ifx_QSPI *qspi, float maxBaudrate)
 Specifies the function to calculate Time quantum length. More...
 
IFX_EXTERN uint32 IfxQspi_recalcBasicConfiguration (uint32 oldBACON, Ifx_SizeT numOfData, boolean shortData, boolean lastData)
 Re-calculated BACON from the oldBACON. More...
 
IFX_EXTERN void IfxQspi_setSlaveSelectOutputControl (Ifx_QSPI *qspi, IfxQspi_ChannelId channelId, boolean outputEnable, boolean activeLevel)
 Configures a Slave Select Output. More...
 

Detailed Description

Function Documentation

IFX_EXTERN float IfxQspi_calcRealBaudrate ( Ifx_QSPI *  qspi,
IfxQspi_ChannelId  channelId 
)

Function to calculate baudrate of specified channel.

Parameters
qspiPointer to QSPI module registers
channelIdQSPI channel number
Returns
Actual baudrate in float

Definition at line 35 of file IfxQspi.c.

Referenced by IfxQspi_SpiMaster_getChannelConfig(), and IfxQspi_SpiMaster_setChannelBaudrate().

IFX_EXTERN uint32 IfxQspi_calculateBasicConfigurationValue ( Ifx_QSPI *  qspi,
const IfxQspi_ChannelId  channelId,
const SpiIf_ChMode chMode,
const float  baudrate 
)

Function to calculate BACON register values.

Parameters
qspiPointer to QSPI module registers
channelIdQSPI Channel Number
chModeFrame configuration
baudrateThe desired baudrate
Returns
Calculated BACON value

Definition at line 48 of file IfxQspi.c.

Referenced by IfxQspi_SpiMaster_initChannel(), IfxQspi_SpiMaster_setChannelBaudrate(), and IfxQspi_SpiSlave_initModule().

IFX_EXTERN uint32 IfxQspi_calculateExtendedConfigurationValue ( Ifx_QSPI *  qspi,
const uint8  cs,
const SpiIf_ChConfig chConfig 
)

Function to calculate ECON register values.

Parameters
qspiPointer to QSPI module registers
csQSPI channel Number : 8->0,9->1,.......
chConfigSPI Channel Configuration
Returns
Calculated ECON[CS] value

Definition at line 73 of file IfxQspi.c.

Referenced by IfxQspi_SpiMaster_initChannel(), IfxQspi_SpiMaster_setChannelBaudrate(), and IfxQspi_SpiSlave_initModule().

IFX_EXTERN uint32 IfxQspi_calculatePrescaler ( Ifx_QSPI *  qspi,
float  baudrate 
)

Function to calculate prescaler.

Parameters
qspiPointer to QSPI module registers
baudrateMaximum baudrate in Float
Returns
Prescaler in integer

Definition at line 137 of file IfxQspi.c.

Referenced by IfxQspi_calculateBasicConfigurationValue().

IFX_EXTERN uint32 IfxQspi_calculateTimeQuantumLength ( Ifx_QSPI *  qspi,
float  maxBaudrate 
)

Specifies the function to calculate Time quantum length.

Parameters
qspiPointer to QSPI module registers
maxBaudrateMaximum baudrate in Float
Returns
Time quantum length in integer

Definition at line 161 of file IfxQspi.c.

Referenced by IfxQspi_SpiMaster_initModule(), and IfxQspi_SpiSlave_initModule().

IFX_INLINE void IfxQspi_flushReceiveFifo ( Ifx_QSPI *  qspi)

flush the receive FIFO

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 804 of file IfxQspi.h.

IFX_INLINE void IfxQspi_flushTransmitFifo ( Ifx_QSPI *  qspi)

flush the transmit FIFO

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 811 of file IfxQspi.h.

IFX_INLINE IfxQspi_Mode IfxQspi_getMode ( Ifx_QSPI *  qspi)

Gets the current mode of QSPI.

Parameters
qspiPointer to QSPI module registers
Returns
The current mode

Definition at line 841 of file IfxQspi.h.

IFX_INLINE float IfxQspi_getModuleFrequency ( Ifx_QSPI *  qspi)

Specifies function to get module frequency.

Parameters
qspiPointer to QSPI module registers
Returns
Module frequency in Float value

Definition at line 847 of file IfxQspi.h.

Referenced by IfxQspi_calculatePrescaler(), and IfxQspi_getTimeQuantaFrequency().

IFX_INLINE IfxQspi_Phase IfxQspi_getPhase ( Ifx_QSPI *  qspi)

Gets actual transmission phase.

Parameters
qspiPointer to QSPI module registers
Returns
Actual transmission phase

Definition at line 853 of file IfxQspi.h.

Referenced by IfxQspi_pause().

IFX_INLINE uint8 IfxQspi_getReceiveFifoLevel ( Ifx_QSPI *  qspi)

Gets the filling level of RXFIFO.

Parameters
qspiPointer to QSPI module registers
Returns
RxFIFO level

Definition at line 859 of file IfxQspi.h.

IFX_INLINE float IfxQspi_getTimeQuantaFrequency ( Ifx_QSPI *  qspi)

Gets Time Quanta frequency.

Parameters
qspiPointer to QSPI module registers
Returns
TQ frequency in float

Definition at line 872 of file IfxQspi.h.

Referenced by IfxQspi_calculateExtendedConfigurationValue().

IFX_INLINE uint8 IfxQspi_getTransmitFifoLevel ( Ifx_QSPI *  qspi)

Gets the filling level of TXFIFO.

Parameters
qspiPointer to QSPI module registers
Returns
TxFIFO level

Definition at line 878 of file IfxQspi.h.

IFX_INLINE boolean IfxQspi_isModuleEnabled ( Ifx_QSPI *  qspi)

Specifies the Module enable or disable status.

Parameters
qspiPointer to QSPI module registers
Returns
TRUE if module is enabled otherwise FALSE

Definition at line 948 of file IfxQspi.h.

IFX_EXTERN uint32 IfxQspi_recalcBasicConfiguration ( uint32  oldBACON,
Ifx_SizeT  numOfData,
boolean  shortData,
boolean  lastData 
)

Re-calculated BACON from the oldBACON.

Parameters
oldBACONOld BACON value
numOfDatanumOfData in LONG or CONTINUOUS mode
shortDataSpecifies SHORT mode (TRUE) or other modes (FALSE)
lastDataSpecifies last data in LONG or CONTINUOUS
Returns
Re-calculated BACON

Definition at line 205 of file IfxQspi.c.

IFX_INLINE void IfxQspi_setDisableModuleRequest ( Ifx_QSPI *  qspi)

Sets the disable module request.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 981 of file IfxQspi.h.

IFX_INLINE void IfxQspi_setEnableModuleRequest ( Ifx_QSPI *  qspi)

Sets the enable module request.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 987 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_initModule(), and IfxQspi_SpiSlave_initModule().

IFX_EXTERN void IfxQspi_setSlaveSelectOutputControl ( Ifx_QSPI *  qspi,
IfxQspi_ChannelId  channelId,
boolean  outputEnable,
boolean  activeLevel 
)

Configures a Slave Select Output.

Parameters
qspiPointer to QSPI module registers
channelIdChannel number to which econ val belongs
outputEnablechip select output will be enabled during transaction
activeLevelTRUE: active-high, FALSE: active-low
Returns
None

Definition at line 239 of file IfxQspi.c.

IFX_INLINE void IfxQspi_setSleepMode ( Ifx_QSPI *  qspi,
IfxQspi_SleepMode  mode 
)

Sets the disable module request.

Parameters
qspiPointer to QSPI module registers
modeSleep mode selection
Returns
None

Definition at line 999 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_initModule(), and IfxQspi_SpiSlave_initModule().

IFX_INLINE void IfxQspi_setTransmitFifoInterrruptThreshold ( Ifx_QSPI *  qspi,
IfxQspi_TxFifoInt  txFifoInt 
)

Set the threshold of TXFIFO for service request generation.

Parameters
qspiPointer to QSPI module registers
txFifoIntTxFifo Interrupt threshold to set
Returns
None

Definition at line 1005 of file IfxQspi.h.

IFX_INLINE void IfxQspi_writeBasicConfiguration ( Ifx_QSPI *  qspi,
uint32  baconVal 
)

Write configuration into BACON register.

Parameters
qspiPointer to QSPI module registers
baconValbaconVal Value to be entered in BACON register
Returns
None

Definition at line 1011 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_writeBasicConfiguration().

IFX_INLINE void IfxQspi_writeBasicConfigurationBeginStream ( Ifx_QSPI *  qspi,
uint32  baconVal 
)

Write configuration into BACON register with .LAST flag set to 0.

Parameters
qspiPointer to QSPI module registers
baconValbaconVal Value to be entered in BACON register
Returns
None

Definition at line 1017 of file IfxQspi.h.

Referenced by IfxQspi_SpiSlave_initModule().

IFX_INLINE void IfxQspi_writeBasicConfigurationEndStream ( Ifx_QSPI *  qspi,
uint32  baconVal 
)

Write configuration into BACON register with .LAST flag set to 1.

Parameters
qspiPointer to QSPI module registers
baconValbaconVal Value to be entered in BACON register
Returns
None

Definition at line 1027 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_isrDmaTransmit().

IFX_INLINE void IfxQspi_writeExtendedConfiguration ( Ifx_QSPI *  qspi,
IfxQspi_ChannelId  channelId,
uint32  econVal 
)

Writes channel timing configuration into ECON register.

Parameters
qspiPointer to QSPI module registers
channelIdChannel number to which econ val belongs
econValExtended configuration value
Returns
None

Definition at line 1037 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_writeExtendedConfiguration().

IFX_INLINE void IfxQspi_writeMixedDataTransmitFifo ( Ifx_QSPI *  qspi,
uint32  mixEntryVal 
)

Writes Data and Configuration into MIXEDENTRY register.

Parameters
qspiPointer to QSPI module registers
mixEntryValData and configuration in mixed
Returns
None

Definition at line 1044 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_writeMixedDataConfiguration().