source: svn/newcon3bcm2_21bu/dst/app/src/Function/App_Fnc_Time.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1/****************************************************************************
2* NAME: App_Fnc_Time.h
3*----------------------------------------------------------------------------
4* Copyright (c) DIGITAL STREAM Technology Inc.
5*----------------------------------------------------------------------------
6* CREATED_BY: Do Gon Lee
7* CREATION_DATE: 2009/08/25
8* $Author: foxhunt $
9* $Revision: 1.0 $
10* $Date: 2009/08/25 16:20:41 $
11*----------------------------------------------------------------------------
12* PURPOSE:
13* - App_Fnc_Time.c header file
14*****************************************************************************/
15
16#ifndef __APP_FNC_TIME_H__
17#define __APP_FNC_TIME_H__
18
19/*_____ I N C L U D E __________________________________________*/
20
21#include "DMW_SysTime.h"
22#include "DMW_ChannelDemux.h"
23
24
25
26
27
28#if COMMENT
29____Overview____(){}
30#endif
31
32
33
34
35
36/*_____ D E F I N I T I O N ____________________________________*/
37
38#if COMMENT
39____Config____(){}
40#endif
41
42
43
44#if COMMENT
45____Types____(){}
46#endif
47
48typedef enum
49{
50        APP_TIMEZONE_MIN = 0,
51        APP_TIMEZONE_ATLANTIC = APP_TIMEZONE_MIN,
52        APP_TIMEZONE_EASTERN,
53        APP_TIMEZONE_CENTRAL,
54        APP_TIMEZONE_MOUNTAIN,
55        APP_TIMEZONE_PACIFIC,
56        APP_TIMEZONE_ALASKA,
57        APP_TIMEZONE_HAWAII,
58        /* APP_TIMEZONE_KOREA, */
59        APP_TIMEZONE_MAX,
60
61} APP_TIMEZONE;
62
63#define APP_DEF_TIMEZONE DEF_TIME_ZONE
64
65typedef struct {
66        UINT32  sys_time;       /* GPS ½Ã°£À¸·Î ´Ü¼øÇÑ ÂüÁ¶¿ëÀÌ´Ù. */
67        UINT16  year;
68        UINT8   month;
69        UINT8   date;           /* day of month   <-- ¸íĪÀÌ ÀûÀýÇÏÁö ¸øÇÏÁö¸¸ ȣȯ¼ºÀ» À§ÇØ ±×´ë·Î µÎÀÚ. */
70        UINT8   day;            /* day of week */
71        UINT8   hour;
72        UINT8   minute;
73        UINT8   second;
74        BOOLEAN bDaySave;       /* ÇöÀç */
75} APP_TIME_T;
76
77typedef enum
78{
79        eAPP_TIME_MANUALMODE = TRUE,
80        eAPP_TIME_TIMEZONE = 0,
81        eAPP_TIME_DAYLIGHTSAVING = TRUE,
82} APP_TIME_PARAM;
83
84
85
86#if COMMENT
87____Variables____(){}
88#endif
89
90
91
92/*_____ F U N C T I O N ________________________________________*/
93
94#if COMMENT
95____Function____(){}
96#endif
97
98STATUS AppTime_GetCurTime(APP_TIME_T *tm, int nMode);
99void AppTime_GetTimeFromGPS(UINT32 nGPSTime, APP_TIME_T *tm);
100void AppTime_SetTimeByUserTime(int nMode, APP_TIME_T *t);
101void AppTime_DmwTime2STime(APP_TIME_T *t1, STime_t *t2);
102void AppTime_STime2DmwTime(STime_t *t2, APP_TIME_T *t1);
103
104
105/* Fnc_Time */
106int App_GetTimeZone(void);
107void App_SetTimeZone(APP_TIMEZONE tz, BOOL bUpdateToNvRam);
108void App_SetDayLightSaving(BOOL nDayLightSaving, BOOL bUpdateToNvRam);
109
110
111void App_SetLocalTime(STime_t *t);
112void App_GetLocalTime(STime_t *t);
113
114UINT8 App_GetSleepTimer(void);
115void App_SetSleepTimer(UINT8 timer);
116
117UINT8 App_GetMenuTimeout(void);
118void App_SetMenuTimeout(UINT8 timeout, BOOL bSave);
119
120UINT8 App_GetNoKeyPowerDownTimeout(void);
121void App_SetNoKeyPowerDownTimeout(UINT8 timeout, BOOL bSave);
122
123UINT8 App_GetNoSigPowerDownTimeout(void);
124void App_SetNoSigPowerDownTimeout(UINT8 timeout, BOOL bSave);
125
126#if SUPPORT_MANUAL_TIMER
127BOOL App_IsManualTimeContext(void);
128void App_SetManualTimeContext(BOOL bManualMode, BOOL bUpdateToNvRam);
129#endif
130
131void App_PrintCurrentTime(int level);
132
133int App_SetTimeBySTT(void);
134int App_SetTimeBySTT2(int rf);
135int App_SetTimebySTTAtSetupWizard(void);
136
137void App_DeferredSyncSTT(void);
138void App_CancelSyncSTT(void);
139
140/* cafrii 081121, change name */
141void App_TimeInit(void);
142void App_TimeParamInit(void);
143
144
145#endif  /* __APP_FNC_TIME_H__ */
Note: See TracBrowser for help on using the repository browser.