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

Last change on this file was 48, checked in by phkim, 10 years ago

1.phkim

  1. 서경방송
  2. 변경 내용
    • 변수이름 변경
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_SyncNow();
59
60void DST_DB_Open();
61
62void DST_DB_Close();
63
64int DST_DB_GetRF(int major, int *minor, bool* bFound);
65
66int DST_DB_AvailableChannelCount(int major);
67
68bool DST_DB_PresentMatchChannel(int rf, int major, int minor);
69
70void DST_DB_SetSkipChannel(int major, int minor, bool bAdd);
71
72DS_U32 DST_CRC32(DS_U8 *data, int len);
73
74
75// Á֯ļö ¼³Á¤¿¡¼­ Á¦¿ÜµÈ ä³ÎÀÎÁö?
76// ÀԷ°ªÀº rfÀÇ index °ªÀÌ´Ù
77int DST_DB_IsExceptRF(int rf);
78
79// ¸î°³ÀÇ Ã¤³ÎÀÌ Á¦¿ÜµÇ¾ú´ÂÁö?
80int DST_DB_GetExceptRFCount();
81
82// Á¦¿ÜµÇÁö ¾ÊÀº ´ÙÀ½ RFÀÇ index°ªÀ» °¡Á®¿Â´Ù
83// ÀÔ·ÂµÈ °ªÀº ÇöÀç indexed rf ´Ù
84int DST_DB_GetNextUnexceptRF(int rf);
85int DST_DB_GetPrevUnexceptRF(int rf);
86int DST_DB_GetUnexceptedFirstRF();
87int DST_DB_GetUnexceptedLastRF();
88
89#endif
Note: See TracBrowser for help on using the repository browser.