29 #include <mraa/gpio.hpp>
122 static void wheelISR(
void *ctx);
125 volatile uint32_t m_counter;
126 struct timeval m_startTime;
uint32_t getMillis()
Definition: wheelencoder.cxx:55
API for the DFRobot Wheel Encoder.
Definition: wheelencoder.h:64
uint32_t counter()
Definition: wheelencoder.h:118
void startCounter()
Definition: wheelencoder.cxx:83
void stopCounter()
Definition: wheelencoder.cxx:95
WheelEncoder(int pin)
Definition: wheelencoder.cxx:35
void initClock()
Definition: wheelencoder.cxx:50
void clearCounter()
Definition: wheelencoder.h:98
~WheelEncoder()
Definition: wheelencoder.cxx:45