![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Finished project.
Fork of ReferredCoursework2016 by
Diff: Components/Interfaces/MagneticSensor.h
- Revision:
- 46:badcff0675e8
- Parent:
- 43:2544d064d528
--- a/Components/Interfaces/MagneticSensor.h Mon Jun 08 15:36:36 2015 +0200 +++ b/Components/Interfaces/MagneticSensor.h Mon Jun 08 17:22:35 2015 +0200 @@ -41,29 +41,15 @@ #define __MAGNETIC_SENSOR_CLASS_H /* Includes ------------------------------------------------------------------*/ -#include <stdint.h> +#include <GenericSensor.h> /* Classes ------------------------------------------------------------------*/ /** An abstract class for a magnetometer */ -class MagneticSensor +class MagneticSensor : public GenericSensor { public: /** - * @brief Initialization of magnetometer - * @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 magnetometer - * @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 magnetometer magnetic X/Y/Z-axes values * in standard data units [mgauss] * @param[out] pData Pointer to where to store magnetic values to.