Go to the source code of this file.
Defines | |
| #define | ACCELEROMETER_OFF 0 |
| #define | ACCELEROMETER_ON 1 |
Functions | |
| void | accelero_init (int adc_clock) |
| void | accelero_sleep (int sleep) |
| float | accelero_read_one (int channel) |
| int | accelero_read (float *p_dst) |
Low level accelerometer driver interface.
Definition in file accelero.h.
| void accelero_init | ( | int | adc_clock | ) |
Initialize the accelerometer.
| adc_clock | Clock frequency of the A/D converter. |
Definition at line 38 of file accelero.c.
| int accelero_read | ( | float * | p_dst | ) |
Read all channels of the accelerometer.
| p_dst | Address to write the accelerometer data to. |
Definition at line 90 of file accelero.c.
| float accelero_read_one | ( | int | channel | ) |
Read one channel of the accelerometer.
| channel | Accelerometer channel to read. |
Definition at line 70 of file accelero.c.
| void accelero_sleep | ( | int | sleep | ) |
Control the accelerometer's sleep mode.
| sleep | ACCELEROMETER_OFF or ACCELEROMETER_ON |
Definition at line 57 of file accelero.c.
1.6.2