29 #include <mraa/gpio.h>
68 HCSR04 (uint8_t triggerPin, uint8_t echoPin);
95 static void ackEdgeDetected (
void *ctx);
98 mraa_gpio_context m_triggerPinCtx;
99 mraa_gpio_context m_echoPinCtx;
101 long m_RisingTimeStamp;
102 long m_FallingTimeStamp;
103 uint8_t m_InterruptCounter;
~HCSR04()
Definition: hcsr04.cxx:66
uint8_t m_doWork
Definition: hcsr04.h:80
HCSR04(uint8_t triggerPin, uint8_t echoPin)
Definition: hcsr04.cxx:41
double getDistance(int sys)
Definition: hcsr04.cxx:111
std::string name()
Definition: hcsr04.h:85
API for the HC-SR04 Ultrasonic Sensor.
Definition: hcsr04.h:58