blob: 092bd1e8059e267796665dc20396a35109f2ad1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef ACCEL_H
#define ACCEL_H
#include <stdbool.h>
#include <stdint.h>
typedef enum {HORIZON_NONE, HORIZON_POS, HORIZON_NEG} horizon;
void accelInit ();
void accelStart ();
bool accelProcess ();
int8_t accelGetZ ();
uint8_t accelGetShakeCount ();
void accelResetShakeCount ();
horizon accelGetHorizon ();
#endif /* ACCEL_H */
|