i2cisolator 2.0.0.0
|
I2Cisolator Click example. More...
Macros | |
#define | I2CISOLATOR_IRTHERMO2_CONFIGURATION 0x02 |
#define | I2CISOLATOR_IRTHERMO2_OBJECT_TEMPERATURE 0x03 |
#define | I2CISOLATOR_IRTHERMO2_STATUS_MASK_AND_ENABLE 0x05 |
#define | I2CISOLATOR_IRTHERMO2_CFG_MODEON 0x1000 |
#define | I2CISOLATOR_IRTHERMO2_CFG_ALERTEN 0x0100 |
#define | I2CISOLATOR_IRTHERMO2_CFG_TRANSC 0x0040 |
#define | I2CISOLATOR_IRTHERMO2_CFG_16SAMPLE 0x0800 |
#define | I2CISOLATOR_IRTHERMO2_STAT_ALERTEN 0x8000 |
#define | I2CISOLATOR_IRTHERMO2_STAT_CRTEN 0x4000 |
Functions | |
void | i2cisolator_get_temperature (void) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
I2Cisolator Click example.
This is an example which demonstrates the use of I2C Isolator Click board.
The demo application is composed of two sections :
Initialization driver enables - I2C, sets configuration of TMP007 sensor on IrThermo 2 click and start to write log.
In this example we use IrThermo 2 click, measures the temperature with, and calculate the temperature in degrees Celsius [ C ]. Results are being sent to the USART Terminal where you can track their changes. All data logs on usb uart each second.
#define I2CISOLATOR_IRTHERMO2_CFG_16SAMPLE 0x0800 |
#define I2CISOLATOR_IRTHERMO2_CFG_ALERTEN 0x0100 |
#define I2CISOLATOR_IRTHERMO2_CFG_MODEON 0x1000 |
#define I2CISOLATOR_IRTHERMO2_CFG_TRANSC 0x0040 |
#define I2CISOLATOR_IRTHERMO2_CONFIGURATION 0x02 |
#define I2CISOLATOR_IRTHERMO2_OBJECT_TEMPERATURE 0x03 |
#define I2CISOLATOR_IRTHERMO2_STAT_ALERTEN 0x8000 |
#define I2CISOLATOR_IRTHERMO2_STAT_CRTEN 0x4000 |
#define I2CISOLATOR_IRTHERMO2_STATUS_MASK_AND_ENABLE 0x05 |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
void i2cisolator_get_temperature | ( | void | ) |
int main | ( | void | ) |