Added initial interfaces and some sensors implementing them

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Stefanescu
2018-06-12 18:46:49 +03:00
committed by Mihai Tudor Panu
parent 6bf21a23e7
commit f035470822
102 changed files with 1183 additions and 182 deletions

View File

@ -28,6 +28,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <interfaces/iHumidity.hpp>
#include <interfaces/iTemperature.hpp>
#include "sht1x.h"
@ -58,7 +60,7 @@ namespace upm {
* @snippet sht1x.cxx Interesting
*/
class SHT1X {
class SHT1X : virtual public iHumidity, virtual public iTemperature {
public:
/**
@ -91,7 +93,7 @@ namespace upm {
*
* @return The temperature in Celsius
*/
float getTemperature();
virtual float getTemperature();
/**
* Query the relative humidity. update() must have been called
@ -99,7 +101,7 @@ namespace upm {
*
* @return The relative humidity.
*/
float getHumidity();
virtual float getHumidity();
/**
* Read the status register.