STM32 I2C Lecture 8: I2C handle and configuration structure

  • Post author:
  • Post category:Blog

 

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.

 

I2C handle and configuration structure
Figure 1. Creation of configuration and handle structure.

 

In the following article, let’s discuss I2C User configurable Macros.

 

FastBit Embedded Brain Academy Courses

Click here: https://fastbitlab.com/course1

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.