iLLD_TC27xD  1.0
Collaboration diagram for Functions:

Functions

IFX_INLINE boolean IfxI2c_busIsFree (Ifx_I2C *i2c)
 Returns if the bus is free. More...
 
IFX_INLINE void IfxI2c_clearAllErrorInterruptSources (Ifx_I2C *i2c)
 clears all Error Interrupt sources More...
 
IFX_INLINE void IfxI2c_clearAllProtocolInterruptSources (Ifx_I2C *i2c)
 Clears all Protocol Interrupt sources. More...
 
IFX_INLINE void IfxI2c_clearBurstRequestInterruptSource (Ifx_I2C *i2c)
 clears burst request interrupt source More...
 
IFX_INLINE void IfxI2c_clearErrorInterruptSource (Ifx_I2C *i2c, IfxI2c_ErrorInterruptSource source)
 clears the specified source of error interrupt More...
 
IFX_INLINE void IfxI2c_clearLastBurstRequestInterruptSource (Ifx_I2C *i2c)
 clears last burst request interrupt source More...
 
IFX_INLINE void IfxI2c_clearLastSingleRequestInterruptSource (Ifx_I2C *i2c)
 clears last single request interrupt source More...
 
IFX_INLINE void IfxI2c_clearProtocolInterruptSource (Ifx_I2C *i2c, IfxI2c_ProtocolInterruptSource source)
 clears the specified source of protocol interrupt More...
 
IFX_INLINE void IfxI2c_clearSingleRequestInterruptSource (Ifx_I2C *i2c)
 clears single request interrupt source More...
 
IFX_INLINE void IfxI2c_disableBurstRequestInterruptSource (Ifx_I2C *i2c)
 disables burst request interrupt source More...
 
IFX_INLINE void IfxI2c_disableErrorInterruptFlag (Ifx_I2C *i2c)
 disables the error interrupt flag More...
 
IFX_INLINE void IfxI2c_disableErrorInterruptSource (Ifx_I2C *i2c, IfxI2c_ErrorInterruptSource source)
 disables the specified source of error interrupt More...
 
IFX_INLINE void IfxI2c_disableLastBurstRequestInterruptSource (Ifx_I2C *i2c)
 disables last burst request interrupt source More...
 
IFX_INLINE void IfxI2c_disableLastSingleRequestInterruptSource (Ifx_I2C *i2c)
 disables last single request interrupt source More...
 
IFX_INLINE void IfxI2c_disableProtocolInterruptFlag (Ifx_I2C *i2c)
 disables the Protocol interrupt flag More...
 
IFX_INLINE void IfxI2c_disableProtocolInterruptSource (Ifx_I2C *i2c, IfxI2c_ProtocolInterruptSource source)
 disables the specified source of protocol interrupt More...
 
IFX_INLINE void IfxI2c_disableSingleRequestInterruptSource (Ifx_I2C *i2c)
 disables single request interrupt source More...
 
IFX_INLINE void IfxI2c_enableBurstRequestInterruptSource (Ifx_I2C *i2c)
 enables burst request interrupt source More...
 
IFX_INLINE void IfxI2c_enableErrorInterruptFlag (Ifx_I2C *i2c)
 enables the error interrupt flag More...
 
IFX_INLINE void IfxI2c_enableErrorInterruptSource (Ifx_I2C *i2c, IfxI2c_ErrorInterruptSource source)
 enables the specified source of error interrupt More...
 
IFX_INLINE void IfxI2c_enableLastBurstRequestInterruptSource (Ifx_I2C *i2c)
 enables last burst request interrupt source More...
 
IFX_INLINE void IfxI2c_enableLastSingleRequestInterruptSource (Ifx_I2C *i2c)
 enables last single request interrupt source More...
 
IFX_INLINE void IfxI2c_enableProtocolInterruptFlag (Ifx_I2C *i2c)
 enables the protocol interrupt flag More...
 
