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

#endif /* ACCEL_H */