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.
Dependencies: X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1-f2df by
GyroSensor Class Reference
An abstract class for a Gyroscope. More...
#include <GyroSensor.h>
Inherits GenericSensor.
Inherited by LSM6DS0, and LSM6DS3.
Public Member Functions | |
virtual int | Get_G_Axes (int32_t *pData)=0 |
Get current gyroscope angular rate X/Y/Z-axes values in standard data units [mdps]. | |
virtual int | Get_G_AxesRaw (int16_t *pData)=0 |
Get current gyroscope raw data X/Y/Z-axes values in device sepcific LSB units. | |
virtual int | Get_G_Sensitivity (float *pfData)=0 |
Get gyroscope's current sensitivity [mdps/LSB]. | |
virtual int | Get_G_ODR (float *pfData)=0 |
Get gyroscope's current output data rate [Hz]. | |
virtual int | Set_G_ODR (float odr)=0 |
Set gyroscope's output data rate. | |
virtual int | Get_G_FS (float *pfData)=0 |
Get gyroscope's full scale value i.e. min/max measurable value [dps]. | |
virtual int | Set_G_FS (float fs)=0 |
Set gyroscope'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 a Gyroscope.
Definition at line 49 of file GyroSensor.h.
Member Function Documentation
virtual int Get_G_Axes | ( | int32_t * | pData ) | [pure virtual] |
Get current gyroscope angular rate X/Y/Z-axes values in standard data units [mdps].
- Parameters:
-
[out] pData Pointer to where to store angular rates 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_G_AxesRaw | ( | int16_t * | pData ) | [pure virtual] |
Get current gyroscope raw data X/Y/Z-axes values in device sepcific LSB units.
- Parameters:
-
[out] pData Pointer to where to store gyroscope 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_G_FS | ( | float * | pfData ) | [pure virtual] |
virtual int Get_G_ODR | ( | float * | pfData ) | [pure virtual] |
virtual int Get_G_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_G_FS | ( | float | fs ) | [pure virtual] |
Generated on Tue Jul 12 2022 18:59:34 by