IFX_INLINE void IfxI2c_enableProtocolInterruptSource (Ifx_I2C *i2c, IfxI2c_ProtocolInterruptSource source)
 enables the specified source of protocol interrupt More...
 
IFX_INLINE void IfxI2c_enableSingleRequestInterruptSource (Ifx_I2C *i2c)
 enables single request interrupt source More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getBurstDataTransferSrcPointer (Ifx_I2C *i2c)
 Returns the SRC pointer for I2C burst data transfer request interrupt. More...
 
IFX_INLINE boolean IfxI2c_getBurstRequestInterruptSourceStatus (Ifx_I2C *i2c)
 returns the status of burst request interrupt source status More...
 
IFX_INLINE IfxI2c_BusStatus IfxI2c_getBusStatus (Ifx_I2C *i2c)
 
IFX_INLINE boolean IfxI2c_getErrorInterruptFlagStatus (Ifx_I2C *i2c)
 returns the current status of error interrupt flag More...
 
IFX_INLINE boolean IfxI2c_getErrorInterruptSourceStatus (Ifx_I2C *i2c, IfxI2c_ErrorInterruptSource source)
 returns the status of the error interrupt source More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getErrorSrcPointer (Ifx_I2C *i2c)
 Returns the SRC pointer for I2C Error interrupt. More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getLastBurstDataTransferSrcPointer (Ifx_I2C *i2c)
 Returns the SRC pointer for I2C last burst data transfer request interrupt. More...
 
IFX_INLINE boolean IfxI2c_getLastBurstRequestInterruptSourceStatus (Ifx_I2C *i2c)
 returns the status of last burst request interrupt source status More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getLastSingleDataTransferSrcPointer (Ifx_I2C *i2c)
 Returns the SRC pointer for I2C last single data transfer request interrupt. More...
 
IFX_INLINE boolean IfxI2c_getLastSingleRequestInterruptSourceStatus (Ifx_I2C *i2c)
 returns the status of last single request interrupt source status More...
 
IFX_INLINE boolean IfxI2c_getProtocolInterruptFlagStatus (Ifx_I2C *i2c)
 returns the current raw status of protocol interrupt More...
 
IFX_INLINE boolean IfxI2c_getProtocolInterruptSourceStatus (Ifx_I2C *i2c, IfxI2c_ProtocolInterruptSource source)
 returns the status of specified protocol interrupt source More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getProtocolSrcPointer (Ifx_I2C *i2c)
 Returns the SRC pointer for I2C Protocol interrupt. More...
 
IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getSingleDataTransferSrcPointer (Ifx_I2C *i2c)
 Returns the SRC pointer for I2C single data transfer request interrupt. More...
 
IFX_INLINE boolean IfxI2c_getSingleRequestInterruptSourceStatus (Ifx_I2C *i2c)
 returns the status of single request interrupt source status More...
 
IFX_INLINE boolean IfxI2c_isFifoRequest (Ifx_I2C *i2c)
 Returns if the Fifo is requesting new data. More...
 
IFX_INLINE void IfxI2c_run (Ifx_I2C *i2c)
 
IFX_INLINE void IfxI2c_setPinSelection (Ifx_I2C *i2c, IfxI2c_PinSelect pisel)
 selects the pin More...
 
IFX_INLINE void IfxI2c_setReceivePacketSize (Ifx_I2C *i2c, Ifx_SizeT size)
 Sets the number of bytes to be received. More...
 
IFX_INLINE void IfxI2c_setSlaveDeviceAddress (Ifx_I2C *i2c, uint16 address)
 
IFX_INLINE void IfxI2c_setSleepMode (Ifx_I2C *i2c, IfxI2c_SleepMode mode)
 Sets the sensitivity of the module to sleep signal. More...
 
IFX_INLINE void IfxI2c_setTransmitPacketSize (Ifx_I2C *i2c, Ifx_SizeT size)
 Sets the number of bytes to be tansmitted. More...
 
