29 #include <mraa/gpio.hpp>
123 static void wheelISR(
void *ctx);
126 volatile uint32_t m_counter;
127 struct timeval m_startTime;
uint32_t getMillis()
Definition: wheelencoder.cxx:55
API for the DFRobot Wheel Encoder.
Definition: wheelencoder.h:65
uint32_t counter()
Definition: wheelencoder.h:119
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:99
~WheelEncoder()
Definition: wheelencoder.cxx:45