aboutsummaryrefslogtreecommitdiff
path: root/accel.h
blob: fcaaafd68f4905daaf4696204378876a89bea07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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 ();
horizon accelGetHorizon (bool * const);
void accelResetShakeCount ();
uint8_t accelGetShakeCount ();

#endif /* ACCEL_H */