IFX_INLINE void IfxI2c_stop (Ifx_I2C *i2c)
 
IFX_INLINE void IfxI2c_waitBusFree (Ifx_I2C *i2c)
 
IFX_INLINE void IfxI2c_writeFifo (Ifx_I2C *i2c, uint32 packet)
 Writes a packet (4 bytes) into the Fifo. More...
 
IFX_EXTERN void IfxI2c_configureAsMaster (Ifx_I2C *i2c)
 Configures the Module as Master. More...
 
IFX_EXTERN void IfxI2c_disableModule (Ifx_I2C *i2c)
 Disables the I2c Module. More...
 
IFX_EXTERN void IfxI2c_enableBurstDataTransferInterrupt (Ifx_I2C *i2c, IfxSrc_Tos typeOfService, uint16 priority)
 Enables the Burst data transfer interrupt. More...
 
IFX_EXTERN void IfxI2c_enableErrorInterrupt (Ifx_I2C *i2c, IfxSrc_Tos typeOfService, uint16 priority)
 Enables the Error interrupt. More...
 
IFX_EXTERN void IfxI2c_enableLastBurstDataTransferInterrupt (Ifx_I2C *i2c, IfxSrc_Tos typeOfService, uint16 priority)
 enables the last burst data transfer interrupt More...
 
IFX_EXTERN void IfxI2c_enableLastSingleDataTransferInterrupt (Ifx_I2C *i2c, IfxSrc_Tos typeOfService, uint16 priority)
 enables the last single data transfer interrupt More...
 
IFX_EXTERN void IfxI2c_enableModule (Ifx_I2C *i2c)
 Enables the I2c Module. More...
 
IFX_EXTERN void IfxI2c_enableProtocolInterrupt (void *i2c, IfxSrc_Tos typeOfService, uint16 priority)
 Enables the protocol interrupt. More...
 
IFX_EXTERN void IfxI2c_enableSingleDataTransferInterrupt (Ifx_I2C *i2c, IfxSrc_Tos typeOfService, uint16 priority)
 enables the single data transfer interrupt More...
 
IFX_EXTERN float32 IfxI2c_getBaudrate (Ifx_I2C *i2c)
 Returns the real Baudrate. More...
 
IFX_EXTERN void IfxI2c_initSclSdaPin (const IfxI2c_Scl_InOut *scl, const IfxI2c_Sda_InOut *sda, IfxPort_PadDriver padDriver)
 
IFX_EXTERN void IfxI2c_releaseBus (Ifx_I2C *i2c)
 Releases the bus, i.e puts a stop condition on the bus. More...
 
IFX_EXTERN void IfxI2c_resetFifo (Ifx_I2C *i2c)
 
IFX_EXTERN void IfxI2c_resetModule (Ifx_I2C *i2c)
 resets the I2c kernel More...
 
IFX_EXTERN void IfxI2c_setBaudrate (Ifx_I2C *i2c, float32 baudrate)
 Calculates the desired baudrate. More...
 

Detailed Description

Function Documentation

IFX_INLINE boolean IfxI2c_busIsFree ( Ifx_I2C *  i2c)

Returns if the bus is free.

Definition at line 552 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearAllErrorInterruptSources ( Ifx_I2C *  i2c)

clears all Error Interrupt sources

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 565 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearAllProtocolInterruptSources ( Ifx_I2C *  i2c)

Clears all Protocol Interrupt sources.

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 571 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearBurstRequestInterruptSource ( Ifx_I2C *  i2c)

clears burst request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 577 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearErrorInterruptSource ( Ifx_I2C *  i2c,
IfxI2c_ErrorInterruptSource  source 
)

clears the specified source of error interrupt

Parameters
i2cpointer to i2c registers
sourceerror interrupt source
Returns
None

Definition at line 583 of file IfxI2c.h.

IFX_INLINE void IfxI2c_clearLastBurstRequestInterruptSource ( Ifx_I2C *  i2c)

