| 1 | #ifndef __DST_USERINTERFACE_H__ |
|---|
| 2 | #define __DST_USERINTERFACE_H__ |
|---|
| 3 | |
|---|
| 4 | #include "DST_Common.h" |
|---|
| 5 | #include "DST_CCTask.h" |
|---|
| 6 | |
|---|
| 7 | #define BANNER_NORMAL 0 |
|---|
| 8 | #define BANNER_DIGIT 1 |
|---|
| 9 | |
|---|
| 10 | #define ASPECT_RATIO_WIDE 0 |
|---|
| 11 | #define ASPECT_RATIO_NORMAL 1 |
|---|
| 12 | #define ASPECT_RATIO_ZOOM 2 |
|---|
| 13 | |
|---|
| 14 | #define MTS_MAX_COUNT 9 |
|---|
| 15 | |
|---|
| 16 | #define SM_GOOD_SIGNAL 0 |
|---|
| 17 | #define SM_WAIT_SIGNAL 1 |
|---|
| 18 | #define SM_WEAK_SIGNAL 2 |
|---|
| 19 | #define SM_NO_PROGRAM 3 |
|---|
| 20 | #define SM_AUDIO_ONLY 4 |
|---|
| 21 | |
|---|
| 22 | //typedef enum |
|---|
| 23 | //{ |
|---|
| 24 | // MN_AUTO_SEARCH, |
|---|
| 25 | // MN_TUNE_MODE, |
|---|
| 26 | // MN_STATION_SEARCH, |
|---|
| 27 | // MN_CHANNEL_LIST, |
|---|
| 28 | // MN_QUICK_SEARCH, |
|---|
| 29 | // MN_PROGRAM_GUIDE, |
|---|
| 30 | // MN_ASPECT_DIGITAL, |
|---|
| 31 | // MN_MTS, |
|---|
| 32 | // MN_SETUP, |
|---|
| 33 | // MN_SUPER_IMPOSE, |
|---|
| 34 | // MN_MENU_LANGUAGE, |
|---|
| 35 | // MN_AGE_RATING, |
|---|
| 36 | // MN_PASSWD, |
|---|
| 37 | // MN_SYS_INFO, |
|---|
| 38 | // MN_FACTORY_RESET, |
|---|
| 39 | // MN_CABLE_SUPPORT, |
|---|
| 40 | // MN_MAX_NUM |
|---|
| 41 | //} MenuLists; |
|---|
| 42 | |
|---|
| 43 | typedef enum |
|---|
| 44 | { |
|---|
| 45 | MN_CHANNEL, |
|---|
| 46 | MN_SETUP, |
|---|
| 47 | MN_PROGRAM, |
|---|
| 48 | MN_FUNCTION, |
|---|
| 49 | MN_MAX_NUM |
|---|
| 50 | } MainMenuLists; |
|---|
| 51 | |
|---|
| 52 | typedef enum |
|---|
| 53 | { |
|---|
| 54 | CH_SUB_INPUT, |
|---|
| 55 | CH_SUB_AUTO_SCAN, |
|---|
| 56 | CH_SUB_MANUAL_SCAN, |
|---|
| 57 | CH_SUB_CHANNEL_EDIT, |
|---|
| 58 | CH_SUB_SIGNAL_METER, |
|---|
| 59 | CH_SUB_MAX_NUM |
|---|
| 60 | } ChannelSubMenuLists; |
|---|
| 61 | |
|---|
| 62 | typedef enum |
|---|
| 63 | { |
|---|
| 64 | SETUP_SUB_AV_DISPLAY_MODE, |
|---|
| 65 | SETUP_SUB_AV_AUDIO_PREF, |
|---|
| 66 | SETUP_SUB_AV_VI, |
|---|
| 67 | SETUP_SUB_CC_DISPLAY, |
|---|
| 68 | SETUP_SUB_MAX_NUM |
|---|
| 69 | } SetupSubMenuLists; |
|---|
| 70 | |
|---|
| 71 | typedef enum |
|---|
| 72 | { |
|---|
| 73 | PROGRAM_INFORMATION, |
|---|
| 74 | PROGRAM_SUB_MAX_NUM |
|---|
| 75 | } ProgramSubMenuLists; |
|---|
| 76 | |
|---|
| 77 | typedef enum |
|---|
| 78 | { |
|---|
| 79 | FUNCTION_SUB_SLEEP_TIMER, |
|---|
| 80 | FUNCTION_SUB_AV_PREFERRED_CONN, |
|---|
| 81 | FUNCTION_SUB_FACTORY_RESET, |
|---|
| 82 | FUNCTION_SUB_MAX_NUM |
|---|
| 83 | } FunctionSubMenuLists; |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | typedef enum |
|---|
| 88 | { |
|---|
| 89 | DISPLAY_MODE_WIDE, |
|---|
| 90 | DISPLAY_MODE_NORMAL, |
|---|
| 91 | DISPLAY_MODE_ZOOM, |
|---|
| 92 | DISPLAY_MODE_MAX_NUM |
|---|
| 93 | } DisplayModeLists; |
|---|
| 94 | |
|---|
| 95 | typedef enum |
|---|
| 96 | { |
|---|
| 97 | AUDIO_PREF_PORTUGUESE, |
|---|
| 98 | AUDIO_PREF_SPANISH, |
|---|
| 99 | AUDIO_PREF_ENGLISH, |
|---|
| 100 | AUDIO_PREF_MAX_NUM |
|---|
| 101 | } AudioPrefLists; |
|---|
| 102 | |
|---|
| 103 | typedef enum |
|---|
| 104 | { |
|---|
| 105 | PREFERRED_CONN_LINE_OUT, |
|---|
| 106 | PREFERRED_CONN_CH34, |
|---|
| 107 | PREFERRED_CONN_MAX_NUM |
|---|
| 108 | } PreferredConnLists; |
|---|
| 109 | |
|---|
| 110 | typedef enum |
|---|
| 111 | { |
|---|
| 112 | SLEEP_TIMER_OFF, |
|---|
| 113 | SLEEP_TIMER_15M, |
|---|
| 114 | SLEEP_TIMER_30M, |
|---|
| 115 | SLEEP_TIMER_60M, |
|---|
| 116 | SLEEP_TIMER_120M, |
|---|
| 117 | SLEEP_TIMER_MAX_NUM, |
|---|
| 118 | } SleepTimerLists; |
|---|
| 119 | |
|---|
| 120 | typedef enum |
|---|
| 121 | { |
|---|
| 122 | POWER_DOWN_OFF, |
|---|
| 123 | POWER_DOWN_1H, |
|---|
| 124 | POWER_DOWN_2H, |
|---|
| 125 | POWER_DOWN_4H, |
|---|
| 126 | POWER_DOWN_8H, |
|---|
| 127 | POWER_DOWN_MAX_NUM, |
|---|
| 128 | } PowerDownLists; |
|---|
| 129 | |
|---|
| 130 | |
|---|
| 131 | #if 0 |
|---|
| 132 | ____Channel_UI___() |
|---|
| 133 | #endif |
|---|
| 134 | |
|---|
| 135 | // ¸Þ´ºÀÇ ¸¶Áö¸· ¿ÀÅ佺ĵ ¸ðµå¸¦ ±â¾ïÇÑ´Ù. |
|---|
| 136 | DS_U8 DST_UI_GetAutoSearchMode(void); |
|---|
| 137 | |
|---|
| 138 | void DST_UI_SetAutoSearchMode(DS_U8 value); |
|---|
| 139 | |
|---|
| 140 | // ä³Î ¾÷´Ù¿î ÇÔ¼ö |
|---|
| 141 | void DST_UI_ChannelUpDn(bool bUp); |
|---|
| 142 | |
|---|
| 143 | // ä³Î Æ©´×À» ÇÑ´Ù.TUNE_MODE_AUTO |
|---|
| 144 | void DST_UI_ChannelTune(DS_U8 RF, DS_U16 program_number=0); |
|---|
| 145 | // ä³Î Æ©´×À» ÇÑ´Ù.TUNE_MODE_AUTO |
|---|
| 146 | void DST_UI_Scan(DS_U8 RF); |
|---|
| 147 | |
|---|
| 148 | #if 0 |
|---|
| 149 | ____Settings_UI___() |
|---|
| 150 | #endif |
|---|
| 151 | |
|---|
| 152 | // ¼Ò½º Á¤º¸¸¦ °¡Á®¿Â´Ù. 0:TV 1:CVBS |
|---|
| 153 | DS_U8 DST_UI_GetSource(void); |
|---|
| 154 | |
|---|
| 155 | // ¼Ò½º¸¦ º¯°æÇÑ´Ù. |
|---|
| 156 | void DST_UI_SetSource(DS_U8 value); |
|---|
| 157 | |
|---|
| 158 | // 0: ÀÚµ¿ 1: Ç®¼¼±×°íÁ¤ 2:¿ø¼¼±× °íÁ¤ |
|---|
| 159 | DS_U8 DST_UI_GetTuneMode(void); |
|---|
| 160 | |
|---|
| 161 | // Æ©´× ¸ðµå¸¦ ¼³Á¤ÇÑ´Ù. |
|---|
| 162 | void DST_UI_SetTuneMode(DS_U8 value); |
|---|
| 163 | |
|---|
| 164 | // 0: Off 1:On |
|---|
| 165 | // ±âÁö±¹ Ž»ö |
|---|
| 166 | DS_U8 DST_UI_GetStationSearch(void); |
|---|
| 167 | |
|---|
| 168 | // ±âÁö±¹ Ž»ö ²ô±â |
|---|
| 169 | void DST_UI_SetStationSearch(DS_U8 value); |
|---|
| 170 | |
|---|
| 171 | // ÆÐ³Î ¹à±â °ª°¡Á®¿À±â |
|---|
| 172 | DS_U8 DST_UI_GetBrightness(void); |
|---|
| 173 | |
|---|
| 174 | // ÆÐ³Î ¹à±â ¼³Á¤// 0(20) 1(40) 2(60) 3(80) 4(100) |
|---|
| 175 | void DST_UI_SetBrightness(DS_U8 value); |
|---|
| 176 | |
|---|
| 177 | // Aspect ¼³Á¤ |
|---|
| 178 | DS_U8 DST_UI_GetAspect(void); |
|---|
| 179 | |
|---|
| 180 | // Aspect ¼³Á¤ |
|---|
| 181 | void DST_UI_SetAspect(DS_U8 value); |
|---|
| 182 | |
|---|
| 183 | |
|---|
| 184 | // MTS Setting (0) Çѱ¹¾î (1) ¿Ü±¹¾î |
|---|
| 185 | DS_U8 DST_UI_GetMTS(); |
|---|
| 186 | |
|---|
| 187 | |
|---|
| 188 | void DST_UI_SetMTS( DS_U8 nVal); |
|---|
| 189 | |
|---|
| 190 | // VI Setting (0) Off (1) On |
|---|
| 191 | DS_U8 DST_UI_GetVI(); |
|---|
| 192 | |
|---|
| 193 | void DST_UI_SetVI( DS_U8 nVal); |
|---|
| 194 | // CC ¸®½ºÆ® °¡Á®¿À±â |
|---|
| 195 | //void DST_UI_GetCloseCaption(int *nCount, int *nPos, DST_CCList *list); |
|---|
| 196 | |
|---|
| 197 | // CC ¼³Á¤ |
|---|
| 198 | void DST_UI_SetCloseCaption(DS_U8 value); |
|---|
| 199 | |
|---|
| 200 | // Super Impose ¸®½ºÆ® °¡Á®¿À±â |
|---|
| 201 | //void DST_UI_GetSuperImpose(int *nCount, int *nPos, DST_CCList *list); |
|---|
| 202 | |
|---|
| 203 | |
|---|
| 204 | // ¸Þ´º¾ð¾î ¼³Á¤ |
|---|
| 205 | DS_U8 DST_UI_GetMenuLanguage(void); |
|---|
| 206 | |
|---|
| 207 | // ¸Þ´º¾ð¾î ¼³Á¤ |
|---|
| 208 | void DST_UI_SetMenuLanguage(DS_U8 value); |
|---|
| 209 | |
|---|
| 210 | // ÄÉÀ̺í Á֯ļö Áö¿ø |
|---|
| 211 | DS_U8 DST_UI_GetCableFreqSupport(void); |
|---|
| 212 | |
|---|
| 213 | // ÄÉÀ̺í Á֯ļö Áö¿ø |
|---|
| 214 | void DST_UI_SetCableFreqSupport(DS_U8 value); |
|---|
| 215 | |
|---|
| 216 | |
|---|
| 217 | // Conserve Battery |
|---|
| 218 | DS_U8 DST_UI_GetConserveBattery(void); |
|---|
| 219 | // Conserve Battery |
|---|
| 220 | void DST_UI_SetConserveBattery(DS_U8 value); |
|---|
| 221 | |
|---|
| 222 | // 0À̸é RF3 1À̸é RF4 |
|---|
| 223 | DS_U8 DST_UI_GetCh34(void); |
|---|
| 224 | void DST_UI_SetCh34(DS_U8 bVal); |
|---|
| 225 | |
|---|
| 226 | #if 0 |
|---|
| 227 | ____Volum_UI___() |
|---|
| 228 | #endif |
|---|
| 229 | |
|---|
| 230 | // º¼·ý ¼³Á¤ |
|---|
| 231 | DS_U8 DST_UI_GetVolume(void); |
|---|
| 232 | |
|---|
| 233 | // º¼·ý ¼³Á¤ |
|---|
| 234 | void DST_UI_SetVolume(DS_U8 value); |
|---|
| 235 | |
|---|
| 236 | // ¹ÂÆ® ¼³Á¤ |
|---|
| 237 | bool DST_UI_GetMute(void); |
|---|
| 238 | |
|---|
| 239 | // ¹ÂÆ® ¼³Á¤ |
|---|
| 240 | void DST_UI_SetMute(bool bVal); |
|---|
| 241 | |
|---|
| 242 | #if 0 |
|---|
| 243 | ____Raring_UI___() |
|---|
| 244 | #endif |
|---|
| 245 | |
|---|
| 246 | void DST_UI_RatingMute(bool bVal); |
|---|
| 247 | |
|---|
| 248 | #if 0 |
|---|
| 249 | ____Info_Banner_UI___() |
|---|
| 250 | #endif |
|---|
| 251 | |
|---|
| 252 | typedef struct |
|---|
| 253 | { |
|---|
| 254 | int year; // xxxx (ex. 2003) |
|---|
| 255 | int month; // 1-12 |
|---|
| 256 | int day; // 0-31 |
|---|
| 257 | int wday; // Day of Week -> 0: Sunday, 1: Monday, ... |
|---|
| 258 | int hour; // 0-24 |
|---|
| 259 | int min; // 0-59 |
|---|
| 260 | int sec; // 0-59 |
|---|
| 261 | } STime_t; // Struct for Getting & Saving Date/Time Info. |
|---|
| 262 | |
|---|
| 263 | // ÇöÀç ½Ã°£À» °¡Á®¿Â´Ù. |
|---|
| 264 | bool DST_UI_GetLocalTime(STime_t *time); |
|---|
| 265 | |
|---|
| 266 | // ÇöÀç ¹æ¼ÛÁßÀÎ ºñµð¿À°¡ HD ¹æ¼ÛÀΰ¡? |
|---|
| 267 | bool DST_UI_GetHDInfo(void); |
|---|
| 268 | |
|---|
| 269 | // ÇöÀç CC º¸¿©ÁֱⰡ °¡´ÉÇѰ¡? |
|---|
| 270 | bool DST_UI_GetCCInfo(void); |
|---|
| 271 | |
|---|
| 272 | // ä³Î¸Ê »ó À§Ä¡¸¦ ÁöÁ¤ÇÏ¸é ·Î°í °¡Á®¿À´Â ÇÔ¼ö |
|---|
| 273 | // return (0)no logo (1)simple logo (2) png logo |
|---|
| 274 | // out ¹öÆÛÀÇ Å©±â´Â 72x36 À̾î¾ß ÇÑ´Ù. |
|---|
| 275 | int DST_UI_GetLogo(DS_U8 RF, DS_U16 sID, DS_U8 *p_image, DS_U8 *nWidth, DS_U8 *nHeight, char *p_string); |
|---|
| 276 | #if 0 |
|---|
| 277 | ____EPG_UI___() |
|---|
| 278 | #endif |
|---|
| 279 | |
|---|
| 280 | // ÇöÀç ä³ÎÀÇ Ã¤³Î¹øÈ£¿Í À̸§À» °¡Á®¿Â´Ù. |
|---|
| 281 | // ¹Ýȯ°ªÀÌ trueÀ̸é ä³Î¸Ê¿¡ Àִ ä³Î false¸é ¾ø´Â ä³Î |
|---|
| 282 | // chNum ȸ鿡 Ç¥½ÃÇÒ Ã¤³Î ¹øÈ£ |
|---|
| 283 | // chName ȸ鿡 Ç¥½ÃÇÒ Ã¤³Î À̸§ |
|---|
| 284 | // num ¼ýÀÚ·Î µÈ ä³Î ¹øÈ£ |
|---|
| 285 | // ÀÔ·Â ¹è¿ ±æÀÌ chNum 20ÀÚ chName 21ÀÚ |
|---|
| 286 | bool DST_UI_GetCurrentChannelInfo(char* chNum, DS_U32* chName, int *num); |
|---|
| 287 | //bool DST_UI_GetCurrentChannelInfo2(char* chNum, DS_U32* chName, int *num); |
|---|
| 288 | int DST_GetCurrentChannelIndex2(void); |
|---|
| 289 | |
|---|
| 290 | // ÇöÀç ä³Î ¹øÈ£¸¦ ¹®ÀÚ¿·Î °¡Á®¿Â´Ù. |
|---|
| 291 | // ÀÔ·Â ¹è¿ ±æÀÌ 20ÀÚ |
|---|
| 292 | void DST_UI_GetCurrentChannelNumber(char *chNum); |
|---|
| 293 | |
|---|
| 294 | // ÇöÀç ä³Î¹øÈ£¿¡ RF¸¦ ºÙÀÎ °ªÀ» °¡Á®¿Â´Ù. |
|---|
| 295 | // ÀÔ·Â ¹è¿±æÀÌ 40ÀÚ |
|---|
| 296 | void DST_UI_GetCurrentChannelNumberWithRF(char *chNum); |
|---|
| 297 | |
|---|
| 298 | // ä³Î¹øÈ£ ä³ÎÀ̸§ |
|---|
| 299 | // ÀÔ·Â ¹è¿ ±æÀÌ 40ÀÚ |
|---|
| 300 | int DST_UI_GetCurrentChannelInfo(DS_U32 *chInfo); |
|---|
| 301 | |
|---|
| 302 | // ³¯Â¥ ¹®ÀÚ¿À» ¹ÝȯÇÑ´Ù. |
|---|
| 303 | int DST_UI_GetDateString(int month, int day, int wday, DS_U16* timeInfo); |
|---|
| 304 | |
|---|
| 305 | // ½Ã°£ ¹®ÀÚ¿À» ¹ÝȯÇÑ´Ù. |
|---|
| 306 | int DST_UI_GetTimeString(int hour, int min, DS_U16* timeInfo); |
|---|
| 307 | |
|---|
| 308 | // ÀÔ·ÂµÈ ½Ã°£¿¡ ÇØ´çÇÏ´Â ½Ã°£ ¹®ÀÚ¿À» ¹ÝȯÇÑ´Ù. |
|---|
| 309 | int DST_UI_GetDateTimeString(STime_t st, DS_U16* strDateTime); |
|---|
| 310 | |
|---|
| 311 | DS_U8 DST_UI_GetAgeRating(); |
|---|
| 312 | |
|---|
| 313 | void DST_UI_SetAgeRating(DS_U8 nVal); |
|---|
| 314 | |
|---|
| 315 | // Á֯ļö Å×ÀÌºí °¹¼ö |
|---|
| 316 | int DST_GetFreqCount(); |
|---|
| 317 | // À妽º¸¦ ÀÔ·ÂÇϰí Á֯ļö ¹øÈ£¸¦ ¹Þ´Â´Ù. |
|---|
| 318 | DS_U16 DST_GetFrequencyNumberbyIndex(int index); |
|---|
| 319 | // À妽º¸¦ ÀÔ·ÂÇϰí MHz ´ÜÀ§ÀÇ Á֯ļö¸¦ ¹Þ´Â´Ù. |
|---|
| 320 | DS_U16 DST_GetMHzFrequencybyIndex(int index); |
|---|
| 321 | // Á֯ļö ¹øÈ£¸¦ ÀÔ·ÂÇϰí À妽º °ªÀ» ¹Þ´Â´Ù. |
|---|
| 322 | int DST_GetIndexByRFNumber(int rf_number); |
|---|
| 323 | // MHz´ÜÀ§ÀÇ Á֯ļö¸¦ ÀÔ·ÂÇϰí À妽º °ªÀ» ¹Þ´Â´Ù. |
|---|
| 324 | int DST_GetIndexByMHzFrequency(int MHz); |
|---|
| 325 | |
|---|
| 326 | #endif //__DST_USERINTERFACE_H__ |
|---|
| 327 | |
|---|