Loading...
Searching...
No Matches
Accelerometer

Accelerometer Sensor API. More...

Data Structures

struct  Accel_t
 

Detailed Description

Accelerometer Sensor API.

Contains functions and types for configuring and reading data from the accelerometer.


Data Structure Documentation

◆ Accel_t

struct 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
*accelPointer to accel struct.
Returns
NULL.
void(*)(struct Accel *accel, float *out) readAccel Pointer to readAccel method.

Read 3-axis floating point accelerations.

Parameters
*accelPointer to accel struct.
*outFloating point acceleration array.
Returns
NULL.
void(*)(struct Accel *accel, uint8_t *out) readRawBytes Pointer to readRawBytes method.

Read raw 3-axis data.

Parameters
*accelPointer to accel struct.
*outRaw 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
*accelPointer to accel struct.
*bytesRaw 3-axis data array.
*outProcessed 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