clears last burst request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 589 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearLastSingleRequestInterruptSource ( Ifx_I2C *  i2c)

clears last single request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 595 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearProtocolInterruptSource ( Ifx_I2C *  i2c,
IfxI2c_ProtocolInterruptSource  source 
)

clears the specified source of protocol interrupt

Parameters
i2cpointer to i2c registers
sourceprotocol interrupt source
Returns
None

Definition at line 601 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), IfxI2c_I2c_write(), and IfxI2c_releaseBus().

IFX_INLINE void IfxI2c_clearSingleRequestInterruptSource ( Ifx_I2C *  i2c)

clears single request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 607 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_EXTERN void IfxI2c_configureAsMaster ( Ifx_I2C *  i2c)

Configures the Module as Master.

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 35 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_INLINE void IfxI2c_disableBurstRequestInterruptSource ( Ifx_I2C *  i2c)

disables burst request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 613 of file IfxI2c.h.

IFX_INLINE void IfxI2c_disableErrorInterruptFlag ( Ifx_I2C *  i2c)

disables the error interrupt flag

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 619 of file IfxI2c.h.

IFX_INLINE void IfxI2c_disableErrorInterruptSource ( Ifx_I2C *  i2c,
IfxI2c_ErrorInterruptSource  source 
)

disables the specified source of error interrupt

Parameters
i2cpointer to i2c registers
sourceerror interrupt source
Returns
None

Definition at line 625 of file IfxI2c.h.

IFX_INLINE void IfxI2c_disableLastBurstRequestInterruptSource ( Ifx_I2C *  i2c)

disables last burst request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 631 of file IfxI2c.h.

IFX_INLINE void IfxI2c_disableLastSingleRequestInterruptSource ( Ifx_I2C *  i2c)

disables last single request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 637 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_disableModule ( Ifx_I2C *  i2c)

Disables the I2c Module.

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 56 of file IfxI2c.c.

IFX_INLINE void IfxI2c_disableProtocolInterruptFlag ( Ifx_I2C *  i2c)

disables the Protocol interrupt flag

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 643 of file IfxI2c.h.

IFX_INLINE void IfxI2c_disableProtocolInterruptSource ( Ifx_I2C *  i2c,
IfxI2c_ProtocolInterruptSource  source 
)

disables the specified source of protocol interrupt

Parameters
i2cpointer to i2c registers
sourceprotocol interrupt source
Returns
None

Definition at line 649 of file IfxI2c.h.

IFX_INLINE void IfxI2c_disableSingleRequestInterruptSource ( Ifx_I2C *  i2c)

disables single request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 655 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_enableBurstDataTransferInterrupt ( Ifx_I2C *  i2c,
IfxSrc_Tos  typeOfService,
uint16  priority 
)

Enables the Burst data transfer interrupt.

Parameters
i2cpointer to i2c registers
typeOfServiceType of Service (Cpu or DMA)
prioritypriority of the interrupt
Returns
None

Definition at line 71 of file IfxI2c.c.

IFX_INLINE void IfxI2c_enableBurstRequestInterruptSource ( Ifx_I2C *  i2c)

enables burst request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 661 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_enableErrorInterrupt ( Ifx_I2C *  i2c,
IfxSrc_Tos  typeOfService,
uint16  priority 
)

Enables the Error interrupt.

Parameters
i2cpointer to i2c registers
typeOfServiceType of Service (Cpu or DMA)
prioritypriority of the interrupt
Returns
None

Definition at line 80 of file IfxI2c.c.

IFX_INLINE void IfxI2c_enableErrorInterruptFlag ( Ifx_I2C *  i2c)

enables the error interrupt flag

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 667 of file IfxI2c.h.

IFX_INLINE void IfxI2c_enableErrorInterruptSource ( Ifx_I2C *  i2c,
IfxI2c_ErrorInterruptSource  source 
)

enables the specified source of error interrupt

Parameters
i2cpointer to i2c registers
sourceerror interrupt source
Returns
None

