Implementation
Configuring the I
The function IfxI2c_I2c_initConfig() initializes an instance of the structure
IfxI2c_I2c_Config with its default values.
The IfxI2c_I2c_Config structure allows setting the parameters to initialize the
module:
›
baudrate – to set the clock speed in bit/s. Typical values are 100 kbit/s in
standard mode, 400 kbit/s in fast mode and 3.4 Mbit/s in high-speed mode.
›
pins – a structure to set the port pins used for the communication.
A serial data line (SDA) and a serial clock line (SCL) carry the information
between the devices, therefore two port pins are required.
The function IfxI2c_I2c_initModule() initializes and activates the I2C module
with the user configuration in master mode.
The functions above are provided by the iLLD header IfxI2c_I2c.h.
2019-10-17
2
C module
Copyright © Infineon Technologies AG 2019. All rights reserved.
6
Need help?
Do you have a question about the I2C Read Ext Device 1 and is the answer not in the manual?
Questions and answers