pagecontrol.h 740 Bytes
#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__ */