Definition at line 673 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_enableLastBurstDataTransferInterrupt ( Ifx_I2C *  i2c,
IfxSrc_Tos  typeOfService,
uint16  priority 
)

enables the last burst data transfer interrupt

Parameters
i2cpointer to i2c registers
typeOfServiceType of Service (Cpu or DMA)
prioritypriority of the interrupt
Returns
None

Definition at line 89 of file IfxI2c.c.

IFX_INLINE void IfxI2c_enableLastBurstRequestInterruptSource ( Ifx_I2C *  i2c)

enables last burst request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 679 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_enableLastSingleDataTransferInterrupt ( Ifx_I2C *  i2c,
IfxSrc_Tos  typeOfService,
uint16  priority 
)

enables the last single data transfer interrupt

Parameters
i2cpointer to i2c registers
typeOfServiceType of Service (Cpu or DMA)
prioritypriority of the interrupt
Returns
None

Definition at line 98 of file IfxI2c.c.

IFX_INLINE void IfxI2c_enableLastSingleRequestInterruptSource ( Ifx_I2C *  i2c)

enables last single request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 685 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_enableModule ( Ifx_I2C *  i2c)

Enables the I2c Module.

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 107 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_EXTERN void IfxI2c_enableProtocolInterrupt ( void *  i2c,
IfxSrc_Tos  typeOfService,
uint16  priority 
)

Enables the protocol interrupt.

Parameters
i2cpointer to i2c registers
typeOfServiceType of Service (Cpu or DMA)
priorityPriority of the interrupt
Returns
None

Definition at line 136 of file IfxI2c.c.

IFX_INLINE void IfxI2c_enableProtocolInterruptFlag ( Ifx_I2C *  i2c)

enables the protocol interrupt flag

Parameters
i2cpointer to I2C registers
Returns
None

Definition at line 691 of file IfxI2c.h.

IFX_INLINE void IfxI2c_enableProtocolInterruptSource ( Ifx_I2C *  i2c,
IfxI2c_ProtocolInterruptSource  source 
)

enables the specified source of protocol interrupt

Parameters
i2cpointer to I2C registers
sourceprotocol interrupt source
Returns
None

Definition at line 697 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_enableSingleDataTransferInterrupt ( Ifx_I2C *  i2c,
IfxSrc_Tos  typeOfService,
uint16  priority 
)

enables the single data transfer interrupt

Parameters
i2cpointer to i2c registers
typeOfServiceType of Service (Cpu or DMA)
prioritypriority of the interrupt
Returns
None

Definition at line 145 of file IfxI2c.c.

IFX_INLINE void IfxI2c_enableSingleRequestInterruptSource ( Ifx_I2C *  i2c)

enables single request interrupt source

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 703 of file IfxI2c.h.

IFX_EXTERN float32 IfxI2c_getBaudrate ( Ifx_I2C *  i2c)

Returns the real Baudrate.

Returns
Baudrate

Definition at line 154 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getBurstDataTransferSrcPointer ( Ifx_I2C *  i2c)

Returns the SRC pointer for I2C burst data transfer request interrupt.

Parameters
i2cpointer to i2c registers
Returns
SRC pointer for I2C burst data transfer Service interrupt

Definition at line 709 of file IfxI2c.h.

Referenced by IfxI2c_enableBurstDataTransferInterrupt().

IFX_INLINE boolean IfxI2c_getBurstRequestInterruptSourceStatus ( Ifx_I2C *  i2c)

returns the status of burst request interrupt source status

Parameters
i2cpointer to i2c registers
Returns
status

Definition at line 722 of file IfxI2c.h.

IFX_INLINE IfxI2c_BusStatus IfxI2c_getBusStatus ( Ifx_I2C *  i2c)
Parameters
i2cpointer to i2c registers
Returns
BusStatus

Definition at line 728 of file IfxI2c.h.

