30 #include <mraa/gpio.h> 103 mraa_gpio_context m_pinCtx;
104 uint8_t m_InterruptCounter;
105 struct timeval m_RisingTimeStamp;
106 struct timeval m_FallingTimeStamp;
112 static void signalISR(
void *ctx);
119 void ackEdgeDetected ();
UltraSonic(int pin)
Definition: ultrasonic.cxx:36
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
API for Grove Ultrasonic Ranger.
Definition: ultrasonic.hpp:64
std::string name()
Definition: ultrasonic.hpp:88
bool working()
Definition: ultrasonic.hpp:96
~UltraSonic()
Definition: ultrasonic.cxx:51
int getDistance()
Definition: ultrasonic.cxx:59