i2cextend2 2.0.0.0
|
I2CExtend2 Click example. More...
Functions | |
void | i2cextend2_6dofimu11_get_axis (i2cextend2_t *ctx, uint8_t axis_out_reg) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
int16_t | axis |
I2CExtend2 Click example.
This is an example which demonstrates the use of I2C Extend 2 Click board.
The demo application is composed of two sections :
Initialization driver enables - I2C, check communication with device 6DOF IMU 11 Click connected to the I2C Extend 2 Click ( Remote Mode ), set default configuration and start measurement.
In this example, we read Accel and Mag axis of the connected 6DOF IMU 11 Click boards to the I2C Extend 2 Click ( Remote Mode ) which is connected by a LAN cable to I2C Extend 2 Click ( Local Mode ). Results are being sent to the Usart Terminal where you can track their changes. All data logs write on USB uart changes for every 2 sec.
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 | ) |
void i2cextend2_6dofimu11_get_axis | ( | i2cextend2_t * | ctx, |
uint8_t | axis_out_reg ) |
int main | ( | void | ) |
int16_t axis |