timeclk.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- #ifndef _TIMECLK_H
- #define _TIMECLK_H
- #include <time.h>
- #include "gendef.h"
- #include "db.h"
- typedef struct _KB_TimeVariables
- {
- char cTimeValidity;
- char cTimeMsgEnable;
- time_t dwCurrentTime;
- INT8 offset;
- }KB_TimeVariables;
- typedef void (*KB_TimeClkCallbackFunc)(KB_OSPMsgNode *pInMsg);
- KB_TimeClkCallbackFunc KB_TimerCallBack(KB_TimeClkCallbackFunc callback);
- /*
- ** 函数原型
- */
- int KB_TimeInit(void);
- void KB_TimeSetCurTime(time_t lTime);
- int KB_TimeGetCurTime(time_t *plTime);
- void KB_TimeEnableTimer(void);
- void KB_TimeDisableTimer(void);
- BOOL KB_TimeSetPrgOffset(INT8 offset, UINT32 freq, UINT32 symbol, UINT8 qam);
- void KB_TimeResetPrgTimes(void);
- void KB_TimeSetCurOffSet(INT8 offset);
- INT8 KB_TimeGetCurOffSet(void);
- time_t KB_TimeGMTTime(time_t tt);
- time_t KB_TimeGetCurGMTTime(void);
- time_t Time_2_Local_Tiem(time_t timeStamp);
- #endif