Added interfaces iEC,iEmg,iClock,iHeartRate,iLineFinder

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:
Stefan Andritoiu
2018-06-20 18:24:26 +03:00
committed by Serban Waltter
parent e7820f2831
commit 69464ae93b
22 changed files with 368 additions and 59 deletions

View File

@ -25,6 +25,7 @@
#include <string>
#include <mraa/gpio.h>
#include <interfaces/iLineFinder.hpp>
namespace upm {
/**
@ -53,7 +54,7 @@ namespace upm {
* @image html grovelinefinder.jpg
* @snippet grovelinefinder.cxx Interesting
*/
class GroveLineFinder {
class GroveLineFinder : virtual public iLineFinder {
public:
/**
* Grove Line Finder digital sensor constructor
@ -70,17 +71,15 @@ namespace upm {
*
* @return True if white is detected
*/
bool whiteDetected();
virtual bool whiteDetected();
/**
* Determines whether black has been detected
*
* @return True if black is detected
*/
bool blackDetected();
virtual bool blackDetected();
private:
mraa_gpio_context m_gpio;
};
}