iLLD_TC27xD  1.0
Operative Functions
Collaboration diagram for Operative Functions:

Functions

IFX_INLINE void IfxQspi_clearAllEventFlags (Ifx_QSPI *qspi)
 Clear ALL service requests. More...
 
IFX_INLINE void IfxQspi_clearRxReq (Ifx_QSPI *qspi)
 Clear RX service requests. More...
 
IFX_INLINE void IfxQspi_clearTxReq (Ifx_QSPI *qspi)
 Clear TX service requests. More...
 
IFX_INLINE void IfxQspi_configPT1Event (Ifx_QSPI *qspi, IfxQspi_PhaseTransitionEvent pt1Config)
 Configure PT1 event (also USR event depending if USREN=1 ) More...
 
IFX_INLINE void IfxQspi_configPT2Event (Ifx_QSPI *qspi, IfxQspi_PhaseTransitionEvent pt2Config)
 Configure PT2 event. More...
 
IFX_INLINE void IfxQspi_enableLoopbackMode (Ifx_QSPI *qspi, boolean enable)
 Enable/Disable Loopback mode. More...
 
IFX_INLINE void IfxQspi_enableModuleSuspend (Ifx_QSPI *qspi, IfxQspi_Suspend suspend)
 enable Hard/Soft Module suspend Note: The api works only when the OCDS is enabled and in Supervisor Mode. When OCDS is disabled the OCS suspend control is ineffective. More...
 
IFX_INLINE void IfxQspi_enablePT1Event (Ifx_QSPI *qspi, boolean enable)
 enable Phase Transition1 Event More...
 
IFX_INLINE void IfxQspi_enablePT2Event (Ifx_QSPI *qspi, boolean enable)
 enable Phase Transition2 Event More...
 
IFX_INLINE void IfxQspi_enableUsrEvent (Ifx_QSPI *qspi, boolean enable)
 enable User Event (Event selected by PT1) More...
 
IFX_INLINE uint16 IfxQspi_getErrorFlags (Ifx_QSPI *qspi)
 
IFX_INLINE void IfxQspi_pause (Ifx_QSPI *qspi)
 Request for Module in Pause state no interrupts no communication. More...
 
IFX_INLINE uint32 IfxQspi_readReceiveFifo (Ifx_QSPI *qspi)
 Read the oldest data from RXFIFO. More...
 
IFX_INLINE void IfxQspi_requestReset (Ifx_QSPI *qspi, IfxQspi_Reset reset)
 Request reset (State Machine & FIFO / Register / Module) More...
 
IFX_INLINE void IfxQspi_run (Ifx_QSPI *qspi)
 Request for QSPI in Run state. More...
 
IFX_INLINE void IfxQspi_setReceiveFifoInterrruptThreshold (Ifx_QSPI *qspi, IfxQspi_RxFifoInt rxFifoInt)
 Set the threshold of RXFIFO for service request generation. More...
 
IFX_INLINE void IfxQspi_writeTransmitFifo (Ifx_QSPI *qspi, uint32 data)
 Write Data into DATAENTRY register. More...
 
IFX_EXTERN void IfxQspi_read16 (Ifx_QSPI *qspi, uint16 *data, Ifx_SizeT count)
 Reads 16bit data from the Rx FIFO. More...
 
IFX_EXTERN void IfxQspi_read32 (Ifx_QSPI *qspi, uint32 *data, Ifx_SizeT count)
 Reads 32bit data from the Rx FIFO. More...
 
IFX_EXTERN void IfxQspi_read8 (Ifx_QSPI *qspi, uint8 *data, Ifx_SizeT count)
 Reads 8bit data from the Rx FIFO. More...
 
IFX_EXTERN void IfxQspi_resetModule (Ifx_QSPI *qspi)
 resets QSPI kernel More...
 
IFX_EXTERN void IfxQspi_write16 (Ifx_QSPI *qspi, IfxQspi_ChannelId channelId, uint16 *data, Ifx_SizeT count)
 Writes 16bit data into the Tx FIFO. More...
 
IFX_EXTERN void IfxQspi_write32 (Ifx_QSPI *qspi, IfxQspi_ChannelId channelId, uint32 *data, Ifx_SizeT count)
 Writes 32bit data into the Tx FIFO. More...
 
