summaryrefslogtreecommitdiff
path: root/comm/TimeOut.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/TimeOut.h')
-rw-r--r--comm/TimeOut.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/comm/TimeOut.h b/comm/TimeOut.h
new file mode 100644
index 0000000..9a05cb2
--- /dev/null
+++ b/comm/TimeOut.h
@@ -0,0 +1,32 @@
+#ifndef UchTimeOut_H_
+#define UchTimeOut_H_
+
+#include "ccu/Timer.h"
+
+class UchBaseTimeOut : public CcuCoreTimer {
+friend class UchMultiplexer;
+
+private:
+static void ClassInit ();
+
+protected:
+ UchMultiplexer& MyMpx;
+ void SetAlarm (Millisecond);
+ void StopAlarm ();
+
+public:
+ UchBaseTimeOut (UchMultiplexer&, Millisecond, int = -1);
+ ~UchBaseTimeOut ();
+};
+
+class UchTimeOut : public UchBaseTimeOut {
+protected:
+ void (*Handler) (Millisecond);
+ void Handle (Millisecond);
+
+public:
+ UchTimeOut (UchMultiplexer&, Millisecond, void (*) (Millisecond), int = -1);
+ ~UchTimeOut ();
+};
+
+#endif /* UchBaseOut_H_ */