YUFEI JIANG / Mbed 2 deprecated CSSE4011_BLE_IMU

Dependencies:   BLE_API_Tiny_BLE MPU6050-DMP-Seeed-Tiny-BLE mbed

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.