Referenced by IfxI2c_I2c_initModule(), IfxI2c_I2c_read(), IfxI2c_I2c_write(), and IfxI2c_waitBusFree().

IFX_INLINE boolean IfxI2c_getErrorInterruptFlagStatus ( Ifx_I2C *  i2c)

returns the current status of error interrupt flag

Parameters
i2cpointer to i2c registers
Returns
status

Definition at line 734 of file IfxI2c.h.

IFX_INLINE boolean IfxI2c_getErrorInterruptSourceStatus ( Ifx_I2C *  i2c,
IfxI2c_ErrorInterruptSource  source 
)

returns the status of the error interrupt source

Parameters
i2cpointer to i2c registers
sourceerror interrupt source
Returns
status

Definition at line 740 of file IfxI2c.h.

IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getErrorSrcPointer ( Ifx_I2C *  i2c)

Returns the SRC pointer for I2C Error interrupt.

Parameters
i2cpointer to i2c registers
Returns
SRC pointer for I2C Error Service interrupt

Definition at line 746 of file IfxI2c.h.

Referenced by IfxI2c_enableErrorInterrupt().

IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getLastBurstDataTransferSrcPointer ( Ifx_I2C *  i2c)

Returns the SRC pointer for I2C last burst data transfer request interrupt.

Parameters
i2cpointer to i2c registers
Returns
SRC pointer for I2C last burst data transfer Service interrupt

Definition at line 759 of file IfxI2c.h.

Referenced by IfxI2c_enableLastBurstDataTransferInterrupt().

IFX_INLINE boolean IfxI2c_getLastBurstRequestInterruptSourceStatus ( Ifx_I2C *  i2c)

returns the status of last burst request interrupt source status

Parameters
i2cpointer to i2c registers
Returns
status

Definition at line 772 of file IfxI2c.h.

IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getLastSingleDataTransferSrcPointer ( Ifx_I2C *  i2c)

Returns the SRC pointer for I2C last single data transfer request interrupt.

Parameters
i2cpointer to i2c registers
Returns
SRC pointer for I2C last single data transfer Service interrupt

Definition at line 778 of file IfxI2c.h.

Referenced by IfxI2c_enableLastSingleDataTransferInterrupt().

IFX_INLINE boolean IfxI2c_getLastSingleRequestInterruptSourceStatus ( Ifx_I2C *  i2c)

returns the status of last single request interrupt source status

Parameters
i2cpointer to i2c registers
Returns
status

Definition at line 791 of file IfxI2c.h.

IFX_INLINE boolean IfxI2c_getProtocolInterruptFlagStatus ( Ifx_I2C *  i2c)

returns the current raw status of protocol interrupt

Parameters
i2cpointer to i2c registers
Returns
status

Definition at line 797 of file IfxI2c.h.

IFX_INLINE boolean IfxI2c_getProtocolInterruptSourceStatus ( Ifx_I2C *  i2c,
IfxI2c_ProtocolInterruptSource  source 
)

returns the status of specified protocol interrupt source

Parameters
i2cpointer to i2c registers
sourceprotocol interrupt source
Returns
status

Definition at line 803 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), IfxI2c_I2c_write(), and IfxI2c_releaseBus().

IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getProtocolSrcPointer ( Ifx_I2C *  i2c)

Returns the SRC pointer for I2C Protocol interrupt.

Parameters
i2cpointer to i2c registers
Returns
SRC pointer for I2C Protocol Service interrupt

Definition at line 809 of file IfxI2c.h.

Referenced by IfxI2c_enableProtocolInterrupt().

IFX_INLINE volatile Ifx_SRC_SRCR * IfxI2c_getSingleDataTransferSrcPointer ( Ifx_I2C *  i2c)

Returns the SRC pointer for I2C single data transfer request interrupt.

Parameters
i2cpointer to i2c registers
Returns
SRC pointer for I2C single data transfer Service interrupt

Definition at line 822 of file IfxI2c.h.

