source: svn/trunk/zasc/app_c/DST_DB.h @ 45

Last change on this file since 45 was 38, checked in by megakiss, 10 years ago

수동 스캔 후 빠져나오면 비디오 화면과 채널정보가 맞지 않는 문제로 수정
수동 스캔 메뉴에서 나올때 해당 RF의 첫번째 채널로 튜닝 시도하는 코두 추가

File size: 1.7 KB
Line 
1#ifndef __DST_DB_H__
2#define __DST_DB_H__
3
4#include "DST_CommonAPI.h"
5
6#define FLASH_VERSION 1
7
8typedef struct 
9{
10        char num[20];
11        DS_U8 name[TEXT_LENGTH_MAX];
12} CHANNEL_DISPLAY;
13
14typedef struct 
15{
16        int rf;
17        int major;
18        int minor;
19        char num[20];
20        DS_U16 number;
21        DS_U8  name[TEXT_LENGTH_MAX];
22}ChannelMap;
23
24
25ChannelMap* DST_DB_GetChannelMapForChEdit(int *nChannels);
26
27bool DST_DB_PresentChMap();
28
29
30int DST_DB_GetMajor(DS_U8 RF, DS_U16 program_number);
31
32
33int DST_DB_GetMinor(DS_U8 RF, DS_U16 program_number);
34
35
36void DST_DB_ChannelUpDn(bool bUp);
37
38int DST_DB_GetChannelCount();
39
40bool DST_DB_GetCurrentChannelInfo(char* chNum, DS_U32* chName, int *num);
41
42// ºÎÆÃ ÈÄ È¤Àº ¿ÀÅä ½ºÄµ ÈÄ È£Ã⠵ȴÙ.
43void DST_DB_TuneFirstChannel();
44
45// ¸Å´º¾ó ½ºÄµ ÈÄ ÇØ´ç RFÀÇ Ã¹¹øÂ° ä³Î·Î °£´Ù.
46void DST_DB_TuneFirstChannelinRF(int rf);
47
48int DST_DB_GetProgramNumber(int major, int minor);
49
50int DST_DB_GetProgramNumberbyRFNumber(int rf);
51
52void DST_DB_Del();
53
54void DST_DB_Sync();
55
56bool DST_DB_IsSync();
57
58void DST_DB_Open();
59
60void DST_DB_Close();
61
62int DST_DB_GetRF(int major, int *minor, bool* bFound);
63
64int DST_DB_AvailableChannelCount(int major);
65
66bool DST_DB_PresentMatchChannel(int rf, int major, int minor);
67
68void DST_DB_SetSkipChannel(int rf, int program_number, bool bAdd);
69
70DS_U32 DST_CRC32(DS_U8 *data, int len);
71
72
73// Á֯ļö ¼³Á¤¿¡¼­ Á¦¿ÜµÈ ä³ÎÀÎÁö?
74// ÀԷ°ªÀº rfÀÇ index °ªÀÌ´Ù
75int DST_DB_IsExceptRF(int rf);
76
77// ¸î°³ÀÇ Ã¤³ÎÀÌ Á¦¿ÜµÇ¾ú´ÂÁö?
78int DST_DB_GetExceptRFCount();
79
80// Á¦¿ÜµÇÁö ¾ÊÀº ´ÙÀ½ RFÀÇ index°ªÀ» °¡Á®¿Â´Ù
81// ÀÔ·ÂµÈ °ªÀº ÇöÀç indexed rf ´Ù
82int DST_DB_GetNextUnexceptRF(int rf);
83int DST_DB_GetPrevUnexceptRF(int rf);
84int DST_DB_GetUnexceptedFirstRF();
85int DST_DB_GetUnexceptedLastRF();
86
87#endif
Note: See TracBrowser for help on using the repository browser.