Karpova Lab fork of stateScript

Dependencies:   SMARTWAV mbed

Fork of stateScript_v2 by Mattias Karlsson

Revision:
2:35266b266eaa
Parent:
0:8dbd6bd9167f
Child:
3:d7b0a0890d96
--- a/hardwareInterface.h	Tue May 19 15:45:42 2015 +0000
+++ b/hardwareInterface.h	Wed Jun 03 23:41:16 2015 +0000
@@ -40,13 +40,16 @@
     virtual int read() = 0;
     virtual void interrupt_up_callback() = 0;
     virtual void interrupt_down_callback() = 0;
+    void setUpdate(bool);
 
     changeEvent lastUpEvent;
     changeEvent lastDownEvent;
 
 protected:
 
-
+    bool updating;
+    changeEvent bufferedUpEvent;
+    changeEvent bufferedDownEvent;
     void addStateChange(int newState, uint32_t timeStamp);
 
 };