Added interface iButton

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:28:43 +03:00
committed by Mihai Tudor Panu
parent 8693a72ed6
commit fd34b9669d
6 changed files with 75 additions and 4 deletions

View File

@ -25,6 +25,7 @@
#include <string>
#include <mraa/gpio.hpp>
#include <interfaces/iButton.hpp>
namespace upm {
/**
@ -52,7 +53,7 @@ namespace upm {
* @image html ttp223.jpg
* @snippet ttp223.cxx Interesting
*/
class TTP223 {
class TTP223 : virtual public iButton {
public:
/**
* TTP223 constructor
@ -85,7 +86,7 @@ class TTP223 {
*
* @return True if touched, false otherwise
*/
bool isPressed();
virtual bool isPressed();
/**
* Installs an interrupt service routine (ISR) to be called when