iLLD_TC27xD
1.0
|
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... | |
IFX_EXTERN float IfxQspi_calcRealBaudrate | ( | Ifx_QSPI * | qspi, |
IfxQspi_ChannelId | channelId | ||
) |
Function to calculate baudrate of specified channel.
qspi | Pointer to QSPI module registers |
channelId | QSPI channel number |
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.
qspi | Pointer to QSPI module registers |
channelId | QSPI Channel Number |
chMode | Frame configuration |
baudrate | The desired baudrate |
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.
qspi | Pointer to QSPI module registers |
cs | QSPI channel Number : 8->0,9->1,....... |
chConfig | SPI Channel Configuration |
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.
qspi | Pointer to QSPI module registers |
baudrate | Maximum baudrate in Float |
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.
qspi | Pointer to QSPI module registers |
maxBaudrate | Maximum baudrate in Float |
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) |
IFX_INLINE void IfxQspi_flushTransmitFifo | ( | Ifx_QSPI * | qspi) |
IFX_INLINE IfxQspi_Mode IfxQspi_getMode | ( | Ifx_QSPI * | qspi) |
IFX_INLINE float IfxQspi_getModuleFrequency | ( | Ifx_QSPI * | qspi) |
Specifies function to get module frequency.
qspi | Pointer to QSPI module registers |
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.
qspi | Pointer to QSPI module registers |
Definition at line 853 of file IfxQspi.h.
Referenced by IfxQspi_pause().
IFX_INLINE uint8 IfxQspi_getReceiveFifoLevel | ( | Ifx_QSPI * | qspi) |
IFX_INLINE float IfxQspi_getTimeQuantaFrequency | ( | Ifx_QSPI * | qspi) |
Gets Time Quanta frequency.
qspi | Pointer to QSPI module registers |
Definition at line 872 of file IfxQspi.h.
Referenced by IfxQspi_calculateExtendedConfigurationValue().
IFX_INLINE uint8 IfxQspi_getTransmitFifoLevel | ( | Ifx_QSPI * | qspi) |
IFX_INLINE boolean IfxQspi_isModuleEnabled | ( | Ifx_QSPI * | qspi) |
IFX_INLINE void IfxQspi_setDisableModuleRequest | ( | Ifx_QSPI * | qspi) |
IFX_INLINE void IfxQspi_setEnableModuleRequest | ( | Ifx_QSPI * | qspi) |
Sets the enable module request.
qspi | Pointer to QSPI module registers |
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 | ||
) |
IFX_INLINE void IfxQspi_setSleepMode | ( | Ifx_QSPI * | qspi, |
IfxQspi_SleepMode | mode | ||
) |
Sets the disable module request.
qspi | Pointer to QSPI module registers |
mode | Sleep mode selection |
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 | ||
) |
IFX_INLINE void IfxQspi_writeBasicConfiguration | ( | Ifx_QSPI * | qspi, |
uint32 | baconVal | ||
) |
Write configuration into BACON register.
qspi | Pointer to QSPI module registers |
baconVal | baconVal Value to be entered in BACON register |
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.
qspi | Pointer to QSPI module registers |
baconVal | baconVal Value to be entered in BACON register |
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.
qspi | Pointer to QSPI module registers |
baconVal | baconVal Value to be entered in BACON register |
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.
qspi | Pointer to QSPI module registers |
channelId | Channel number to which econ val belongs |
econVal | Extended configuration value |
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.
qspi | Pointer to QSPI module registers |
mixEntryVal | Data and configuration in mixed |
Definition at line 1044 of file IfxQspi.h.
Referenced by IfxQspi_SpiMaster_writeMixedDataConfiguration().