aboutsummaryrefslogtreecommitdiff
path: root/accel.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-05-06 17:11:12 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-05-06 17:11:12 +0200
commitd2de0612123d278f743320a3832d4e1263a782c7 (patch)
tree2ec1aed4294be20c26f21426c35c0561e0bd5cd7 /accel.h
parente9601a5adada7e6abe80f5d711a8adefc894dfeb (diff)
downloadhourglass-d2de0612123d278f743320a3832d4e1263a782c7.tar.gz
hourglass-d2de0612123d278f743320a3832d4e1263a782c7.tar.bz2
hourglass-d2de0612123d278f743320a3832d4e1263a782c7.zip
accel: Add horizon/shake detection
Diffstat (limited to 'accel.h')
-rw-r--r--accel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/accel.h b/accel.h
index 7d82933..6c1022d 100644
--- a/accel.h
+++ b/accel.h
@@ -4,10 +4,14 @@
#include <stdbool.h>
#include <stdint.h>
+typedef enum {HORIZON_NONE, HORIZON_POS, HORIZON_NEG} horizon;
+
void accelInit ();
void accelStart ();
bool accelProcess ();
volatile const int8_t *accelGet ();
+const uint8_t accelGetShakeCount ();
+const horizon accelGetHorizon ();
#endif /* ACCEL_H */