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.
Fork of X_NUCLEO_IKS01A1 by
Diff: Components/Interfaces/MotionSensor.h
- Revision:
- 46:badcff0675e8
- Parent:
- 43:2544d064d528
- Child:
- 64:d99148a36403
diff -r d757094f6229 -r badcff0675e8 Components/Interfaces/MotionSensor.h
--- a/Components/Interfaces/MotionSensor.h Mon Jun 08 15:36:36 2015 +0200
+++ b/Components/Interfaces/MotionSensor.h Mon Jun 08 17:22:35 2015 +0200
@@ -41,29 +41,15 @@
#define __MOTION_SENSOR_CLASS_H
/* Includes ------------------------------------------------------------------*/
-#include <stdint.h>
+#include <GenericSensor.h>
/* Classes ------------------------------------------------------------------*/
/** An abstract class for an Accelerometer
*/
-class MotionSensor
+class MotionSensor : public GenericSensor
{
public:
/**
- * @brief Initialization of accelerometer
- * @param[out] ptr Pointer to device specific initalization structure
- * @return 0 in case of success, an error code otherwise
- */
- virtual int Init(void *ptr) = 0;
-
- /**
- * @brief Get ID of accelerometer
- * @param[out] id Pointer to where to store the ID to
- * @return 0 in case of success, an error code otherwise
- */
- virtual int ReadID(uint8_t *id) = 0;
-
- /**
* @brief Get current accelerometer linear acceleration X/Y/Z-axes values
* in standard data units [mg]
* @param[out] pData Pointer to where to store linear accelerations to.
