29 #include <mraa/gpio.h> 133 static void flowISR(
void *ctx);
135 volatile uint32_t m_flowCounter;
136 struct timeval m_startTime;
137 mraa_gpio_context m_gpio;
void initClock()
Definition: grovewfs.cxx:58
float flowRate()
Definition: grovewfs.cxx:115
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void startFlowCounter()
Definition: grovewfs.cxx:91
void stopFlowCounter()
Definition: grovewfs.cxx:101
void clearFlowCounter()
Definition: grovewfs.hpp:100
GroveWFS(int pin)
Definition: grovewfs.cxx:34
~GroveWFS()
Definition: grovewfs.cxx:50
uint32_t flowCounter()
Definition: grovewfs.hpp:119
API for the Grove Water Flow Sensor.
Definition: grovewfs.hpp:69
uint32_t getMillis()
Definition: grovewfs.cxx:63