I2cToCan Click example.
Description
This library contains API for the I2C to CAN click driver. This demo application shows an example of an I2C CAN click wired to the VAV Press click for reading differential pressure and temperature measurement.
The demo application is composed of two sections :
Application Init
Initialization of I2C module and log UART. After driver initialization and default settings, the app set VAV Press click I2C slave address ( 0x5C ) and enable device.
Application Task
This is an example that shows the use of an I2C to CAN click boardâ„¢. Logs pressure difference [ Pa ] and temperature [ degree Celsius ] values of the VAV Press click wired to the I2C to CAN click boardâ„¢.
Results are being sent to the Usart Terminal where you can track their changes.
- Note
- void get_dif_press_and_temp ( void ) - Get differential pressure and temperature function.
- Author
- Nenad Filipovic