Seeed / eMPL_MPU6050

Dependents:   CSSE4011_BLE_IMU_Project_rev2 Seeed_Tiny_BLE_Get_Started nrf51822_fix_i2c_spi_conflict balanceboard ... more

Embed: (wiki syntax)

« Back to documentation index

mbed_i2c.h File Reference

mbed_i2c.h File Reference

Serial communication functions needed by eMPL to communicate to the MPU devices. More...

Go to the source code of this file.

Functions

int mbed_i2c_enable (void)
 Set up the I2C port and configure the MBED as the master.
int mbed_i2c_disable (void)
 Disable I2C communication.
int mbed_i2c_write (unsigned char slave_addr, unsigned char reg_addr, unsigned char length, unsigned char const *data)
 Write to a device register.
int mbed_i2c_read (unsigned char slave_addr, unsigned char reg_addr, unsigned char length, unsigned char *data)
 Read from a device.

Detailed Description

Serial communication functions needed by eMPL to communicate to the MPU devices.

This driver assumes that eMPL is with a sub-master clock set to 20MHz. The following MBEDs are supported:

Definition in file mbed_i2c.h.