diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-05-06 17:11:12 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-05-06 17:11:12 +0200 |
commit | d2de0612123d278f743320a3832d4e1263a782c7 (patch) | |
tree | 2ec1aed4294be20c26f21426c35c0561e0bd5cd7 /accel.h | |
parent | e9601a5adada7e6abe80f5d711a8adefc894dfeb (diff) | |
download | hourglass-d2de0612123d278f743320a3832d4e1263a782c7.tar.gz hourglass-d2de0612123d278f743320a3832d4e1263a782c7.tar.bz2 hourglass-d2de0612123d278f743320a3832d4e1263a782c7.zip |
accel: Add horizon/shake detection
Diffstat (limited to 'accel.h')
-rw-r--r-- | accel.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |