i2cisolator5 2.1.0.0
|
I2C Isolator 5 Click example. More...
Macros | |
#define | I2CISOLATOR5_VAV_PRESS_DEV_ADDR 0x5C |
#define | I2CISOLATOR5_VAV_PRESS_CMD_START_PRESSURE_CONVERSION 0x21 |
#define | I2CISOLATOR5_VAV_PRESS_PRESS_SCALE_FACTOR 1200 |
#define | I2CISOLATOR5_VAV_PRESS_TEMP_SCALE_FACTOR 72 |
#define | I2CISOLATOR5_VAV_PRESS_READOUT_AT_KNOWN_TEMPERATURE 105 |
#define | I2CISOLATOR5_VAV_PRESS_KNOWN_TEMPERATURE_C 23.1 |
Functions | |
err_t | i2cisolator5_get_press_and_temp (void) |
I2C Isolator 5 get pressure difference and temperature function. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
I2C Isolator 5 Click example.
This library contains API for the I2C Isolator 5 click driver. This demo application shows an example of an I2C Isolator 5 click wired to the VAV Press click for reading differential pressure and temperature measurement.
The demo application is composed of two sections :
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.
This is an example that shows the use of an I2C Isolator 5 click boardâ„¢. Logs pressure difference [ Pa ] and temperature [ degree Celsius ] values of the VAV Press click written to the I2C Isolator 5 click boardâ„¢.
Results are being sent to the Usart Terminal where you can track their changes.
#define I2CISOLATOR5_VAV_PRESS_CMD_START_PRESSURE_CONVERSION 0x21 |
#define I2CISOLATOR5_VAV_PRESS_DEV_ADDR 0x5C |
#define I2CISOLATOR5_VAV_PRESS_KNOWN_TEMPERATURE_C 23.1 |
#define I2CISOLATOR5_VAV_PRESS_PRESS_SCALE_FACTOR 1200 |
#define I2CISOLATOR5_VAV_PRESS_READOUT_AT_KNOWN_TEMPERATURE 105 |
#define I2CISOLATOR5_VAV_PRESS_TEMP_SCALE_FACTOR 72 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
err_t i2cisolator5_get_press_and_temp | ( | void | ) |
I2C Isolator 5 get pressure difference and temperature function.
This function reads pressure difference and temperature from the VAV Press Click.
0
- Success, -1
- Error. See #err_t definition for detailed explanation. int main | ( | void | ) |