Referenced by IfxI2c_enableSingleDataTransferInterrupt().

IFX_INLINE boolean IfxI2c_getSingleRequestInterruptSourceStatus ( Ifx_I2C *  i2c)

returns the status of single request interrupt source status

Parameters
i2cpointer to i2c registers
Returns
status

Definition at line 835 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_initSclSdaPin ( const IfxI2c_Scl_InOut scl,
const IfxI2c_Sda_InOut sda,
IfxPort_PadDriver  padDriver 
)
Returns
None

Definition at line 165 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_INLINE boolean IfxI2c_isFifoRequest ( Ifx_I2C *  i2c)

Returns if the Fifo is requesting new data.

Definition at line 841 of file IfxI2c.h.

IFX_EXTERN void IfxI2c_releaseBus ( Ifx_I2C *  i2c)

Releases the bus, i.e puts a stop condition on the bus.

Returns
None

Definition at line 176 of file IfxI2c.c.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_EXTERN void IfxI2c_resetFifo ( Ifx_I2C *  i2c)
Returns
None

Definition at line 192 of file IfxI2c.c.

IFX_EXTERN void IfxI2c_resetModule ( Ifx_I2C *  i2c)

resets the I2c kernel

Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 205 of file IfxI2c.c.

IFX_INLINE void IfxI2c_run ( Ifx_I2C *  i2c)
Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 847 of file IfxI2c.h.

Referenced by IfxI2c_I2c_initModule().

IFX_EXTERN void IfxI2c_setBaudrate ( Ifx_I2C *  i2c,
float32  baudrate 
)

Calculates the desired baudrate.

Parameters
i2cpointer to i2c registers
baudratespecifies the baud rate
Returns
None

Definition at line 224 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_INLINE void IfxI2c_setPinSelection ( Ifx_I2C *  i2c,
IfxI2c_PinSelect  pisel 
)

selects the pin

Parameters
i2cpointer to i2c registers
piselpin to be select
Returns
None

Definition at line 853 of file IfxI2c.h.

Referenced by IfxI2c_initSclSdaPin().

IFX_INLINE void IfxI2c_setReceivePacketSize ( Ifx_I2C *  i2c,
Ifx_SizeT  size 
)

Sets the number of bytes to be received.

Parameters
i2cpointer to i2c registers
sizenumber of packets
Returns
None

Definition at line 859 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read().

IFX_INLINE void IfxI2c_setSlaveDeviceAddress ( Ifx_I2C *  i2c,
uint16  address 
)
Parameters
i2cpointer to i2c registers
addressdevice address
Returns
None

Definition at line 865 of file IfxI2c.h.

IFX_INLINE void IfxI2c_setSleepMode ( Ifx_I2C *  i2c,
IfxI2c_SleepMode  mode 
)

Sets the sensitivity of the module to sleep signal.

Parameters
i2cpointer to i2c registers
modemode selection (enable / disable)
Returns
None

Definition at line 871 of file IfxI2c.h.

IFX_INLINE void IfxI2c_setTransmitPacketSize ( Ifx_I2C *  i2c,
Ifx_SizeT  size 
)

Sets the number of bytes to be tansmitted.

Parameters
i2cpointer to i2c registers
sizenumber of packets
Returns
None

Definition at line 877 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_stop ( Ifx_I2C *  i2c)
Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 883 of file IfxI2c.h.

Referenced by IfxI2c_configureAsMaster(), and IfxI2c_I2c_initModule().

IFX_INLINE void IfxI2c_waitBusFree ( Ifx_I2C *  i2c)
Parameters
i2cpointer to i2c registers
Returns
None

Definition at line 889 of file IfxI2c.h.

IFX_INLINE void IfxI2c_writeFifo ( Ifx_I2C *  i2c,
uint32  packet 
)

Writes a packet (4 bytes) into the Fifo.

Parameters
i2cpointer to i2c registers
packetspecifies the byte to be transfer
Returns
None

Definition at line 896 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().