Rev 0.1 Simple operation of just X, Y, Z values in floating point G's
Dependents: Hello_FXLS8471Q Multi-Sensor sensor AerCloud_MutliTech_Socket_Modem_Example ... more
FXLS8471Q Class Reference
FXLS8471Q Xtrinsic accelerometer on SPI. More...
#include <FXLS8471Q.h>
Public Member Functions | |
FXLS8471Q (PinName mosi, PinName miso, PinName scl, PinName cs) | |
FXLS8471Q constructor. | |
void | ReadXYZ (float *a) |
Get XYZ axis acceleration in G's as floating point. | |
void | ReadXYZraw (int16_t *d) |
Get XYZ axis acceleration as signed 16 bit values. | |
char | getWhoAmI (void) |
Get the value of the WHO_AM_I register. |
Detailed Description
FXLS8471Q Xtrinsic accelerometer on SPI.
Definition at line 37 of file FXLS8471Q.h.
Constructor & Destructor Documentation
FXLS8471Q | ( | PinName | mosi, |
PinName | miso, | ||
PinName | scl, | ||
PinName | cs | ||
) |
FXLS8471Q constructor.
- Parameters:
-
mosi MOSI pin miso MISO pin scl SCL pin cs Device Chip Select pin
Definition at line 23 of file FXLS8471Q.cpp.
Member Function Documentation
char getWhoAmI | ( | void | ) |
Get the value of the WHO_AM_I register.
- Returns:
- WHO_AM_I value
Definition at line 56 of file FXLS8471Q.cpp.
void ReadXYZ | ( | float * | a ) |
Get XYZ axis acceleration in G's as floating point.
- Parameters:
-
res array where acceleration data will be stored
Definition at line 96 of file FXLS8471Q.cpp.
void ReadXYZraw | ( | int16_t * | d ) |
Get XYZ axis acceleration as signed 16 bit values.
- Parameters:
-
res array where acceleration data will be stored
Definition at line 110 of file FXLS8471Q.cpp.
Generated on Sat Jul 16 2022 08:49:31 by 1.7.2