A110X: Add string based contsructor

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Adelin Dobre
2018-06-28 16:23:47 +03:00
committed by Mihai Tudor Panu
parent 32b73a1d25
commit 9ba309bc48
2 changed files with 36 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include <string>
#include <mraa/gpio.h>
#include <mraa/initio.hpp>
#include <interfaces/iHallEffect.hpp>
namespace upm {
@ -67,6 +68,13 @@ namespace upm {
* @param pin Digital pin to use
*/
A110X(int pin);
/**
* Instantiates A110x digital sensor based on a given string.
*
* @param initStr string containing specific information for A110X initialization.
*/
A110X(std::string initStr);
/**
* A110X destructor
*/
@ -97,6 +105,7 @@ namespace upm {
private:
bool m_isrInstalled;
mraa::MraaIo mraaIo;
mraa_gpio_context m_gpio;
};
}