mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 02:11:15 +03:00
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,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
|
||||
|
Reference in New Issue
Block a user