summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/accel.h
diff options
context:
space:
mode:
authorRachel Dowdall <rjdowdall@gmail.com>2014-03-22 12:17:36 +0000
committerRachel Dowdall <rjdowdall@gmail.com>2014-03-22 12:17:36 +0000
commit17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5 (patch)
tree36077e73d30aa91f94ed74b707facc86b7ed7937 /stmhal/accel.h
parent300c8bd4c2c0c6d626a6aaeb873c22a8f8b9fc3f (diff)
parentda8d21e0dd236ae5e31bfac4ff8d5b73ddd49282 (diff)
downloadmicropython-17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5.tar.gz
micropython-17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'stmhal/accel.h')
-rw-r--r--stmhal/accel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/stmhal/accel.h b/stmhal/accel.h
new file mode 100644
index 0000000000..c2320f1a4e
--- /dev/null
+++ b/stmhal/accel.h
@@ -0,0 +1,11 @@
+void accel_init(void);
+void accel_restart(uint8_t addr, int write);
+void accel_start(uint8_t addr, int write);
+void accel_send_byte(uint8_t data);
+uint8_t accel_read_ack(void);
+uint8_t accel_read_nack(void);
+void accel_stop(void);
+
+MP_DECLARE_CONST_FUN_OBJ(pyb_accel_read_obj);
+MP_DECLARE_CONST_FUN_OBJ(pyb_accel_read_all_obj);
+MP_DECLARE_CONST_FUN_OBJ(pyb_accel_write_mode_obj);