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

Last change on this file since 27 was 2, checked in by jglee, 11 years ago

first commit

File size: 1.6 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
45int DST_DB_GetProgramNumber(int major, int minor);
46
47int DST_DB_GetProgramNumberbyRFNumber(int rf);
48
49void DST_DB_Del();
50
51void DST_DB_Sync();
52
53bool DST_DB_IsSync();
54
55void DST_DB_Open();
56
57void DST_DB_Close();
58
59int DST_DB_GetRF(int major, int *minor, bool* bFound);
60
61int DST_DB_AvailableChannelCount(int major);
62
63bool DST_DB_PresentMatchChannel(int rf, int major, int minor);
64
65void DST_DB_SetSkipChannel(int rf, int program_number, bool bAdd);
66
67DS_U32 DST_CRC32(DS_U8 *data, int len);
68
69
70// Á֯ļö ¼³Á¤¿¡¼­ Á¦¿ÜµÈ ä³ÎÀÎÁö?
71// ÀԷ°ªÀº rfÀÇ index °ªÀÌ´Ù
72int DST_DB_IsExceptRF(int rf);
73
74// ¸î°³ÀÇ Ã¤³ÎÀÌ Á¦¿ÜµÇ¾ú´ÂÁö?
75int DST_DB_GetExceptRFCount();
76
77// Á¦¿ÜµÇÁö ¾ÊÀº ´ÙÀ½ RFÀÇ index°ªÀ» °¡Á®¿Â´Ù
78// ÀÔ·ÂµÈ °ªÀº ÇöÀç indexed rf ´Ù
79int DST_DB_GetNextUnexceptRF(int rf);
80int DST_DB_GetPrevUnexceptRF(int rf);
81int DST_DB_GetUnexceptedFirstRF();
82int DST_DB_GetUnexceptedLastRF();
83
84#endif
Note: See TracBrowser for help on using the repository browser.