DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
ap_cfg.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 // pre-processor mechanism so multiple inclusions don't cause compilation error
26 
27 #ifndef _AP_CFG_H
28 #define _AP_CFG_H
29 
30 #include "techtype.h"
31 #include "stbdpc.h"
32 
33 //---Constant and macro definitions for public use-----------------------------
34 
35 #define ACFG_INVALID_REGION 255
36 #define ACFG_INVALID_LANG 255
37 
38 /* Country codes - please add new countries in alphabetical order */
39 
40 #define COUNTRY_CODE_ARGENTINA (U32BIT)(('a' << 16) | ('r' << 8) | 'g')
41 #define COUNTRY_CODE_AUSTRALIA (U32BIT)(('a' << 16) | ('u' << 8) | 's')
42 #define COUNTRY_CODE_AUSTRIA (U32BIT)(('a' << 16) | ('u' << 8) | 't')
43 #define COUNTRY_CODE_BELGIUM (U32BIT)(('b' << 16) | ('e' << 8) | 'l')
44 #define COUNTRY_CODE_BOLIVIA (U32BIT)(('b' << 16) | ('o' << 8) | 'l')
45 #define COUNTRY_CODE_BRAZIL (U32BIT)(('b' << 16) | ('r' << 8) | 'a')
46 #define COUNTRY_CODE_CHILE (U32BIT)(('c' << 16) | ('h' << 8) | 'l')
47 #define COUNTRY_CODE_CHINA (U32BIT)(('c' << 16) | ('h' << 8) | 'i')
48 #define COUNTRY_CODE_COLOMBIA (U32BIT)(('c' << 16) | ('o' << 8) | 'l')
49 #define COUNTRY_CODE_COSTARICA (U32BIT)(('c' << 16) | ('r' << 8) | 'i')
50 #define COUNTRY_CODE_CROATIA (U32BIT)(('h' << 16) | ('r' << 8) | 'v')
51 #define COUNTRY_CODE_CZECHREP (U32BIT)(('c' << 16) | ('z' << 8) | 'e')
52 #define COUNTRY_CODE_DOMINICANREP (U32BIT)(('d' << 16) | ('m' << 8) | 'a')
53 #define COUNTRY_CODE_ECUADOR (U32BIT)(('e' << 16) | ('c' << 8) | 'u')
54 #define COUNTRY_CODE_ELSALVADOR (U32BIT)(('s' << 16) | ('l' << 8) | 'v')
55 #define COUNTRY_CODE_FINLAND (U32BIT)(('f' << 16) | ('i' << 8) | 'n')
56 #define COUNTRY_CODE_FRANCE (U32BIT)(('f' << 16) | ('r' << 8) | 'a')
57 #define COUNTRY_CODE_GERMANY (U32BIT)(('d' << 16) | ('e' << 8) | 'u')
58 #define COUNTRY_CODE_GUATEMALA (U32BIT)(('g' << 16) | ('t' << 8) | 'm')
59 #define COUNTRY_CODE_HONDURAS (U32BIT)(('h' << 16) | ('n' << 8) | 'd')
60 #define COUNTRY_CODE_HUNGARY (U32BIT)(('h' << 16) | ('u' << 8) | 'n')
61 #define COUNTRY_CODE_ITALY (U32BIT)(('i' << 16) | ('t' << 8) | 'a')
62 #define COUNTRY_CODE_LATVIA (U32BIT)(('l' << 16) | ('v' << 8) | 'a')
63 #define COUNTRY_CODE_LUXEMBOURG (U32BIT)(('l' << 16) | ('u' << 8) | 'x')
64 #define COUNTRY_CODE_MEXICO (U32BIT)(('m' << 16) | ('e' << 8) | 'x')
65 #define COUNTRY_CODE_NETHERLANDS (U32BIT)(('n' << 16) | ('l' << 8) | 'd')
66 #define COUNTRY_CODE_NICARAGUA (U32BIT)(('n' << 16) | ('i' << 8) | 'c')
67 #define COUNTRY_CODE_PANAMA (U32BIT)(('p' << 16) | ('a' << 8) | 'n')
68 #define COUNTRY_CODE_PERU (U32BIT)(('p' << 16) | ('e' << 8) | 'r')
69 #define COUNTRY_CODE_POLAND (U32BIT)(('p' << 16) | ('o' << 8) | 'l')
70 #define COUNTRY_CODE_PORTUGAL (U32BIT)(('p' << 16) | ('o' << 8) | 'r')
71 #define COUNTRY_CODE_RUSSIA (U32BIT)(('r' << 16) | ('u' << 8) | 's')
72 #define COUNTRY_CODE_SERBIA (U32BIT)(('s' << 16) | ('r' << 8) | 'b')
73 #define COUNTRY_CODE_SLOVAKIA (U32BIT)(('s' << 16) | ('v' << 8) | 'k')
74 #define COUNTRY_CODE_SLOVENIA (U32BIT)(('s' << 16) | ('v' << 8) | 'n')
75 #define COUNTRY_CODE_SOUTHAFRICA (U32BIT)(('z' << 16) | ('a' << 8) | 'f')
76 #define COUNTRY_CODE_SPAIN (U32BIT)(('e' << 16) | ('s' << 8) | 'p')
77 #define COUNTRY_CODE_SWEDEN (U32BIT)(('s' << 16) | ('w' << 8) | 'e')
78 #define COUNTRY_CODE_SWITZERLAND (U32BIT)(('c' << 16) | ('h' << 8) | 'e')
79 #define COUNTRY_CODE_UK (U32BIT)(('g' << 16) | ('b' << 8) | 'r')
80 #define COUNTRY_CODE_UKRAINE (U32BIT)(('u' << 16) | ('k' << 8) | 'r')
81 #define COUNTRY_CODE_VENEZUELA (U32BIT)(('v' << 16) | ('e' << 8) | 'n')
82 
83 
84 // define language codes. (note these should all be lower-case - si handling converts received
85 // codes into lower-case when the tables are parsed)
86 
87 #define ENGLISH_LANG_CODE (('e' << 16) | ('n' << 8) | 'g')
88 #define WELSH1_LANG_CODE (('w' << 16) | ('e' << 8) | 'l')
89 #define WELSH2_LANG_CODE (('c' << 16) | ('y' << 8) | 'm')
90 #define GAELIC_LANG_CODE (('g' << 16) | ('l' << 8) | 'a')
91 #define IRISH_LANG_CODE (('g' << 16) | ('l' << 8) | 'e')
92 #define DUTCH1_LANG_CODE (('n' << 16) | ('l' << 8) | 'd')
93 #define DUTCH2_LANG_CODE (('d' << 16) | ('u' << 8) | 't')
94 #define GERMAN1_LANG_CODE (('g' << 16) | ('e' << 8) | 'r')
95 #define GERMAN2_LANG_CODE (('d' << 16) | ('e' << 8) | 'u')
96 #define FRENCH1_LANG_CODE (('f' << 16) | ('r' << 8) | 'e')
97 #define FRENCH2_LANG_CODE (('f' << 16) | ('r' << 8) | 'a')
98 #define RUSSIAN_LANG_CODE (('r' << 16) | ('u' << 8) | 's')
99 #define SIMPLIFIED_CHINESE_LANG_CODE (('c' << 16) | ('h' << 8) | 'i')
100 #define TRADITIONAL_CHINESE_LANG_CODE (('c' << 16) | ('h' << 8) | 'i')
101 #define FINNISH_LANG_CODE (('f' << 16) | ('i' << 8) | 'n')
102 #define SWEDISH_LANG_CODE (('s' << 16) | ('w' << 8) | 'e')
103 #define NORWEGIAN_LANG_CODE (('n' << 16) | ('o' << 8) | 'r')
104 #define DANISH_LANG_CODE (('d' << 16) | ('a' << 8) | 'n')
105 #define MANDARIN_LANG_CODE (('c' << 16) | ('m' << 8) | 'n')
106 #define CANTONESE_LANG_CODE (('y' << 16) | ('u' << 8) | 'e')
107 #define MAORI1_LANG_CODE (('m' << 16) | ('a' << 8) | 'o')
108 #define MAORI2_LANG_CODE (('m' << 16) | ('r' << 8) | 'i')
109 #define JAPANESE_LANG_CODE (('j' << 16) | ('p' << 8) | 'n')
110 #define ITALIAN_LANG_CODE (('i' << 16) | ('t' << 8) | 'a')
111 #define SPANISH1_LANG_CODE (('s' << 16) | ('p' << 8) | 'a')
112 #define SPANISH2_LANG_CODE (('e' << 16) | ('s' << 8) | 'l')
113 #define KOREAN_LANG_CODE (('k' << 16) | ('o' << 8) | 'r')
114 #define HINDI_LANG_CODE (('h' << 16) | ('i' << 8) | 'n')
115 #define CZECH1_LANG_CODE (('c' << 16) | ('z' << 8) | 'e')
116 #define CZECH2_LANG_CODE (('c' << 16) | ('e' << 8) | 's')
117 #define SLOVAK1_LANG_CODE (('s' << 16) | ('l' << 8) | 'k')
118 #define SLOVAK2_LANG_CODE (('s' << 16) | ('l' << 8) | 'o')
119 #define AFRIKAANS_LANG_CODE (('a' << 16) | ('f' << 8) | 'r')
120 #define NDEBELE_LANG_CODE (('n' << 16) | ('b' << 8) | 'l')
121 #define NORTHERN_SOTHO_LANG_CODE (('n' << 16) | ('s' << 8) | 'o')
122 #define SOUTHERN_SOTHO_LANG_CODE (('s' << 16) | ('o' << 8) | 't')
123 #define SWATI_LANG_CODE (('s' << 16) | ('s' << 8) | 'w')
124 #define TSONGA_LANG_CODE (('t' << 16) | ('s' << 8) | 'o')
125 #define TSWANA_LANG_CODE (('t' << 16) | ('s' << 8) | 'n')
126 #define VENDA_LANG_CODE (('v' << 16) | ('e' << 8) | 'n')
127 #define XHOSA_LANG_CODE (('x' << 16) | ('h' << 8) | 'o')
128 #define ZULU_LANG_CODE (('z' << 16) | ('u' << 8) | 'l')
129 #define CROATIAN_LANG_CODE (('h' << 16) | ('r' << 8) | 'v')
130 #define HUNGARIAN_LANG_CODE (('h' << 16) | ('u' << 8) | 'n')
131 #define LATVIAN_LANG_CODE (('l' << 16) | ('a' << 8) | 'v')
132 #define LUXEMBOURGISH_LANG_CODE (('l' << 16) | ('t' << 8) | 'z')
133 #define POLISH_LANG_CODE (('p' << 16) | ('o' << 8) | 'l')
134 #define PORTUGUESE_LANG_CODE (('p' << 16) | ('o' << 8) | 'r')
135 #define SERBIAN_LANG_CODE (('s' << 16) | ('r' << 8) | 'p')
136 #define ROMANIAN1_LANG_CODE (('r' << 16) | ('o' << 8) | 'n')
137 #define ROMANIAN2_LANG_CODE (('r' << 16) | ('u' << 8) | 'm')
138 #define ALBANIAN1_LANG_CODE (('s' << 16) | ('q' << 8) | 'i')
139 #define ALBANIAN2_LANG_CODE (('a' << 16) | ('l' << 8) | 'b')
140 #define SLOVENE_LANG_CODE (('s' << 16) | ('l' << 8) | 'v')
141 #define CATALAN_LANG_CODE (('c' << 16) | ('a' << 8) | 't')
142 #define GALICIAN_LANG_CODE (('g' << 16) | ('l' << 8) | 'g')
143 #define BASQUE1_LANG_CODE (('e' << 16) | ('u' << 8) | 's')
144 #define BASQUE2_LANG_CODE (('b' << 16) | ('a' << 8) | 'q')
145 #define UKRAINIAN_LANG_CODE (('u' << 16) | ('k' << 8) | 'r')
146 #define UND_LANG_CODE (('u' << 16) | ('n' << 8) | 'd')
147 
148 //---Enumerations for public use-----------------------------------------------
149 
150 /* Database lang definitions */
151 enum E_DB_LANGS
152 {
153  ACFG_DB_LANG_ENGLISH,
154  ACFG_DB_LANG_WELSH1,
155  ACFG_DB_LANG_WELSH2,
156  ACFG_DB_LANG_GAELIC,
157  ACFG_DB_LANG_IRISH,
158  ACFG_DB_LANG_DUTCH1,
159  ACFG_DB_LANG_DUTCH2,
160  ACFG_DB_LANG_GERMAN1,
161  ACFG_DB_LANG_GERMAN2,
162  ACFG_DB_LANG_FRENCH1,
163  ACFG_DB_LANG_FRENCH2,
164  ACFG_DB_LANG_RUSSIAN,
165  ACFG_DB_LANG_SIMPLIFIED_CHINESE,
166  ACFG_DB_LANG_TRADITIONAL_CHINESE,
167  ACFG_DB_LANG_FINNISH,
168  ACFG_DB_LANG_SWEDISH,
169  ACFG_DB_LANG_NORWEGIAN,
170  ACFG_DB_LANG_DANISH,
171  ACFG_DB_LANG_MANDARIN,
172  ACFG_DB_LANG_CANTONESE,
173  ACFG_DB_LANG_MAORI1,
174  ACFG_DB_LANG_MAORI2,
175  ACFG_DB_LANG_JAPANESE,
176  ACFG_DB_LANG_ITALIAN,
177  ACFG_DB_LANG_SPANISH1,
178  ACFG_DB_LANG_SPANISH2,
179  ACFG_DB_LANG_KOREAN,
180  ACFG_DB_LANG_HINDI,
181  ACFG_DB_LANG_CZECH1,
182  ACFG_DB_LANG_CZECH2,
183  ACFG_DB_LANG_SLOVAK1,
184  ACFG_DB_LANG_SLOVAK2,
185  ACFG_DB_LANG_AFRIKAANS,
186  ACFG_DB_LANG_NDEBELE,
187  ACFG_DB_LANG_NORTHERN_SOTHO,
188  ACFG_DB_LANG_SOUTHERN_SOTHO,
189  ACFG_DB_LANG_SWATI,
190  ACFG_DB_LANG_TSONGA,
191  ACFG_DB_LANG_TSWANA,
192  ACFG_DB_LANG_VENDA,
193  ACFG_DB_LANG_XHOSA,
194  ACFG_DB_LANG_ZULU,
195  ACFG_DB_LANG_CROATIAN,
196  ACFG_DB_LANG_HUNGARIAN,
197  ACFG_DB_LANG_LATVIAN,
198  ACFG_DB_LANG_LUXEMBOURGISH,
199  ACFG_DB_LANG_POLISH,
200  ACFG_DB_LANG_PORTUGUESE,
201  ACFG_DB_LANG_SERBIAN,
202  ACFG_DB_LANG_ROMANIAN1,
203  ACFG_DB_LANG_ROMANIAN2,
204  ACFG_DB_LANG_ALBANIAN1,
205  ACFG_DB_LANG_ALBANIAN2,
206  ACFG_DB_LANG_SLOVENE,
207  ACFG_DB_LANG_CATALAN,
208  ACFG_DB_LANG_GALICIAN,
209  ACFG_DB_LANG_BASQUE1,
210  ACFG_DB_LANG_BASQUE2,
211  ACFG_DB_LANG_UKRAINIAN,
212  ACFG_DB_LANG_UND,
213  ACFG_NUM_DB_LANGUAGES
214 };
215 
216 
217 //---Global type defs for public use-------------------------------------------
218 
219 typedef struct ana_rf_channel_data
220 {
221  U8BIT *name;
222  U32BIT freq_hz;
224 
225 typedef struct ter_rf_channel_data
226 {
227  U8BIT *name;
228  U32BIT freq_hz;
229  E_STB_DP_TBWIDTH bwidth;
230  E_STB_DP_TMODE mode;
231  E_STB_DP_TTYPE type;
233 
234 typedef struct cab_rf_channel_data
235 {
236  U8BIT *name;
237  U32BIT freq_hz;
238  E_STB_DP_CMODE mode;
239  U16BIT symbol_rate;
241 
242 typedef BOOLEAN (*AllocLcnFunc)(E_STB_DP_SIGNAL_TYPE tuner_type);
243 typedef void (*DBTidyFunc)(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN search_completed, BOOLEAN manual);
244 
245 //---Global Function prototypes for public use---------------------------------
246 
251 U8BIT ACFG_GetNumCountries(void);
252 
257 U32BIT ACFG_GetCountry(void);
258 
266 void ACFG_GetCountryList(U8BIT ***str_array_ptr, U8BIT *num_countries_ptr);
267 
273 void ACFG_ReleaseCountryList(U8BIT **str_array, U8BIT num_countries);
274 
280 U8BIT ACFG_GetNumRegions(U32BIT country_code);
281 
292 BOOLEAN ACFG_GetRegionList(U32BIT country_code, U8BIT ***str_array_ptr, U8BIT *num_regions_ptr);
293 
301 BOOLEAN ACFG_GetRegionCode(U32BIT country_code, U8BIT region_id, U8BIT *code_ptr);
302 
308 void ACFG_ReleaseRegionList(U8BIT **str_array, U8BIT num_regions);
309 
315 U8BIT ACFG_GetCountryIndex(U32BIT country_code);
316 
321 U8BIT ACFG_GetRegionId(void);
322 
328 BOOLEAN ACFG_SetCountry(U32BIT country_code);
329 
336 U8BIT ACFG_GetNumDbLanguages(U32BIT country_code);
337 
349 BOOLEAN ACFG_GetDbLangList(U32BIT country_code, U8BIT ***str_array_ptr, U8BIT *num_langs_ptr);
350 
363 U8BIT* ACFG_GetDbLangId(U32BIT country_code, U8BIT lang_entry);
364 
370 void ACFG_ReleaseDbLangList(U8BIT **str_array, U8BIT num_langs);
371 
377 U8BIT ACFG_ConvertLangCodeToId(U32BIT lang_code);
378 
384 U32BIT ACFG_ConvertLangIdToCode(U8BIT lang_id);
385 
393 void ACFG_SetCountryIds(U32BIT country_code, U8BIT region_id, U8BIT audio_lang_id, U8BIT sub_lang_id);
394 
399 U8BIT ACFG_GetPrimaryAudioLangId(void);
400 
405 U8BIT ACFG_GetSecondaryAudioLangId(void);
406 
411 U8BIT ACFG_GetPrimaryTextLangId(void);
412 
417 U8BIT ACFG_GetSecondaryTextLangId(void);
418 
424 void ACFG_SetPrimaryAudioLangId(U8BIT lang_id);
425 
430 void ACFG_SetSecondaryAudioLangId(U8BIT lang_id);
431 
436 void ACFG_SetPrimaryTextLangId(U8BIT lang_id);
437 
442 void ACFG_SetSecondaryTextLangId(U8BIT lang_id);
443 
452 
460 BOOLEAN ACFG_GetAnaRfChannelTable(U32BIT country_code, ACFG_ANA_RF_CHANNEL_DATA **rf_chan_data_ptr,
461  U16BIT *num_entries_ptr);
462 
470 BOOLEAN ACFG_GetTerRfChannelTable(U32BIT country_code, ACFG_TER_RF_CHANNEL_DATA **rf_chan_data_ptr,
471  U16BIT *num_entries_ptr);
472 
480 BOOLEAN ACFG_GetCabRfChannelTable(U32BIT country_code, ACFG_CAB_RF_CHANNEL_DATA **rf_chan_data_ptr,
481  U16BIT *num_entries_ptr);
482 
488 void ACFG_SetCableChannelTable(ACFG_CAB_RF_CHANNEL_DATA *cable_channel_data, U16BIT number_channels);
489 
495 U32BIT ACFG_GetCountryCode(U8BIT country_id);
496 
503 U32BIT ACFG_GetPrivateDataSpecifier(U32BIT country_code);
504 
511 U16BIT ACFG_GetFirstUnallocatedLcn(U32BIT country_code);
512 
519 U16BIT ACFG_GetLastUnallocatedLcn(U32BIT country_code);
520 
528 BOOLEAN ACFG_GetWatershedTimes(U32BIT country_code, U16BIT *start_time, U16BIT *end_time);
529 
536 U16BIT ACFG_GetMinSatelliteScanFreq(U32BIT country_code);
537 
544 U16BIT ACFG_GetMaxSatelliteScanFreq(U32BIT country_code);
545 
552 U16BIT ACFG_GetSatelliteScanFreqInc(U32BIT country_code);
553 
560 U16BIT* ACFG_GetSatelliteScanSymbolRates(U32BIT country_code);
561 
568 U8BIT ACFG_GetSatelliteScanNumSymbolRates(U32BIT country_code);
569 
576 BOOLEAN ACFG_GetSatelliteScanDvbS2(U32BIT country_code);
577 
584 BOOLEAN ACFG_GetAerialPowerOptionReqd(U32BIT country_code);
585 
592 BOOLEAN ACFG_GetDefaultAerialPower(U32BIT country_code);
593 
600 BOOLEAN ACFG_GetAerialTuningScreenReqd(U32BIT country_code);
601 
610 U8BIT* ACFG_GetEventContentTypes(U32BIT country_code);
611 
618 void ACFG_SetBackgroundSearchTime(U16BIT start_time, U16BIT end_time);
619 
625 void ACFG_GetBackgroundSearchTime(U16BIT *start_time, U16BIT *end_time);
626 
631 void ACFG_SetBackgroundServiceSearch(BOOLEAN enabled);
632 
637 BOOLEAN ACFG_GetBackgroundServiceSearch(void);
638 
643 void ACFG_SetBackgroundSSUSearch(BOOLEAN enabled);
644 
649 BOOLEAN ACFG_GetBackgroundSSUSearch(void);
650 
655 BOOLEAN ACFG_IsNordigCountry(void);
656 
662 U8BIT ACFG_GetEitUpdateTime(void);
663 
669 U8BIT ACFG_GetEitSearchesPerDay(void);
670 
677 AllocLcnFunc ACFG_GetTerrestrialLcnFunction(U32BIT country_code);
678 
684 void ACFG_SetTerrestrialLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr);
685 
692 AllocLcnFunc ACFG_GetCableLcnFunction(U32BIT country_code);
693 
699 void ACFG_SetCableLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr);
700 
707 AllocLcnFunc ACFG_GetSatelliteLcnFunction(U32BIT country_code);
708 
714 void ACFG_SetSatelliteLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr);
715 
722 DBTidyFunc ACFG_GetTerrestrialDBTidyFunction(U32BIT country_code);
723 
730 DBTidyFunc ACFG_GetCableDBTidyFunction(U32BIT country_code);
731 
738 DBTidyFunc ACFG_GetSatelliteDBTidyFunction(U32BIT country_code);
739 
747 void ACFG_SetUndefinedLanguageBehaviour(U32BIT lang_code);
748 
755 
760 void ACFG_SetHostCountryLanguageModuleId(U32BIT module);
761 
762 #endif // _AP_CFG_H
void ACFG_SetTerrestrialLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr)
Overrides an existing DVB-T/T2 LCN allocation function for the given country.
Definition: ap_cfg.c:1637
U32BIT ACFG_GetUndefinedLanguageBehaviour(void)
Gets the language code set by ACFG_SetUndefinedLanguageBehaviour, or 'und' if that function has not b...
Definition: ap_cfg.c:1903
AllocLcnFunc ACFG_GetTerrestrialLcnFunction(U32BIT country_code)
Returns a pointer to a function that's used to assign LCNs following a DVB-T/T2 scan for the given co...
Definition: ap_cfg.c:1610
BOOLEAN ACFG_GetWatershedTimes(U32BIT country_code, U16BIT *start_time, U16BIT *end_time)
Get the start and end times of the watershed hours for a country.
Definition: ap_cfg.c:1115
U8BIT ACFG_GetRegionId(void)
Returns the internal ID of the region the DVB is configured for.
Definition: ap_cfg.c:250
U8BIT ACFG_GetPrimaryAudioLangId(void)
Returns the primary audio language ID.
Definition: ap_cfg.c:265
void ACFG_ReleaseRegionList(U8BIT **str_array, U8BIT num_regions)
Frees the region array previously acquired using ACFG_GetRegionList.
Definition: ap_cfg.c:728
void ACFG_GetBackgroundSearchTime(U16BIT *start_time, U16BIT *end_time)
Gets the background start and end search times.
Definition: ap_cfg.c:1456
U16BIT ACFG_GetMinSatelliteScanFreq(U32BIT country_code)
Returns the minimum frequency to be used when performing a satellite based frequency scan in the give...
Definition: ap_cfg.c:1147
void ACFG_SetCableLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr)
Overrides an existing DVB-C LCN allocation function for the given country.
Definition: ap_cfg.c:1685
U8BIT ACFG_GetSecondaryAudioLangId(void)
Returns the secondary audio language ID.
Definition: ap_cfg.c:280
U16BIT ACFG_GetFirstUnallocatedLcn(U32BIT country_code)
Returns the first LCN that should be used when assigning LCNs to services that don't appear in an LCN...
Definition: ap_cfg.c:1064
U8BIT ACFG_GetEitUpdateTime(void)
Returns the number of minutes after which all the events should have been received during an EIT sear...
Definition: ap_cfg.c:1586
Header file - macros and function prototypes for public use.
void ACFG_SetSecondaryTextLangId(U8BIT lang_id)
Sets the secondary language id to be used for teletext/subtitles.
Definition: ap_cfg.c:543
BOOLEAN ACFG_GetAnaRfChannelTable(U32BIT country_code, ACFG_ANA_RF_CHANNEL_DATA **rf_chan_data_ptr, U16BIT *num_entries_ptr)
Returns a pointer to the channel table for an analog tuner for the given country. ...
Definition: ap_cfg.c:910
void ACFG_SetBackgroundServiceSearch(BOOLEAN enabled)
Enables or disables the background service search when in standby.
Definition: ap_cfg.c:1477
DBTidyFunc ACFG_GetSatelliteDBTidyFunction(U32BIT country_code)
Returns a pointer to a function that's used to tidy up the database following a DVB-S/S2 scan for the...
Definition: ap_cfg.c:1810
U8BIT ACFG_GetNumRegions(U32BIT country_code)
Returns the number of regions in the given country.
Definition: ap_cfg.c:623
void ACFG_SetPrimaryAudioLangId(U8BIT lang_id)
Sets the primary language id to be used for audio. This is the language that will be chosen first...
Definition: ap_cfg.c:468
void ACFG_SetSatelliteLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr)
Overrides an existing DVB-S/S2 LCN allocation function for the given country.
Definition: ap_cfg.c:1733
void ACFG_GetCountryList(U8BIT ***str_array_ptr, U8BIT *num_countries_ptr)
Returns an array containing the names of all the countries included in the DVB. The index into this a...
Definition: ap_cfg.c:571
U8BIT ACFG_GetNumCountries(void)
Returns the number of country configurations included in the DVB stack.
Definition: ap_cfg.c:200
U32BIT ACFG_ConvertLangIdToCode(U8BIT lang_id)
Returns the language code for the given language id.
Definition: ap_cfg.c:866
AllocLcnFunc ACFG_GetSatelliteLcnFunction(U32BIT country_code)
Returns a pointer to a function that's used to assign LCNs following a DVB-S/S2 scan for the given co...
Definition: ap_cfg.c:1706
BOOLEAN ACFG_GetRegionList(U32BIT country_code, U8BIT ***str_array_ptr, U8BIT *num_regions_ptr)
Returns an array of pointers to strings containing the region names for the given country...
Definition: ap_cfg.c:679
void ACFG_ReleaseCountryList(U8BIT **str_array, U8BIT num_countries)
Frees a country list previously acquired using ACFG_GetCountryList.
Definition: ap_cfg.c:604
Definition: ap_cfg.h:225
U8BIT ACFG_GetPrimaryTextLangId(void)
Returns the primary DVB subtitle/teletext language ID.
Definition: ap_cfg.c:295
BOOLEAN ACFG_GetBackgroundServiceSearch(void)
Returns whether the background service search is enabled or not.
Definition: ap_cfg.c:1490
BOOLEAN ACFG_GetAerialTuningScreenReqd(U32BIT country_code)
Returns whether an aerial tuning screen should be presented by the interface before performing a DVB-...
Definition: ap_cfg.c:1353
BOOLEAN ACFG_SetCountry(U32BIT country_code)
Sets the current country and sets default values for region and language.
Definition: ap_cfg.c:326
U8BIT ACFG_GetDefaultSecondaryLangId(void)
Returns the default secondary language for audio and subtitles as defined for the selected country...
Definition: ap_cfg.c:1839
U8BIT ACFG_GetSecondaryTextLangId(void)
Returns the secondary DVB subtitle/teletext language ID.
Definition: ap_cfg.c:310
BOOLEAN ACFG_GetCabRfChannelTable(U32BIT country_code, ACFG_CAB_RF_CHANNEL_DATA **rf_chan_data_ptr, U16BIT *num_entries_ptr)
Returns a pointer to the channel table for a cable tuner for the given country.
Definition: ap_cfg.c:968
DBTidyFunc ACFG_GetCableDBTidyFunction(U32BIT country_code)
Returns a pointer to a function that's used to tidy up the database following a DVB-C scan for the gi...
Definition: ap_cfg.c:1782
BOOLEAN ACFG_GetBackgroundSSUSearch(void)
Returns whether the background SSU search is enabled or not.
Definition: ap_cfg.c:1520
void ACFG_SetCableChannelTable(ACFG_CAB_RF_CHANNEL_DATA *cable_channel_data, U16BIT number_channels)
Replaces the cable tuning table for the current country with the one provided.
Definition: ap_cfg.c:995
BOOLEAN ACFG_GetDefaultAerialPower(U32BIT country_code)
Returns the default aerial power option setting for DVB-T/T2 for the given country.
Definition: ap_cfg.c:1328
Definition: ap_cfg.h:234
BOOLEAN ACFG_GetSatelliteScanDvbS2(U32BIT country_code)
Returns whether DVB-S2 should be included when performing a satellite based frequency scan in the giv...
Definition: ap_cfg.c:1277
void ACFG_SetSecondaryAudioLangId(U8BIT lang_id)
Sets the secondary language id to be used for audio.
Definition: ap_cfg.c:493
BOOLEAN ACFG_IsNordigCountry(void)
Returns whether the current country requires Nordig compliance for SI.
Definition: ap_cfg.c:1537
U8BIT * ACFG_GetDbLangId(U32BIT country_code, U8BIT lang_entry)
Returns an array of language ids for a given country and index into the language array. A language id is one of the ACFG_DB_LANG_XXXX values above and there might be more than one for a given language. For example german language has two ids associated to it: ACFG_DB_LANG_GERMAN1 and ACFG_DB_LANG_GERMAN2 because german language can have two different codes, 'deu' and 'ger'. See also functions ACFG_ConvertLangIdToCode and ACFG_ConvertLangCodeToId. The returned pointer is an internal array and must not be freed.
Definition: ap_cfg.c:809
void ACFG_SetPrimaryTextLangId(U8BIT lang_id)
Sets the primary language id to be used for teletext/subtitles.
Definition: ap_cfg.c:518
U8BIT ACFG_ConvertLangCodeToId(U32BIT lang_code)
Returns the language id for the given language code.
Definition: ap_cfg.c:840
U16BIT ACFG_GetLastUnallocatedLcn(U32BIT country_code)
Returns the last LCN that should be used when assigning LCNs to services that don't appear in an LCN ...
Definition: ap_cfg.c:1089
BOOLEAN ACFG_GetDbLangList(U32BIT country_code, U8BIT ***str_array_ptr, U8BIT *num_langs_ptr)
Returns an array of pointers to strings containing the available language names for the given country...
Definition: ap_cfg.c:753
BOOLEAN ACFG_GetRegionCode(U32BIT country_code, U8BIT region_id, U8BIT *code_ptr)
Returns the region code that identifies the given region.
Definition: ap_cfg.c:1379
U8BIT ACFG_GetEitSearchesPerDay(void)
Returns the number of EIT searches that should be performed per day when the box is in standby...
Definition: ap_cfg.c:1563
void ACFG_SetBackgroundSearchTime(U16BIT start_time, U16BIT end_time)
Sets the start and end times during which background searches are allowed run when in standby...
Definition: ap_cfg.c:1438
U8BIT ACFG_GetSatelliteScanNumSymbolRates(U32BIT country_code)
Returns the number of items in the fixed array of symbol rates to be used when performing a satellite...
Definition: ap_cfg.c:1251
DBTidyFunc ACFG_GetTerrestrialDBTidyFunction(U32BIT country_code)
Returns a pointer to a function that's used to tidy up the database following a DVB-T/T2 scan for the...
Definition: ap_cfg.c:1754
U32BIT ACFG_GetPrivateDataSpecifier(U32BIT country_code)
Returns the private data specifier value for the given country.
Definition: ap_cfg.c:1039
U32BIT ACFG_GetCountry(void)
Returns the country code the DVB is configured for.
Definition: ap_cfg.c:211
System Wide Global Technical Data Type Definitions.
void ACFG_SetUndefinedLanguageBehaviour(U32BIT lang_code)
Sets the language code to be used when the SI descriptors contain 'und', 'qaa' or don't contain any l...
Definition: ap_cfg.c:1883
U16BIT ACFG_GetSatelliteScanFreqInc(U32BIT country_code)
Returns the increment frequency to be used when performing a satellite based frequency scan in the gi...
Definition: ap_cfg.c:1199
AllocLcnFunc ACFG_GetCableLcnFunction(U32BIT country_code)
Returns a pointer to a function that's used to assign LCNs following a DVB-C scan for the given count...
Definition: ap_cfg.c:1658
U8BIT ACFG_GetCountryIndex(U32BIT country_code)
Returns the index in the list of countries known by the DVB, of the given country.
Definition: ap_cfg.c:227
BOOLEAN ACFG_GetAerialPowerOptionReqd(U32BIT country_code)
Returns whether the aerial power option is required for DVB-T/T2 for the given country.
Definition: ap_cfg.c:1303
U8BIT * ACFG_GetEventContentTypes(U32BIT country_code)
Returns the event content types for the given country. This defines how the content type value broadc...
Definition: ap_cfg.c:1410
void ACFG_SetCountryIds(U32BIT country_code, U8BIT region_id, U8BIT audio_lang_id, U8BIT sub_lang_id)
Saves the configured country and changes settings related to the country.
Definition: ap_cfg.c:358
U16BIT * ACFG_GetSatelliteScanSymbolRates(U32BIT country_code)
Returns a fixed array of symbol rates to be used when performing a satellite based frequency scan in ...
Definition: ap_cfg.c:1225
void ACFG_SetBackgroundSSUSearch(BOOLEAN enabled)
Enables or disables the background SSU search when in standby.
Definition: ap_cfg.c:1507
BOOLEAN ACFG_GetTerRfChannelTable(U32BIT country_code, ACFG_TER_RF_CHANNEL_DATA **rf_chan_data_ptr, U16BIT *num_entries_ptr)
Returns a pointer to the channel table for a terrestrial tuner for the given country.
Definition: ap_cfg.c:939
U16BIT ACFG_GetMaxSatelliteScanFreq(U32BIT country_code)
Returns the maximum frequency to be used when performing a satellite based frequency scan in the give...
Definition: ap_cfg.c:1173
Definition: ap_cfg.h:219
void ACFG_ReleaseDbLangList(U8BIT **str_array, U8BIT num_langs)
Frees the language array previously acquired using ACFG_GetDbLangList.
Definition: ap_cfg.c:889
void ACFG_SetHostCountryLanguageModuleId(U32BIT module)
Sets the host and country module for CI stack. Value zero for disable.
Definition: ap_cfg.c:1914
U32BIT ACFG_GetCountryCode(U8BIT country_id)
Returns the country code for the given country index.
Definition: ap_cfg.c:1016
U8BIT ACFG_GetNumDbLanguages(U32BIT country_code)
Returns the number of languages defined for the given country that can be used for audio and subtitle...
Definition: ap_cfg.c:649