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

@ -25,6 +25,7 @@
#include <string>
#include <mraa/gpio.h>
#include <interfaces/iHallEffect.hpp>
namespace upm {
/**
@ -58,7 +59,7 @@ namespace upm {
* An example demonstrating the use of an interrupt handler to count pulses
* @snippet a110x-intr.cxx Interesting
*/
class A110X {
class A110X : virtual public iHallEffect {
public:
/**
* A110x digital sensor constructor
@ -75,7 +76,7 @@ namespace upm {
*
* @return True if magnetic field detected
*/
bool magnetDetected();
virtual bool magnetDetected();
/**
* Installs an interrupt service routine (ISR) to be called when