IFX_EXTERN void IfxQspi_write8 (Ifx_QSPI *qspi, IfxQspi_ChannelId channelId, uint8 *data, Ifx_SizeT count)
 Writes 8bit data into the Tx FIFO. More...
 

Detailed Description

Function Documentation

IFX_INLINE void IfxQspi_clearAllEventFlags ( Ifx_QSPI *  qspi)

Clear ALL service requests.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 734 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_initModule(), IfxQspi_SpiMaster_isrError(), IfxQspi_SpiSlave_initModule(), and IfxQspi_SpiSlave_isrError().

IFX_INLINE void IfxQspi_clearRxReq ( Ifx_QSPI *  qspi)

Clear RX service requests.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 740 of file IfxQspi.h.

IFX_INLINE void IfxQspi_clearTxReq ( Ifx_QSPI *  qspi)

Clear TX service requests.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 746 of file IfxQspi.h.

IFX_INLINE void IfxQspi_configPT1Event ( Ifx_QSPI *  qspi,
IfxQspi_PhaseTransitionEvent  pt1Config 
)

Configure PT1 event (also USR event depending if USREN=1 )

Parameters
qspiPointer to QSPI module registers
pt1ConfigPhase Transition1 Event Config
Returns
None

Definition at line 752 of file IfxQspi.h.

IFX_INLINE void IfxQspi_configPT2Event ( Ifx_QSPI *  qspi,
IfxQspi_PhaseTransitionEvent  pt2Config 
)

Configure PT2 event.

Parameters
qspiPointer to QSPI module registers
pt2ConfigPhase Transition2 Event Config
Returns
None

Definition at line 758 of file IfxQspi.h.

IFX_INLINE void IfxQspi_enableLoopbackMode ( Ifx_QSPI *  qspi,
boolean  enable 
)

Enable/Disable Loopback mode.

Parameters
qspiPointer to QSPI module registers
enableEnable / Disable loopback
Returns
None

Definition at line 764 of file IfxQspi.h.

IFX_INLINE void IfxQspi_enableModuleSuspend ( Ifx_QSPI *  qspi,
IfxQspi_Suspend  suspend 
)

enable Hard/Soft Module suspend Note: The api works only when the OCDS is enabled and in Supervisor Mode. When OCDS is disabled the OCS suspend control is ineffective.

Parameters
qspiPointer to QSPI module registers
suspendModule suspend
Returns
None

Definition at line 770 of file IfxQspi.h.

IFX_INLINE void IfxQspi_enablePT1Event ( Ifx_QSPI *  qspi,
boolean  enable 
)

enable Phase Transition1 Event

Parameters
qspiPointer to QSPI module registers
enableEnable (1) / Disable (0)
Returns
None

Definition at line 786 of file IfxQspi.h.

IFX_INLINE void IfxQspi_enablePT2Event ( Ifx_QSPI *  qspi,
boolean  enable 
)

enable Phase Transition2 Event

Parameters
qspiPointer to QSPI module registers
enableEnable (1) / Disable (0)
Returns
None

Definition at line 792 of file IfxQspi.h.

IFX_INLINE void IfxQspi_enableUsrEvent ( Ifx_QSPI *  qspi,
boolean  enable 
)

enable User Event (Event selected by PT1)

Parameters
qspiPointer to QSPI module registers
enableEnable (1) / Disable (0)
Returns
None

Definition at line 798 of file IfxQspi.h.

IFX_INLINE uint16 IfxQspi_getErrorFlags ( Ifx_QSPI *  qspi)
Parameters
qspiPointer to QSPI module registers
Returns
Error Flags

Definition at line 818 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_isrError(), and IfxQspi_SpiSlave_isrError().

IFX_INLINE void IfxQspi_pause ( Ifx_QSPI *  qspi)

Request for Module in Pause state no interrupts no communication.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 954 of file IfxQspi.h.

IFX_EXTERN void IfxQspi_read16 ( Ifx_QSPI *  qspi,
uint16 data,
Ifx_SizeT  count 
)

Reads 16bit data from the Rx FIFO.

Parameters
qspiPointer to QSPI module registers
dataReceived data will be copied into this array
countNumber of items to be received
Returns
None

