fork of StateScript

Dependencies:   mbed SOMO_II

Fork of stateScript_v2 by Mattias Karlsson

Revision:
2:35266b266eaa
Parent:
0:8dbd6bd9167f
Child:
3:d7b0a0890d96
diff -r 8dbd6bd9167f -r 35266b266eaa hardwareInterface.h
--- 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);
 
 };