30 #include <mraa/gpio.h>
102 mraa_gpio_context m_pinCtx;
103 uint8_t m_InterruptCounter;
104 struct timeval m_RisingTimeStamp;
105 struct timeval m_FallingTimeStamp;
111 static void signalISR(
void *ctx);
118 void ackEdgeDetected ();
API for Grove Ultrasonic Ranger.
Definition: groveultrasonic.h:63
std::string name()
Definition: groveultrasonic.h:87
bool working()
Definition: groveultrasonic.h:95
GroveUltraSonic(uint8_t pin)
Definition: groveultrasonic.cxx:36
~GroveUltraSonic()
Definition: groveultrasonic.cxx:53
int getDistance()
Definition: groveultrasonic.cxx:61