![]() ![]() The temperature value is given in two registers. UNITY CMOCK TUTORIAL HOW TOBecause the goal is that you understand how to use CMock. We’re going to focus on applying TDD to the last functionality. Convert the value of the registers to temperature values.Send an OS event to do a temperature measurement. UNITY CMOCK TUTORIAL DRIVERThe driver for the temperature sensor should do the following: It’s going to make more sense as we progress through this post. The files and their relations are in the following picture. DA14681 microcontroller will run eventually the temperature driver.įor this post we need to create 5 files. The library we will use is i2c_adapter.h from dialog microcontrollers. We are going to develop a part of the Si7060 temperature sensor driver, which uses I2C communication protocol.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |