forked from jqrbp/wemos-mpu9250-gps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharduino_mpu9250_i2c.h
34 lines (27 loc) · 1.16 KB
/
arduino_mpu9250_i2c.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/******************************************************************************
arduino_mpu9250_i2c.h - MPU-9250 Digital Motion Processor Arduino Library
Jim Lindblom @ SparkFun Electronics
original creation date: November 23, 2016
https://github.com/sparkfun/SparkFun_MPU9250_DMP_Arduino_Library
This library implements motion processing functions of Invensense's MPU-9250.
It is based on their Emedded MotionDriver 6.12 library.
https://www.invensense.com/developers/software-downloads/
Development environment specifics:
Arduino IDE 1.6.12
SparkFun 9DoF Razor IMU M0
Supported Platforms:
- ATSAMD21 (Arduino Zero, SparkFun SAMD21 Breakouts)
******************************************************************************/
#ifndef _ARDUINO_MPU9250_I2C_H_
#define _ARDUINO_MPU9250_I2C_H_
#if defined(__cplusplus)
extern "C" {
#endif
int arduino_i2c_write(unsigned char slave_addr, unsigned char reg_addr,
unsigned char length, unsigned char * data);
int arduino_i2c_read(unsigned char slave_addr, unsigned char reg_addr,
unsigned char length, unsigned char * data);
#if defined(__cplusplus)
}
#endif
#endif // _ARDUINO_MPU9250_I2C_H_