INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/Interfaces/LightSensor.h
- Revision:
- 50:18e064bfb156
- Parent:
- 47:2fc173b227d4
--- a/Components/Interfaces/LightSensor.h Wed Jun 15 11:55:18 2016 +0000 +++ b/Components/Interfaces/LightSensor.h Fri Sep 09 09:50:12 2016 +0000 @@ -41,12 +41,12 @@ #define __LIGHT_SENSOR_CLASS_H /* Includes ------------------------------------------------------------------*/ -#include "Component_class.h" +#include "ComponentObject.h" /* Classes ------------------------------------------------------------------*/ /** An abstract class for ambient light sensors */ -class LightSensor : public Component +class LightSensor : public ComponentObject { public: /** @@ -54,7 +54,7 @@ * @param[out] piData Pointer to where to store light to * @return 0 in case of success, an error code otherwise */ - virtual int GetLight(uint32_t *piData) = 0; + virtual int GetLux(uint32_t *piData) = 0; }; #endif /* __LIGHT_SENSOR_CLASS_H */