pagecontrol.h
740 Bytes
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
33
34
35
36
37
38
39
#ifndef __pagecontrol__
#define __pagecontrol__
#define VW_PC_PWD0 0
#define VW_PC_PWD1 1
#define VW_PC_PWD2 2
#define VW_PC_PWD3 3
#define VW_PC_YEAR 4
#define VW_PC_MON 5
#define VW_PC_DAY 6
#define VW_PC_HR 7
#define VW_PC_MIN 8
#define VW_PC_LIMIT 9
#define VW_PC_EXPY 10
#define VW_PC_EXPM 11
#define VW_PC_EXPD 12
typedef struct {
u8 pwd[4];
int limit;
int remain;
u8 today_y;
u8 today_m;
u8 today_d;
u8 exp_y;
u8 exp_m;
u8 exp_d;
} PCTimer;
typedef struct {
u8 hr;
u8 min;
u8 sec;
} PCTimeMarker;
extern void initPageControl();
extern void doPageControl(void);
#endif /* __pagecontrol__ */