Revision:
1:8c1bace3af7b
Parent:
0:f4c92b67e7be
Child:
2:fa04a99dcdab
--- a/counter.h	Fri Nov 25 13:51:58 2011 +0000
+++ b/counter.h	Fri Nov 25 14:03:51 2011 +0000
@@ -21,9 +21,8 @@
      * channels A.
      *
      * @param channelA mbed pin for counter input.
-     * @param pulsesPerRev Number of pulses in one revolution.
      */
-    counter(PinName channelA,int pulsesPerRev);
+    counter(PinName channelA);
 
     /**
      * Reset the encoder.
@@ -39,13 +38,6 @@
      */
     int getPulses(void);
 
-    /**
-     * Read the number of revolutions recorded by the encoder on the index channel.
-     *
-     * @return Number of revolutions which have occured on the index channel.
-     */
-    int getRevolutions(void);
-
 private:
 
     /**
@@ -58,10 +50,8 @@
 
     InterruptIn channelA_;
     
-    int          pulsesPerRev_;
     volatile int pulses_;
-    volatile int revolutions_;
-
+    
 };
 
 #endif /* counter_H */