Accelerometer Sensor API.
More...
Accelerometer Sensor API.
Contains functions and types for configuring and reading data from the accelerometer.
◆ Accel_t
Definition at line 14 of file accelerometer.h.
| Data Fields |
|
void(*)(struct Accel *accel) |
update |
Pointer to update method. Update internally stored acceleration readings.
- Parameters
-
| *accel | Pointer to accel struct. |
- Returns
NULL.
|
|
void(*)(struct Accel *accel, float *out) |
readAccel |
Pointer to readAccel method. Read 3-axis floating point accelerations.
- Parameters
-
| *accel | Pointer to accel struct. |
| *out | Floating point acceleration array. |
- Returns
NULL.
|
|
void(*)(struct Accel *accel, uint8_t *out) |
readRawBytes |
Pointer to readRawBytes method. Read raw 3-axis data.
- Parameters
-
| *accel | Pointer to accel struct. |
| *out | Raw 3-axis data array to write. |
- Returns
NULL.
|
|
void(*)(struct Accel *accel, uint8_t *bytes, float *out) |
processRawBytes |
Pointer to processRawBytes method. Process raw 3-axis data to floating point accelerations.
- Parameters
-
| *accel | Pointer to accel struct. |
| *bytes | Raw 3-axis data array. |
| *out | Processed 3-axis data array to write. |
- Returns
NULL.
|
|
uint8_t |
dataSize |
Total data size. |
|
uint8_t * |
axes |
Pointer to driver defined axes. |
|
int8_t * |
sign |
Pointer to driver defined signs. |
|
uint8_t * |
rawAccelData |
Pointer to driver defined raw data array. |
|
float * |
accelData |
Pointer to driver defined data array. |
|
float |
sensitivity |
|