aboutsummaryrefslogtreecommitdiff
path: root/accel.h
blob: edb25407bcf612b84e9da7e203da0aeb0d23474e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef ACCEL_H
#define ACCEL_H

#include <stdbool.h>
#include <stdint.h>

#define HORIZON_NONE 0
#define HORIZON_POS 1
#define HORIZON_NEG 2

typedef uint8_t horizon;

void accelInit ();
void accelStart ();
void accelProcess ();
int8_t accelGetZ ();
int8_t accelGetNormalizedZ ();
uint8_t accelGetShakeCount ();
void accelResetShakeCount ();
horizon accelGetHorizon ();

#endif /* ACCEL_H */