mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 03:41:13 +03:00
A110X: Add string based contsructor
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
32b73a1d25
commit
9ba309bc48
@ -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;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user