29 #include <mraa/gpio.h>
67 HCSR04 (
int triggerPin,
int echoPin);
96 static void ackEdgeDetected (
void *ctx);
99 mraa_gpio_context m_triggerPinCtx;
100 mraa_gpio_context m_echoPinCtx;
102 long m_RisingTimeStamp;
103 long m_FallingTimeStamp;
104 uint8_t m_InterruptCounter;
~HCSR04()
Definition: hcsr04.cxx:65
uint8_t m_doWork
Definition: hcsr04.hpp:81
HCSR04(int triggerPin, int echoPin)
Definition: hcsr04.cxx:41
double getDistance(int sys)
Definition: hcsr04.cxx:110
std::string name()
Definition: hcsr04.hpp:86
API for the HC-SR04 Ultrasonic Sensor.
Definition: hcsr04.hpp:59