Rotork Research Team / QEI

Fork of QEI by Simon Truelove

Revision:
1:0925301c3257
Parent:
0:5c2ad81551aa
Child:
3:ee47e451eb7c
--- a/QEI.h	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.h	Wed Nov 14 09:57:55 2018 +0000
@@ -207,6 +207,10 @@
      * @return Number of revolutions which have occured on the index channel.
      */
     int getRevolutions(void);
+    
+    int getYay(void);
+    void ResetYay(void);
+   
 
 private:
 
@@ -226,6 +230,8 @@
      */
     void index(void);
 
+
+    
     Encoding encoding_;
 
     InterruptIn channelA_;
@@ -235,9 +241,11 @@
     int          pulsesPerRev_;
     int          prevState_;
     int          currState_;
+    int          PulseCount_;
 
     volatile int pulses_;
     volatile int revolutions_;
+    volatile int yay_;
 
 };