libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
accel.h
Go to the documentation of this file.
1 /*
2  * accel.h
3  *
4  * Created on: Nov 5, 2015
5  * Author: Joshua Southerland
6  */
7 
8 #ifndef INCLUDE_WALLABY_ACCEL_H_
9 #define INCLUDE_WALLABY_ACCEL_H_
10 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
28 signed short accel_x();
29 
30 
38 signed short accel_y();
39 
40 
48 signed short accel_z();
49 
50 
57 int accel_calibrate();
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 
64 #endif /* INCLUDE_WALLABY_ACCEL_H_ */
int accel_calibrate()
signed short accel_y()
Gets the sensed y acceleration +/- 2G range, 1024 per G This should be approximately 0 when at rest...
signed short accel_x()
Gets the sensed x acceleration +/- 2G range, 1024 per G This should be approximately 0 when at rest...
signed short accel_z()
Gets the sensed z acceleration +/- 2G range, 1024 per G This should be approximately -1024 when at ...