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: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Diff: Components/lsm6ds0/lsm6ds0_class.h
- Revision:
- 20:c20c8bd5be6b
- Parent:
- 18:1cb4ae9d83e7
- Child:
- 24:92cc9c6e4b2b
--- a/Components/lsm6ds0/lsm6ds0_class.h Fri May 29 14:23:22 2015 +0200
+++ b/Components/lsm6ds0/lsm6ds0_class.h Fri May 29 16:29:31 2015 +0200
@@ -41,18 +41,19 @@
/* Includes ------------------------------------------------------------------*/
#include "mbed.h"
#include "DevI2C.h"
-#include "../Common/Imu6Axes.h"
+#include "../Common/GyroSensor.h"
+#include "../Common/MotionSensor.h"
#include "lsm6ds0.h"
/* Classes -------------------------------------------------------------------*/
/** Class representing a LSM6DS0 sensor component
*/
-class LSM6DS0 : public Imu6Axes {
+class LSM6DS0 : public GyroSensor, public MotionSensor {
public:
/** Constructor
* @param i2c device I2C to be used for communication
*/
- LSM6DS0(DevI2C &i2c) : Imu6Axes(), dev_i2c(i2c) {
+ LSM6DS0(DevI2C &i2c) : GyroSensor(), MotionSensor(), dev_i2c(i2c) {
}
/*** Interface Methods ***/
@@ -60,7 +61,7 @@
return LSM6DS0_Init((IMU_6AXES_InitTypeDef*)init_struct);
}
- virtual int Read_XG_ID(uint8_t *xg_id) {
+ virtual int ReadID(uint8_t *xg_id) {
return LSM6DS0_Read_XG_ID(xg_id);
}