Definition at line 169 of file IfxQspi.c.

IFX_EXTERN void IfxQspi_read32 ( Ifx_QSPI *  qspi,
uint32 data,
Ifx_SizeT  count 
)

Reads 32bit data from the Rx FIFO.

Parameters
qspiPointer to QSPI module registers
dataReceived data will be copied into this array
countNumber of items to be received
Returns
None

Definition at line 181 of file IfxQspi.c.

IFX_EXTERN void IfxQspi_read8 ( Ifx_QSPI *  qspi,
uint8 data,
Ifx_SizeT  count 
)

Reads 8bit data from the Rx FIFO.

Parameters
qspiPointer to QSPI module registers
dataReceived data will be copied into this array
countNumber of items to be received
Returns
None

Definition at line 193 of file IfxQspi.c.

IFX_INLINE uint32 IfxQspi_readReceiveFifo ( Ifx_QSPI *  qspi)

Read the oldest data from RXFIFO.

Parameters
qspiPointer to QSPI module registers

Definition at line 963 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_readReceiveFifo(), and IfxQspi_SpiSlave_readReceiveFifo().

IFX_INLINE void IfxQspi_requestReset ( Ifx_QSPI *  qspi,
IfxQspi_Reset  reset 
)

Request reset (State Machine & FIFO / Register / Module)

Parameters
qspiPointer to QSPI module registers
resetreset type (GLOBALCON.RESETS)
Returns
None

Definition at line 969 of file IfxQspi.h.

IFX_EXTERN void IfxQspi_resetModule ( Ifx_QSPI *  qspi)

resets QSPI kernel

Parameters
qspipointer to QSPI registers
Returns
None

Definition at line 221 of file IfxQspi.c.

IFX_INLINE void IfxQspi_run ( Ifx_QSPI *  qspi)

Request for QSPI in Run state.

Parameters
qspiPointer to QSPI module registers
Returns
None

Definition at line 975 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_initModule(), and IfxQspi_SpiSlave_initModule().

IFX_INLINE void IfxQspi_setReceiveFifoInterrruptThreshold ( Ifx_QSPI *  qspi,
IfxQspi_RxFifoInt  rxFifoInt 
)

Set the threshold of RXFIFO for service request generation.

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

Definition at line 993 of file IfxQspi.h.

IFX_EXTERN void IfxQspi_write16 ( Ifx_QSPI *  qspi,
IfxQspi_ChannelId  channelId,
uint16 data,
Ifx_SizeT  count 
)

Writes 16bit data into the Tx FIFO.

Parameters
qspiPointer to QSPI module registers
channelIdChannel number to which econ val belongs
dataArray of data to be sent
countNumber of items to be sent
Returns
None

Definition at line 268 of file IfxQspi.c.

IFX_EXTERN void IfxQspi_write32 ( Ifx_QSPI *  qspi,
IfxQspi_ChannelId  channelId,
uint32 data,
Ifx_SizeT  count 
)

Writes 32bit data into the Tx FIFO.

Parameters
qspiPointer to QSPI module registers
channelIdChannel number to which econ val belongs
dataArray of data to be sent
countNumber of items to be sent
Returns
None

Definition at line 281 of file IfxQspi.c.

IFX_EXTERN void IfxQspi_write8 ( Ifx_QSPI *  qspi,
IfxQspi_ChannelId  channelId,
uint8 data,
Ifx_SizeT  count 
)

Writes 8bit data into the Tx FIFO.

Parameters
qspiPointer to QSPI module registers
channelIdChannel number to which econ val belongs
dataArray of data to be sent
countNumber of items to be sent
Returns
None

Definition at line 294 of file IfxQspi.c.

IFX_INLINE void IfxQspi_writeTransmitFifo ( Ifx_QSPI *  qspi,
uint32  data 
)

Write Data into DATAENTRY register.

Parameters
qspiPointer to QSPI module registers
dataData to be entered into TxFIFO
Returns
None

Definition at line 1050 of file IfxQspi.h.

Referenced by IfxQspi_SpiMaster_isrDmaTransmit(), IfxQspi_SpiMaster_writeTransmitFifo(), and IfxQspi_SpiSlave_writeTransmitFifo().