iLLD_TC27xC  1.0
Collaboration diagram for Functions:

Functions

IFX_INLINE boolean IfxI2c_arbitrationLostFlag (Ifx_I2C *i2c)
 returns the Arbitration Lost Flag More...
 
IFX_INLINE boolean IfxI2c_busIsFree (Ifx_I2C *i2c)
 Returns if the bus is free. More...
 
IFX_INLINE void IfxI2c_clearArbitrationLostFlag (Ifx_I2C *i2c)
 Clears the Arbitration Lost Flag. More...
 
IFX_INLINE void IfxI2c_clearErrorInterrupts (Ifx_I2C *i2c)
 
IFX_INLINE void IfxI2c_clearFifoRequests (Ifx_I2C *i2c)
 
IFX_INLINE void IfxI2c_clearProtocolInterrupts (Ifx_I2C *i2c)
 Clears the Protocol Interrupt Flags. More...
 
IFX_INLINE void IfxI2c_clearReceivedNakFlag (Ifx_I2C *i2c)
 Clears the NAK Flag. More...
 
IFX_INLINE void IfxI2c_clearTxEndInterrupt (Ifx_I2C *i2c)
 
IFX_INLINE IfxI2c_BusStatus IfxI2c_getBusStatus (Ifx_I2C *i2c)
 
IFX_INLINE boolean IfxI2c_isFifoRequest (Ifx_I2C *i2c)
 Returns if the Fifo is requesting new data. More...
 
IFX_INLINE boolean IfxI2c_isTxEndInterrupt (Ifx_I2C *i2c)
 
IFX_INLINE boolean IfxI2c_receivedNakFlag (Ifx_I2C *i2c)
 returns the NAK Flag More...
 
IFX_INLINE void IfxI2c_run (Ifx_I2C *i2c)
 
IFX_INLINE void IfxI2c_setPinSelection (Ifx_I2C *i2c, IfxI2c_PinSelect pisel)
 
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_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_enableModule (Ifx_I2C *i2c)
 Enables the I2c Module. 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_setBaudrate (Ifx_I2C *i2c, float32 baudrate)
 Calculates the desired baudrate. More...
 

Detailed Description

Function Documentation

IFX_INLINE boolean IfxI2c_arbitrationLostFlag ( Ifx_I2C *  i2c)

returns the Arbitration Lost Flag

Definition at line 247 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE boolean IfxI2c_busIsFree ( Ifx_I2C *  i2c)

Returns if the bus is free.

Definition at line 253 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearArbitrationLostFlag ( Ifx_I2C *  i2c)

Clears the Arbitration Lost Flag.

Returns
None

Definition at line 266 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearErrorInterrupts ( Ifx_I2C *  i2c)
Returns
None

Definition at line 272 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearFifoRequests ( Ifx_I2C *  i2c)
Returns
None

Definition at line 278 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearProtocolInterrupts ( Ifx_I2C *  i2c)

Clears the Protocol Interrupt Flags.

Returns
None

Definition at line 284 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearReceivedNakFlag ( Ifx_I2C *  i2c)

Clears the NAK Flag.

Returns
None

Definition at line 290 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_clearTxEndInterrupt ( Ifx_I2C *  i2c)
Returns
None

Definition at line 296 of file IfxI2c.h.

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

IFX_EXTERN void IfxI2c_configureAsMaster ( Ifx_I2C *  i2c)

Configures the Module as Master.

Returns
None

Definition at line 35 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_EXTERN void IfxI2c_disableModule ( Ifx_I2C *  i2c)

Disables the I2c Module.

Returns
None

Definition at line 56 of file IfxI2c.c.

IFX_EXTERN void IfxI2c_enableModule ( Ifx_I2C *  i2c)

Enables the I2c Module.

Returns
None

Definition at line 71 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_EXTERN float32 IfxI2c_getBaudrate ( Ifx_I2C *  i2c)

Returns the real Baudrate.

Returns
Baudrate

Definition at line 100 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_INLINE IfxI2c_BusStatus IfxI2c_getBusStatus ( Ifx_I2C *  i2c)
Returns
BusStatus

Definition at line 302 of file IfxI2c.h.

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

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

Definition at line 111 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 308 of file IfxI2c.h.

IFX_INLINE boolean IfxI2c_isTxEndInterrupt ( Ifx_I2C *  i2c)
Returns
is Tx interrupt

Definition at line 314 of file IfxI2c.h.

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

IFX_INLINE boolean IfxI2c_receivedNakFlag ( Ifx_I2C *  i2c)

returns the NAK Flag

Returns

Definition at line 320 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

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 122 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 138 of file IfxI2c.c.

IFX_INLINE void IfxI2c_run ( Ifx_I2C *  i2c)
Parameters
i2c
Returns
None

Definition at line 326 of file IfxI2c.h.

Referenced by IfxI2c_I2c_initModule().

IFX_EXTERN void IfxI2c_setBaudrate ( Ifx_I2C *  i2c,
float32  baudrate 
)

Calculates the desired baudrate.

Returns
None

Definition at line 151 of file IfxI2c.c.

Referenced by IfxI2c_I2c_initModule().

IFX_INLINE void IfxI2c_setPinSelection ( Ifx_I2C *  i2c,
IfxI2c_PinSelect  pisel 
)
Returns
None

Definition at line 332 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.

Returns
None

Definition at line 338 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read().

IFX_INLINE void IfxI2c_setSlaveDeviceAddress ( Ifx_I2C *  i2c,
uint16  address 
)
Returns
None

Definition at line 344 of file IfxI2c.h.

IFX_INLINE void IfxI2c_setTransmitPacketSize ( Ifx_I2C *  i2c,
Ifx_SizeT  size 
)

Sets the number of bytes to be tansmitted.

Returns
None

Definition at line 350 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxI2c_stop ( Ifx_I2C *  i2c)
Returns
None

Definition at line 356 of file IfxI2c.h.

Referenced by IfxI2c_configureAsMaster(), and IfxI2c_I2c_initModule().

IFX_INLINE void IfxI2c_waitBusFree ( Ifx_I2C *  i2c)
Returns
None

Definition at line 362 of file IfxI2c.h.

IFX_INLINE void IfxI2c_writeFifo ( Ifx_I2C *  i2c,
uint32  packet 
)

Writes a packet (4 bytes) into the Fifo.

Returns
None

Definition at line 369 of file IfxI2c.h.

Referenced by IfxI2c_I2c_read(), and IfxI2c_I2c_write().