29 #include <mraa/gpio.h>
68 HCSR04 (
int triggerPin,
int 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:65
uint8_t m_doWork
Definition: hcsr04.hpp:80
HCSR04(int triggerPin, int echoPin)
Definition: hcsr04.cxx:41
double getDistance(int sys)
Definition: hcsr04.cxx:110
std::string name()
Definition: hcsr04.hpp:85
API for the HC-SR04 Ultrasonic Sensor.
Definition: hcsr04.hpp:58