aboutsummaryrefslogtreecommitdiff
path: root/gyroscope.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-02-26 11:49:34 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-02-26 11:49:34 +0100
commit85ec57bb6f545084426527ecc80269544b904067 (patch)
tree6aa0f1fd0a4ed8f4305d442ec83ec30698f22366 /gyroscope.h
parentb89a708807c72c67b128aa3d684afdbd694f66bc (diff)
downloadhourglass-85ec57bb6f545084426527ecc80269544b904067.tar.gz
hourglass-85ec57bb6f545084426527ecc80269544b904067.tar.bz2
hourglass-85ec57bb6f545084426527ecc80269544b904067.zip
Add gyroscope abstraction layer
Diffstat (limited to 'gyroscope.h')
-rw-r--r--gyroscope.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gyroscope.h b/gyroscope.h
new file mode 100644
index 0000000..20ef373
--- /dev/null
+++ b/gyroscope.h
@@ -0,0 +1,13 @@
+#ifndef GYROSCOPE_H
+#define GYROSCOPE_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+void gyroscopeInit ();
+void gyroscopeStart ();
+bool gyroscopeRead ();
+volatile const int16_t *gyroscopeGet ();
+
+#endif /* GYROSCOPE_H */
+