30 #include <mraa/gpio.h> 104 mraa_gpio_context m_pinCtx;
105 uint8_t m_InterruptCounter;
106 struct timeval m_RisingTimeStamp;
107 struct timeval m_FallingTimeStamp;
113 static void signalISR(
void *ctx);
120 void ackEdgeDetected ();
API for Grove Ultrasonic Ranger.
Definition: groveultrasonic.hpp:65
std::string name()
Definition: groveultrasonic.hpp:89
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
GroveUltraSonic(int pin)
Definition: groveultrasonic.cxx:36
bool working()
Definition: groveultrasonic.hpp:97
~GroveUltraSonic()
Definition: groveultrasonic.cxx:51
int getDistance()
Definition: groveultrasonic.cxx:59