aboutsummaryrefslogtreecommitdiffstats
path: root/src/i2ccmds.h
diff options
context:
space:
mode:
authorbluesforte <harry3b9@gmail.com>2022-05-04 16:02:37 -0700
committerKevin O'Connor <kevin@koconnor.net>2022-06-16 11:09:33 -0400
commitf55b9d3e5746b73d37f1f2de288aa06d9fe23138 (patch)
tree4f4a2945127c61340195c80ccfce11694512e64a /src/i2ccmds.h
parentfc7838855f886383917076cee87b13938d8bbe40 (diff)
downloadkutter-f55b9d3e5746b73d37f1f2de288aa06d9fe23138.tar.gz
kutter-f55b9d3e5746b73d37f1f2de288aa06d9fe23138.tar.xz
kutter-f55b9d3e5746b73d37f1f2de288aa06d9fe23138.zip
mpu9250: Adding support for MPU-9250 (and MPU-6050) accelerometer
Add support for mpu9250 accelerometer over I2C bus. Signed-off-by: Harry Beyel <harry3b9@gmail.com>
Diffstat (limited to 'src/i2ccmds.h')
-rw-r--r--src/i2ccmds.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/i2ccmds.h b/src/i2ccmds.h
new file mode 100644
index 00000000..49c05c93
--- /dev/null
+++ b/src/i2ccmds.h
@@ -0,0 +1,13 @@
+#ifndef __I2CCMDS_H
+#define __I2CCMDS_H
+
+#include <inttypes.h>
+#include "board/gpio.h" // i2c_config
+
+struct i2cdev_s {
+ struct i2c_config i2c_config;
+};
+
+struct i2cdev_s *i2cdev_oid_lookup(uint8_t oid);
+
+#endif