29 #include <mraa/gpio.h>
131 static void flowISR(
void *ctx);
133 volatile uint32_t m_flowCounter;
134 struct timeval m_startTime;
135 mraa_gpio_context m_gpio;
void initClock()
Definition: grovewfs.cxx:58
float flowRate()
Definition: grovewfs.cxx:115
void startFlowCounter()
Definition: grovewfs.cxx:91
void stopFlowCounter()
Definition: grovewfs.cxx:101
void clearFlowCounter()
Definition: grovewfs.h:98
GroveWFS(int pin)
Definition: grovewfs.cxx:34
~GroveWFS()
Definition: grovewfs.cxx:50
uint32_t flowCounter()
Definition: grovewfs.h:117
API for the Grove Water Flow Sensor.
Definition: grovewfs.h:67
uint32_t getMillis()
Definition: grovewfs.cxx:63