Quadrature encoder interface library.

Dependents:   Ex_econdercar_ROS

Fork of QEI by Aaron Berk

Revision:
1:a6bd3dee25b5
Parent:
0:5c2ad81551aa
--- a/QEI.h	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.h	Sun May 06 05:56:03 2018 +0000
@@ -207,7 +207,8 @@
      * @return Number of revolutions which have occured on the index channel.
      */
     int getRevolutions(void);
-
+    
+    int getState(void);
 private:
 
     /**
@@ -235,7 +236,8 @@
     int          pulsesPerRev_;
     int          prevState_;
     int          currState_;
-
+    int          state_; 
+    
     volatile int pulses_;
     volatile int revolutions_;