I2C handle and configuration structure
In the previous article, we saw I2C driver API requirements. Let’s discuss the creation of the I2C handle structure and configuration structure in this article.
Figure 1 shows the configuration and the handle structure for the I2C peripheral, which is similar to what we did in the case of earlier drivers. Create these structures in the i2c_driver.h file.
In the following article, let’s discuss I2C User configurable Macros.
FastBit Embedded Brain Academy Courses
Click here: https://fastbitlab.com/course1