blob: 9a05cb2bac80fe6ef5f1bf9c4f7c6c0a8da4f51c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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_ */
|