driver for incremental encoder

Revision:
2:b82d31306c4b
Parent:
1:017efde7ab29
Child:
3:4a03a73d7554
--- a/decoder.h	Tue Jan 08 17:29:43 2019 +0000
+++ b/decoder.h	Wed Jan 09 15:00:23 2019 +0000
@@ -9,6 +9,17 @@
     
     public:
     
+    
+        /* These values control the upper and lower limits the the count will go to change limits to suit application*/
+        typedef enum{
+            
+            
+            LOWER_LIMIT = 0,
+            UPPER_LIMIT = 15
+            
+            
+        }limits_t;
+    
         decoder(PinName channelA,PinName channelB);
         
         void isr();