mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 10:21:19 +03:00
Added initial interfaces and some sensors implementing them
This commit is contained in:

committed by
Serban Waltter

parent
85608a9f61
commit
e7820f2831
@ -25,6 +25,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <mraa/gpio.h>
|
||||
#include <interfaces/iDistanceInterrupter.hpp>
|
||||
|
||||
namespace upm {
|
||||
|
||||
@ -53,7 +54,7 @@ namespace upm {
|
||||
* @image html rfr359f.jpg
|
||||
* @snippet rfr359f.cxx Interesting
|
||||
*/
|
||||
class RFR359F {
|
||||
class RFR359F : virtual public iDistanceInterrupter {
|
||||
public:
|
||||
/**
|
||||
* RFR359F constructor
|
||||
@ -72,7 +73,7 @@ namespace upm {
|
||||
*
|
||||
* @return True if the sensor has detected an object
|
||||
*/
|
||||
bool objectDetected();
|
||||
virtual bool objectDetected();
|
||||
|
||||
private:
|
||||
mraa_gpio_context m_gpio;
|
||||
|
Reference in New Issue
Block a user