embedded system library for e-puck  1.0.1
A redesigned API library for the e-puck robot platform
 All Data Structures Files Functions Variables Enumerations Enumerator Modules Pages
el_accelerometer.h
Go to the documentation of this file.
1 /*
2 
3 embedded system library for e-puck
4 
5 --------------------------------------------------------------------------------
6 
7 code distribution:
8 https://github.com/jianingchen/epucklib
9 
10 online documentation:
11 http://jianingchen.github.io/epucklib/html/
12 
13 --------------------------------------------------------------------------------
14 
15 This file is released under the terms of the MIT license (see "el.h").
16 
17 */
18 
28 #ifndef EL_ACCELEROMETER_H
29 #define EL_ACCELEROMETER_H
30 
31 #include "el_common.h"
32 #include "el_clock.h"
33 #include "el_trigger.h"
34 
35 #define EL_ACCELEROMETER_OUTPUT_MAX 4095U
36 
37 #define EL_ACCELEROMETER_ONE 0
38 
39 
43 typedef enum{
49 
50 
56 
57 
63 
64 
77 int el_accelerometer_get(el_index i,el_accelerometer_output u,el_int16*out);
78 
79 
80 /*
81 --------------------------------------------------------------------------------
82 */
83 
84 
85 #ifdef EL_INCLUDE_LIB_INTERNAL_CONTEXT
86 
87 extern bool el_acc_enabled;
88 extern el_int8 el_acc_working_phase;
89 extern void (*el_adc_callback_accelerometer)(const unsigned int*result_3v);
90 
91 void el_init_accelerometer();
92 void el_routine_accelerometer_2400hz(void);
93 
94 #endif
95 
96 #endif /* EL_ACCELEROMETER_H */
void el_disable_accelerometer()
disable the accelerometer
get the acceleration along all three axes
Definition: el_accelerometer.h:47
void el_enable_accelerometer()
enable the accelerometer
get the acceleration along x-axis
Definition: el_accelerometer.h:44
int el_accelerometer_get(el_index i, el_accelerometer_output u, el_int16 *out)
get output value(s) from a accelerometer
get the acceleration along y-axis
Definition: el_accelerometer.h:45
get the acceleration along z-axis
Definition: el_accelerometer.h:46
el_accelerometer_output
Definition: el_accelerometer.h:43