Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_Sensors_Demo m2x-temp_ethernet_demo m2x-MEMS_ACKme_Wifi_demo m2x_MEMS_Ublox_Cellular_demo ... more
Fork of Nucleo_Sensor_Shield by
LSM6DS0 Class Reference
Class representing a HTS221 sensor component. More...
#include <lsm6ds0.h>
Public Member Functions | |
| LSM6DS0 (DevI2C &i2c) | |
| Constructor. | |
| void | Gyro_GetAxes (AxesRaw_TypeDef *pData) |
| Read data from LSM6DS0 Gyroscope and calculate angular rate in mdps. | |
| void | Gyro_GetAxesRaw (int16_t *pData) |
| Read raw data from LSM6DS0 Gyroscope output register. | |
| void | Acc_GetAxes (AxesRaw_TypeDef *pData) |
| Read data from LSM6DS0 Accelerometer and calculate linear acceleration in mg. | |
| void | Acc_GetAxesRaw (int16_t *pData) |
| Read raw data from LSM6DS0 Accelerometer output register. | |
| void | Init () |
| Set LSM6DS0 Initialization. | |
| uint8_t | ReadID (void) |
| Read ID address of HTS221. | |
Detailed Description
Class representing a HTS221 sensor component.
Definition at line 49 of file lsm6ds0.h.
Constructor & Destructor Documentation
Member Function Documentation
| void Acc_GetAxes | ( | AxesRaw_TypeDef * | pData ) |
Read data from LSM6DS0 Accelerometer and calculate linear acceleration in mg.
- Parameters:
-
float *pfData
- Return values:
-
None.
Definition at line 131 of file lsm6ds0.cpp.
| void Acc_GetAxesRaw | ( | int16_t * | pData ) |
Read raw data from LSM6DS0 Accelerometer output register.
- Parameters:
-
float *pfData
- Return values:
-
None.
Definition at line 172 of file lsm6ds0.cpp.
| void Gyro_GetAxes | ( | AxesRaw_TypeDef * | pData ) |
Read data from LSM6DS0 Gyroscope and calculate angular rate in mdps.
- Parameters:
-
float *pfData
- Return values:
-
None.
Definition at line 51 of file lsm6ds0.cpp.
| void Gyro_GetAxesRaw | ( | int16_t * | pData ) |
Read raw data from LSM6DS0 Gyroscope output register.
- Parameters:
-
float *pfData
- Return values:
-
None.
Definition at line 93 of file lsm6ds0.cpp.
| void Init | ( | ) |
Set LSM6DS0 Initialization.
- Parameters:
-
InitStruct,: it contains the configuration setting for the LSM6DS0.
- Return values:
-
None
Definition at line 227 of file lsm6ds0.cpp.
| uint8_t ReadID | ( | void | ) |
Read ID address of HTS221.
- Parameters:
-
Device ID address
- Return values:
-
ID name
Definition at line 209 of file lsm6ds0.cpp.
Generated on Tue Jul 12 2022 14:47:53 by
1.7.2
