29 #include <mraa/gpio.h>
33 #if defined(SWIGJAVA) || defined(JAVACALLBACK)
34 #include "../IsrCallback.h"
71 HCSR04 (uint8_t triggerPin, uint8_t echoPin);
98 static void ackEdgeDetected (
void *ctx);
101 mraa_gpio_context m_triggerPinCtx;
102 mraa_gpio_context m_echoPinCtx;
104 long m_RisingTimeStamp;
105 long m_FallingTimeStamp;
106 uint8_t m_InterruptCounter;
~HCSR04()
Definition: hcsr04.cxx:62
uint8_t m_doWork
Definition: hcsr04.h:83
HCSR04(uint8_t triggerPin, uint8_t echoPin)
Definition: hcsr04.cxx:37
double getDistance(int sys)
Definition: hcsr04.cxx:107
std::string name()
Definition: hcsr04.h:88
API for the HC-SR04 Ultrasonic Sensor.
Definition: hcsr04.h:61