Added initial interfaces and some sensors implementing them
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
6bf21a23e7
commit
f035470822
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <string>
|
||||
#include "mraa/i2c.hpp"
|
||||
#include "interfaces/iLightSensor.hpp"
|
||||
#include <interfaces/iLight.hpp>
|
||||
|
||||
|
||||
namespace upm {
|
||||
@@ -56,7 +56,7 @@ namespace upm {
|
||||
*
|
||||
* @snippet si1132.cxx Interesting
|
||||
*/
|
||||
class SI1132 : public ILightSensor {
|
||||
class SI1132 : virtual public iLight {
|
||||
public:
|
||||
/**
|
||||
* Instanciates a Si1132 object
|
||||
@@ -80,6 +80,13 @@ class SI1132 : public ILightSensor {
|
||||
*/
|
||||
double getVisibleLux();
|
||||
|
||||
/**
|
||||
* Gets the luminance value from the sensor
|
||||
*
|
||||
* @return The measured light intensity value in Lux
|
||||
*/
|
||||
virtual float getLuminance();
|
||||
|
||||
virtual const char* getModuleName() { return "si1132"; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user