Board lib
MotionSensor Class Reference
An abstract class for an Accelerometer. More...
#include <MotionSensor.h>
Inherits GenericSensor.
Inherited by LSM6DS0, and LSM6DS3.
Public Member Functions | |
| virtual int | Get_X_Axes (int32_t *pData)=0 |
| Get current accelerometer linear acceleration X/Y/Z-axes values in standard data units [mg]. | |
| virtual int | Get_X_AxesRaw (int16_t *pData)=0 |
| Get current accelerometer raw data X/Y/Z-axes values in device sepcific LSB units. | |
| virtual int | Get_X_Sensitivity (float *pfData)=0 |
| Get accelerometer's current sensitivity [mg/LSB]. | |
| virtual int | Get_X_ODR (float *pfData)=0 |
| Get accelerometer's current output data rate [Hz]. | |
| virtual int | Set_X_ODR (float odr)=0 |
| Set accelerometer's output data rate. | |
| virtual int | Get_X_FS (float *pfData)=0 |
| Get accelerometer's full scale value i.e. min/max measurable value [g]. | |
| virtual int | Set_X_FS (float fs)=0 |
| Set accelerometer's full scale value i.e. min/max measurable value. | |
| virtual int | Init (void *ptr)=0 |
| Initialization of sensor. | |
| virtual int | ReadID (uint8_t *id)=0 |
| Get ID of sensor. | |
Detailed Description
An abstract class for an Accelerometer.
Definition at line 49 of file MotionSensor.h.
Member Function Documentation
| virtual int Get_X_Axes | ( | int32_t * | pData ) | [pure virtual] |
Get current accelerometer linear acceleration X/Y/Z-axes values in standard data units [mg].
- Parameters:
-
[out] pData Pointer to where to store linear accelerations to. pData must point to an array of (at least) three elements, where: pData[0] corresponds to X-axis, pData[1] corresponds to Y-axis, and pData[2] corresponds to Z-axis.
- Returns:
- 0 in case of success, an error code otherwise
| virtual int Get_X_AxesRaw | ( | int16_t * | pData ) | [pure virtual] |
Get current accelerometer raw data X/Y/Z-axes values in device sepcific LSB units.
- Parameters:
-
[out] pData Pointer to where to store accelerometer raw data to. pData must point to an array of (at least) three elements, where: pData[0] corresponds to X-axis, pData[1] corresponds to Y-axis, and pData[2] corresponds to Z-axis.
- Returns:
- 0 in case of success, an error code otherwise
| virtual int Get_X_FS | ( | float * | pfData ) | [pure virtual] |
| virtual int Get_X_ODR | ( | float * | pfData ) | [pure virtual] |
| virtual int Get_X_Sensitivity | ( | float * | pfData ) | [pure virtual] |
| virtual int Init | ( | void * | ptr ) | [pure virtual, inherited] |
| virtual int ReadID | ( | uint8_t * | id ) | [pure virtual, inherited] |
| virtual int Set_X_FS | ( | float | fs ) | [pure virtual] |
Generated on Thu Jul 14 2022 19:45:55 by
1.7.2