i2cisolator7 2.1.0.0
|
I2C Isolator 7 Click example. More...
Macros | |
#define | PRESS_DEVICE_ADDRESS 0x5C |
#define | PRESS_REG_WHO_AM_I 0x0F |
#define | PRESS_WHO_AM_I 0xB4 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
I2C Isolator 7 Click example.
This demo application shows an example of an I2C Isolator 7 Click wired to the PRESS Click board™ for reading device ID (Who am I). The library also includes an I2C writing and reading functions.
The demo application is composed of two sections :
The initialization of I2C module and log UART. After driver initialization, the app sets the PRESS Click board™ slave address.
This example demonstrates the use of the I2C Isolator 7 Click board™. Logs device ID values of the PRESS Click board™ wired to the I2C Isolator 7 Click board™.
#define PRESS_DEVICE_ADDRESS 0x5C |
#define PRESS_REG_WHO_AM_I 0x0F |
#define PRESS_WHO_AM_I 0xB4 |
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 | ) |
int main | ( | void | ) |