summaryrefslogtreecommitdiff
path: root/comm/TimeOut.h
diff options
context:
space:
mode:
authorchatty1993-04-07 11:50:31 +0000
committerchatty1993-04-07 11:50:31 +0000
commitba066c34dde204aa192d03a23a81356374d93731 (patch)
tree39391f6235d2cf8a59a0634ac5ea430cdd21f5d4 /comm/TimeOut.h
parent05ab076e1c2a9ca16472f9a6b47b8d22914b3783 (diff)
downloadivy-league-ba066c34dde204aa192d03a23a81356374d93731.zip
ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.gz
ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.bz2
ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.xz
Initial revision
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_ */