Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API_Tiny_BLE MPU6050-DMP-Seeed-Tiny-BLE mbed
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.
Generated on Tue Jul 12 2022 18:38:31 by
1.7.2