Added interface iPH

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Stefan Andritoiu
2018-06-20 18:26:10 +03:00
committed by Mihai Tudor Panu
parent 2b36d30243
commit 6d8e6d8a9f
2 changed files with 51 additions and 5 deletions

View File

@ -27,6 +27,7 @@
#include <string>
#include "dfrph.h"
#include <interfaces/iPH.hpp>
namespace upm {
/**
@ -40,7 +41,7 @@ namespace upm {
* @sensor dfrph
* @comname Analog pH Sensor
* @type liquid
* @man dfrobot
* @man dfrobot
* @web http://www.dfrobot.com/index.php?route=product/product&product_id=1110
* @con analog
*
@ -88,7 +89,7 @@ namespace upm {
* @snippet dfrph.cxx Interesting
*/
class DFRPH {
class DFRPH : virtual public iPH {
public:
/**
@ -129,7 +130,7 @@ namespace upm {
* @param samples The number of samples to average over, default 15
* @return The pH value detected
*/
float pH(unsigned int samples = 15);
virtual float pH(unsigned int samples = 15);
private:
/**
@ -141,5 +142,3 @@ namespace upm {
dfrph_context _dev;
};
}