43 #ifdef COMMON_INTERFACE 56 #define NUM_COUNTRIES (sizeof(country_data_table) / sizeof(ACFG_COUNTRY_CONFIG)) 64 static U32BIT und_lang_code = ADB_LANG_CODE_UNDEF;
65 #ifdef COMMON_INTERFACE 66 static U32BIT ci_hcl_module = 0;
71 static U8BIT GetCountryId(U32BIT country_code);
76 #define DECLARE_DATA_TABLES 77 #define DECLARE_DB_LANG_LIST // include db_lang_list[] defined in ap_cfdat.h 79 #undef DECLARE_DB_LANG_LIST 80 #undef DECLARE_DATA_TABLES 89 #ifdef COMMON_INTERFACE 94 static void CISetHostCountryCode(U32BIT code)
96 U8BIT country_code[3];
97 FUNCTION_START(CISetHostCountryCode);
102 country_code[0] = (U8BIT)(code >> 16);
103 country_code[1] = (U8BIT)(code >> 8);
104 country_code[2] = (U8BIT)code;
105 STB_CISetHostCountryCode(ci_hcl_module, country_code);
107 FUNCTION_FINISH(CISetHostCountryCode);
114 static void CISetHostLanguageCode(U32BIT code)
117 FUNCTION_START(CISetHostLanguageCode);
120 lang_code[0] = (U8BIT)(code >> 16);
121 lang_code[1] = (U8BIT)(code >> 8);
122 lang_code[2] = (U8BIT)code;
123 STB_CISetHostLanguageCode(ci_hcl_module, lang_code);
125 FUNCTION_FINISH(CISetHostLanguageCode);
128 #endif // COMMON_INTERFACE 143 return(NUM_COUNTRIES);
158 return(country_code);
172 for (index = 0; index < NUM_COUNTRIES; index++)
174 if (country_data_table[index].country_code == country_code)
209 lang_id = (U8BIT)
APP_NvmRead(PRIMARY_AUDIO_LANG_NVM);
224 lang_id = (U8BIT)
APP_NvmRead(SECONDARY_AUDIO_LANG_NVM);
239 lang_id = (U8BIT)
APP_NvmRead(PRIMARY_TEXT_LANG_NVM);
254 lang_id = (U8BIT)
APP_NvmRead(SECONDARY_TEXT_LANG_NVM);
274 for (
id = 0;
id < NUM_COUNTRIES;
id++)
276 if (country_data_table[
id].country_code == country_code)
297 void ACFG_SetCountryIds(U32BIT country_code, U8BIT region_id, U8BIT audio_lang_id, U8BIT sub_lang_id)
300 BOOLEAN country_changed;
303 #ifdef COMMON_INTERFACE 309 country_changed = FALSE;
312 for (country_id = 0; country_id < NUM_COUNTRIES; country_id++)
314 if (country_data_table[country_id].country_code == country_code)
318 APP_NvmSave(COUNTRY_CODE_NVM, country_code, FALSE);
320 #ifdef COMMON_INTERFACE 322 CISetHostCountryCode(country_code);
324 country_changed = TRUE;
354 if (country_data_table[country_id].si_descs != NULL)
356 for (index = 0; country_data_table[country_id].si_descs[index].table_id != 0x00; index++)
359 country_data_table[country_id].si_descs[index].func);
363 if (country_changed || (audio_lang_id != (U8BIT)
APP_NvmRead(PRIMARY_AUDIO_LANG_NVM)))
365 APP_NvmSave(PRIMARY_AUDIO_LANG_NVM, (U32BIT)audio_lang_id, FALSE);
370 #ifdef COMMON_INTERFACE 380 if (country_changed || (sub_lang_id != (U8BIT)
APP_NvmRead(PRIMARY_TEXT_LANG_NVM)))
382 APP_NvmSave(PRIMARY_TEXT_LANG_NVM, (U32BIT)sub_lang_id, FALSE);
390 if (region_id != (U8BIT)
APP_NvmRead(REGION_ID_NVM))
393 APP_NvmSave(REGION_ID_NVM, (U32BIT)region_id, FALSE);
421 if (lang_id != (U8BIT)
APP_NvmRead(PRIMARY_AUDIO_LANG_NVM))
423 APP_NvmSave(PRIMARY_AUDIO_LANG_NVM, (U32BIT)lang_id, TRUE);
427 if (GetCountryId(country_code) < NUM_COUNTRIES)
446 if (lang_id != (U8BIT)
APP_NvmRead(SECONDARY_AUDIO_LANG_NVM))
448 APP_NvmSave(SECONDARY_AUDIO_LANG_NVM, (U32BIT)lang_id, TRUE);
452 if (GetCountryId(country_code) < NUM_COUNTRIES)
471 if (lang_id != (U8BIT)
APP_NvmRead(PRIMARY_TEXT_LANG_NVM))
473 APP_NvmSave(PRIMARY_TEXT_LANG_NVM, (U32BIT)lang_id, TRUE);
477 if (GetCountryId(country_code) < NUM_COUNTRIES)
496 if (lang_id != (U8BIT)
APP_NvmRead(SECONDARY_TEXT_LANG_NVM))
498 APP_NvmSave(SECONDARY_TEXT_LANG_NVM, (U32BIT)lang_id, TRUE);
502 if (GetCountryId(country_code) < NUM_COUNTRIES)
526 num_entries = NUM_COUNTRIES;
528 if (str_array != NULL)
530 for (i = 0; i < num_entries; i++)
532 str_array[i] = (U8BIT *)country_data_table[i].country_name;
540 *str_array_ptr = str_array;
541 *num_countries_ptr = num_entries;
555 USE_UNWANTED_PARAM(num_countries);
557 if (str_array != NULL)
579 country_id = GetCountryId(country_code);
580 if ((config != NULL) && (country_id < NUM_COUNTRIES))
612 country_id = GetCountryId(country_code);
613 if ((config != NULL) && (country_id < NUM_COUNTRIES))
651 country_id = GetCountryId(country_code);
652 if (country_id < NUM_COUNTRIES)
654 num_regions = country_data_table[country_id].num_regions;
670 U8BIT num_db_languages;
675 num_db_languages = 0;
677 country_id = GetCountryId(country_code);
678 if (country_id < NUM_COUNTRIES)
680 num_db_languages = country_data_table[country_id].num_db_langs;
685 return(num_db_languages);
714 country_id = GetCountryId(country_code);
715 if (country_id < NUM_COUNTRIES)
717 num_regions = country_data_table[country_id].num_regions;
718 region_data = country_data_table[country_id].region_data;
719 if ((num_regions != 0) && (region_data != NULL))
722 if (str_array != NULL)
724 for (i = 0; i < num_regions; i++)
726 str_array[i] = region_data[i].name;
729 num_entries = num_regions;
735 *str_array_ptr = str_array;
736 *num_regions_ptr = num_entries;
751 USE_UNWANTED_PARAM(num_regions);
753 if (str_array != NULL)
781 country_id = GetCountryId(country_code);
782 if (country_id < NUM_COUNTRIES)
784 if (num_languages != 0)
787 if (lang_data != NULL)
791 country_data_table[country_id].num_db_langs = num_languages;
792 country_data_table[country_id].db_lang_data = lang_data;
798 country_data_table[country_id].num_db_langs = num_languages;
799 country_data_table[country_id].db_lang_data = languages;
860 country_id = GetCountryId(country_code);
861 if (country_id < NUM_COUNTRIES)
863 num_langs = country_data_table[country_id].num_db_langs;
864 lang_data = country_data_table[country_id].db_lang_data;
865 if ((num_langs != 0) && (lang_data != NULL))
868 if (str_array != NULL)
870 for (i = 0; i < num_langs; i++)
872 str_array[i] = (U8BIT *)language_strings[lang_data[i].language_id];
874 num_entries = num_langs;
880 *str_array_ptr = str_array;
881 *num_langs_ptr = num_entries;
902 const U8BIT *lang_ids;
911 country_id = GetCountryId(country_code);
912 if (country_id < NUM_COUNTRIES)
914 num_langs = country_data_table[country_id].num_db_langs;
915 lang_data = country_data_table[country_id].db_lang_data;
916 if ((num_langs != 0) && (lang_data != NULL) && (lang_entry < num_langs))
918 lang_ids = lang_data[lang_entry].ids;
923 return (U8BIT*)lang_ids;
938 lang_id = ACFG_INVALID_LANG;
939 for (i = 0; i < ACFG_NUM_DB_LANGUAGES; i++)
941 if (db_lang_list[i] == lang_code)
963 if (lang < ACFG_NUM_DB_LANGUAGES)
965 lang_code = db_lang_list[lang];
984 USE_UNWANTED_PARAM(num_langs);
986 if (str_array != NULL)
1002 U16BIT *num_entries_ptr)
1011 country_id = GetCountryId(country_code);
1012 if (country_id < NUM_COUNTRIES)
1015 *num_entries_ptr = country_data_table[country_id].num_ana_rf_channels;
1031 U16BIT *num_entries_ptr)
1040 country_id = GetCountryId(country_code);
1041 if (country_id < NUM_COUNTRIES)
1044 *num_entries_ptr = country_data_table[country_id].num_ter_rf_channels;
1060 U16BIT *num_entries_ptr)
1069 country_id = GetCountryId(country_code);
1070 if (country_id < NUM_COUNTRIES)
1072 *rf_chan_data_ptr = country_data_table[country_id].cab_rf_channel_table_ptr;
1073 *num_entries_ptr = country_data_table[country_id].num_cab_rf_channels;
1092 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
1093 if (country_id < NUM_COUNTRIES)
1095 country_data_table[country_id].cab_rf_channel_table_ptr = cable_channel_data;
1096 country_data_table[country_id].num_cab_rf_channels = number_channels;
1115 if (country_id < NUM_COUNTRIES)
1117 code = country_data_table[country_id].country_code;
1139 country_id = GetCountryId(country_code);
1140 if (country_id < NUM_COUNTRIES)
1142 code = country_data_table[country_id].private_data_specifier;
1165 country_id = GetCountryId(country_code);
1166 if (country_id < NUM_COUNTRIES)
1171 lcn = country_data_table[country_id].terr_first_unallocated_lcn;
1174 lcn = country_data_table[country_id].cab_first_unallocated_lcn;
1177 lcn = country_data_table[country_id].sat_first_unallocated_lcn;
1204 country_id = GetCountryId(country_code);
1205 if (country_id < NUM_COUNTRIES)
1210 lcn = country_data_table[country_id].terr_last_unallocated_lcn;
1213 lcn = country_data_table[country_id].cab_last_unallocated_lcn;
1216 lcn = country_data_table[country_id].sat_last_unallocated_lcn;
1236 BOOLEAN watershed_defined;
1241 watershed_defined = FALSE;
1243 country_id = GetCountryId(country_code);
1244 if (country_id < NUM_COUNTRIES)
1246 if ((country_data_table[country_id].start_watershed < 1440) &&
1247 (country_data_table[country_id].end_watershed < 1440))
1249 *start_time = country_data_table[country_id].start_watershed;
1250 *end_time = country_data_table[country_id].end_watershed;
1251 watershed_defined = TRUE;
1257 return(watershed_defined);
1275 country_id = GetCountryId(country_code);
1276 if (country_id < NUM_COUNTRIES)
1278 freq = country_data_table[country_id].min_sat_freq;
1301 country_id = GetCountryId(country_code);
1302 if (country_id < NUM_COUNTRIES)
1304 freq = country_data_table[country_id].max_sat_freq;
1327 country_id = GetCountryId(country_code);
1328 if (country_id < NUM_COUNTRIES)
1330 inc = country_data_table[country_id].sat_freq_inc;
1353 country_id = GetCountryId(country_code);
1354 if (country_id < NUM_COUNTRIES)
1356 srates = (U16BIT *)(country_data_table[country_id].sat_symbol_rates);
1379 country_id = GetCountryId(country_code);
1380 if (country_id < NUM_COUNTRIES)
1382 num = country_data_table[country_id].num_symbol_rates;
1405 country_id = GetCountryId(country_code);
1406 if (country_id < NUM_COUNTRIES)
1408 inc_dvbs2 = country_data_table[country_id].include_dvbs2;
1431 country_id = GetCountryId(country_code);
1432 if (country_id < NUM_COUNTRIES)
1434 retval = country_data_table[country_id].aerial_power_option_reqd;
1456 country_id = GetCountryId(country_code);
1457 if (country_id < NUM_COUNTRIES)
1459 retval = country_data_table[country_id].default_aerial_power;
1481 country_id = GetCountryId(country_code);
1482 if (country_id < NUM_COUNTRIES)
1484 retval = country_data_table[country_id].aerial_tuning_screen_reqd;
1507 country_id = GetCountryId(country_code);
1508 if (country_id < NUM_COUNTRIES)
1510 if (region_id < country_data_table[country_id].num_regions)
1512 *code_ptr = country_data_table[country_id].region_data[region_id].code;
1536 country_id = GetCountryId(country_code);
1537 if (country_id < NUM_COUNTRIES)
1539 types = country_data_table[country_id].event_content_types;
1548 return (U8BIT*)types;
1561 if ((end_time > start_time) && (end_time < (24 * 60)))
1563 APP_NvmSave(BACKGROUND_SEARCH_START_NVM, (U32BIT)start_time, FALSE);
1564 APP_NvmSave(BACKGROUND_SEARCH_END_NVM, (U32BIT)end_time, TRUE);
1579 if (start_time != NULL)
1581 *start_time = (U16BIT)
APP_NvmRead(BACKGROUND_SEARCH_START_NVM);
1584 if (end_time != NULL)
1586 *end_time = (U16BIT)
APP_NvmRead(BACKGROUND_SEARCH_END_NVM);
1600 APP_NvmSave(SERVICE_SEARCH_ENABLED_NVM, (U32BIT)enabled, TRUE);
1615 enabled = (BOOLEAN)
APP_NvmRead(SERVICE_SEARCH_ENABLED_NVM);
1630 APP_NvmSave(SSU_SEARCH_ENABLED_NVM, (U32BIT)enabled, TRUE);
1645 enabled = (BOOLEAN)
APP_NvmRead(SSU_SEARCH_ENABLED_NVM);
1663 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
1664 if (country_id < NUM_COUNTRIES)
1666 retval = country_data_table[country_id].nordig_compliant;
1692 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
1693 if (country_id < NUM_COUNTRIES)
1698 retval = country_data_table[country_id].terr_nordig_service;
1701 retval = country_data_table[country_id].cab_nordig_service;
1704 retval = country_data_table[country_id].sat_nordig_service;
1728 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
1729 if (country_id < NUM_COUNTRIES)
1731 retval = country_data_table[country_id].eit_searches_per_day;
1751 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
1752 if (country_id < NUM_COUNTRIES)
1754 retval = country_data_table[country_id].eit_update_time;
1770 AllocLcnFunc func_ptr;
1775 country_id = GetCountryId(country_code);
1776 if (country_id < NUM_COUNTRIES)
1778 func_ptr = country_data_table[country_id].terr_lcn_func;
1801 country_id = GetCountryId(country_code);
1802 if (country_id < NUM_COUNTRIES)
1804 country_data_table[country_id].terr_lcn_func = func_ptr;
1818 AllocLcnFunc func_ptr;
1823 country_id = GetCountryId(country_code);
1824 if (country_id < NUM_COUNTRIES)
1826 func_ptr = country_data_table[country_id].cab_lcn_func;
1849 country_id = GetCountryId(country_code);
1850 if (country_id < NUM_COUNTRIES)
1852 country_data_table[country_id].cab_lcn_func = func_ptr;
1866 AllocLcnFunc func_ptr;
1871 country_id = GetCountryId(country_code);
1872 if (country_id < NUM_COUNTRIES)
1874 func_ptr = country_data_table[country_id].sat_lcn_func;
1897 country_id = GetCountryId(country_code);
1898 if (country_id < NUM_COUNTRIES)
1900 country_data_table[country_id].sat_lcn_func = func_ptr;
1914 DBTidyFunc func_ptr;
1919 country_id = GetCountryId(country_code);
1920 if (country_id < NUM_COUNTRIES)
1922 func_ptr = country_data_table[country_id].terr_db_tidy_func;
1942 DBTidyFunc func_ptr;
1947 country_id = GetCountryId(country_code);
1948 if (country_id < NUM_COUNTRIES)
1950 func_ptr = country_data_table[country_id].cab_db_tidy_func;
1970 DBTidyFunc func_ptr;
1975 country_id = GetCountryId(country_code);
1976 if (country_id < NUM_COUNTRIES)
1978 func_ptr = country_data_table[country_id].sat_db_tidy_func;
1999 U8BIT retval = ACFG_INVALID_LANG;
2004 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
2005 if (country_id < NUM_COUNTRIES)
2007 retval = country_data_table[country_id].default_secondary_language;
2015 static U8BIT GetCountryId(U32BIT country_code)
2019 FUNCTION_START(GetCountryId);
2021 for (
id = 0;
id < NUM_COUNTRIES;
id++)
2023 if (country_data_table[
id].country_code == country_code)
2029 FUNCTION_FINISH(GetCountryId);
2048 if ((lang_id != ACFG_INVALID_DB_LANG) || (lang_code == ADB_LANG_CODE_UNDEF))
2050 und_lang_code = lang_code;
2065 return (und_lang_code);
2075 #ifdef COMMON_INTERFACE 2076 ci_hcl_module = module;
2078 USE_UNWANTED_PARAM(module);
2093 E_ACFG_DYNAMIC_SI_UPDATE_TYPE update_type)
2104 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
2105 if (country_id < NUM_COUNTRIES)
2107 switch (signal_type)
2110 si_updates = country_data_table[country_id].terr_dynamic_si_updates;
2113 si_updates = country_data_table[country_id].cab_dynamic_si_updates;
2116 si_updates = country_data_table[country_id].sat_dynamic_si_updates;
2123 if (si_updates != NULL)
2125 for (index = 0; si_updates[index].update_types != ACFG_DYNAMIC_SI_UPDATE_NONE; index++)
2127 if ((si_updates[index].original_network_id == ADB_INVALID_DVB_ID) ||
2128 (si_updates[index].original_network_id == onet_id))
2131 if ((si_updates[index].update_types & update_type) != 0)
2167 country_id = GetCountryId(
APP_NvmRead(COUNTRY_CODE_NVM));
2168 if (country_id < NUM_COUNTRIES)
2170 switch (signal_type)
2173 si_updates = &country_data_table[country_id].terr_dynamic_si_updates;
2176 si_updates = &country_data_table[country_id].cab_dynamic_si_updates;
2179 si_updates = &country_data_table[country_id].sat_dynamic_si_updates;
2186 if (si_updates != NULL)
2189 if (*si_updates != NULL)
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...
U16BIT ACFG_GetMinSatelliteScanFreq(U32BIT country_code)
Returns the minimum frequency to be used when performing a satellite based frequency scan in the give...
U32BIT ACFG_GetCountry(void)
Returns the country code the DVB is configured for.
U16BIT ACFG_GetLastUnallocatedLcn(U32BIT country_code, E_STB_DP_SIGNAL_TYPE tuner_type)
Returns the last LCN that should be used when assigning LCNs to services that don't appear in an LCN ...
BOOLEAN ACFG_SetCountryConfig(U32BIT country_code, ACFG_COUNTRY_CONFIG *config)
Sets the country configuration settings that will be used for given country. This could be used to ov...
Application configuration.
Application database control.
Header file - macros and function prototypes for public use.
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...
BOOLEAN ACFG_GetBackgroundServiceSearch(void)
Returns whether the background service search is enabled or not.
U8BIT ACFG_GetEitSearchesPerDay(void)
Returns the number of EIT searches that should be performed per day when the box is in standby...
Header file for NVM data handling functions.
void * STB_AppGetMemory(U32BIT bytes)
Attempts to allocate memory from the application heap.
void ACFG_SetSatelliteLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr)
Overrides an existing DVB-S/S2 LCN allocation function for the given country.
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...
void STB_SISetCountryPrivateDataSpecifier(U32BIT code)
Sets the country specific private data specifier code that will be used when parsing SI tables...
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...
BOOLEAN ACFG_GetDynamicSIUpdate(E_STB_DP_SIGNAL_TYPE signal_type, U16BIT onet_id, E_ACFG_DYNAMIC_SI_UPDATE_TYPE update_type)
Use to check whether a dynamic SI update type is enabled for the currently configured country and giv...
U8BIT * ACFG_GetEventContentTypes(U32BIT country_code)
Returns the event content types for the given country. This defines how the content type value broadc...
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.
U8BIT ACFG_GetSecondaryAudioLangId(void)
Returns the secondary audio language ID.
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.
void STB_SIClearUserDefinedDescriptorFunctions(void)
Clear all entries in the user defined SI descriptor table.
U32BIT APP_NvmRead(E_NVM_ITEMS nvm_item)
Returns the current value for the given DVB setting.
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...
void ACFG_ReleaseDbLangList(U8BIT **str_array, U8BIT num_langs)
Frees the language array previously acquired using ACFG_GetDbLangList.
void ACFG_GetBackgroundSearchTime(U16BIT *start_time, U16BIT *end_time)
Gets the background start and end search times.
void ACFG_SetHostCountryLanguageModuleId(U32BIT module)
Sets the host and country module for CI stack. Value zero for disable.
Application timer functions and defines.
void APP_NvmSave(E_NVM_ITEMS nvm_item, U32BIT new_value, BOOLEAN write_to_flash_now)
Sets the current value for the given DVB setting.
BOOLEAN ACFG_SetCountry(U32BIT country_code)
Sets the current country and sets default values for region and language.
U8BIT ACFG_GetNumRegions(U32BIT country_code)
Returns the number of regions in the given country.
BOOLEAN ACFG_SetDbLanguages(U32BIT country_code, ACFG_LANGUAGE_IDS *languages, U8BIT num_languages)
Sets the languages that can be used for setting the default primary and secondary audio...
U32BIT ACFG_GetCountryCode(U8BIT country_id)
Returns the country code for the given country index.
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...
void ACFG_SetPrimaryTextLangId(U8BIT lang_id)
Sets the primary language id to be used for teletext/subtitles.
void ACFG_SetSecondaryTextLangId(U8BIT lang_id)
Sets the secondary language id to be used for teletext/subtitles.
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. ...
BOOLEAN ACFG_GetBackgroundSSUSearch(void)
Returns whether the background SSU search is enabled or not.
void ACFG_SetBackgroundServiceSearch(BOOLEAN enabled)
Enables or disables the background service search when in standby.
void STB_SISetUserDefinedDescriptorFunction(U8BIT dtag, STB_SI_USER_DEF_DESCRIP_FUNCTION func)
Sets the function allocated to the user defined descriptor.
U8BIT ACFG_ConvertLangCodeToId(U32BIT lang_code)
Returns the language id for the given language code.
U8BIT ACFG_GetPrimaryTextLangId(void)
Returns the primary DVB subtitle/teletext language ID.
U32BIT ACFG_GetUndefinedLanguageBehaviour(void)
Gets the language code set by ACFG_SetUndefinedLanguageBehaviour, or 'und' if that function has not b...
U8BIT ACFG_GetNumCountries(void)
Returns the number of country configurations included in the DVB stack.
void ACFG_SetBackgroundSSUSearch(BOOLEAN enabled)
Enables or disables the background SSU search when in standby.
Debug functions header file.
Header file - Function prototypes for linked lists.
Header file - macros and function prototypes for public use.
BOOLEAN ACFG_GetRegionCode(U32BIT country_code, U8BIT region_id, U8BIT *code_ptr)
Returns the region code that identifies the given region.
BOOLEAN ACFG_GetAerialTuningScreenReqd(U32BIT country_code)
Returns whether an aerial tuning screen should be presented by the interface before performing a DVB-...
void ADB_SetTextLang(U32BIT country_code, U8BIT lang_id)
Sets the primary subtitle and teletext language to be used.
Application configuration data.
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...
BOOLEAN ACFG_IsNordigService(E_STB_DP_SIGNAL_TYPE tuner_type)
Returns whether the broadcast SI data for the given tuner type is to be treated as Nordig compliant...
U16BIT * ACFG_GetSatelliteScanSymbolRates(U32BIT country_code)
Returns a fixed array of symbol rates to be used when performing a satellite based frequency scan in ...
U16BIT ACFG_GetFirstUnallocatedLcn(U32BIT country_code, E_STB_DP_SIGNAL_TYPE tuner_type)
Returns the first LCN that should be used when assigning LCNs to services that don't appear in an LCN...
BOOLEAN ACFG_GetSatelliteScanDvbS2(U32BIT country_code)
Returns whether DVB-S2 should be included when performing a satellite based frequency scan in the giv...
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.
void ADB_SetAudioLang(U32BIT country_code, U8BIT lang_id)
Sets the primary audio language to be used.
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...
U8BIT ACFG_GetSecondaryTextLangId(void)
Returns the secondary DVB subtitle/teletext language ID.
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...
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.
BOOLEAN ACFG_GetAerialPowerOptionReqd(U32BIT country_code)
Returns whether the aerial power option is required for DVB-T/T2 for the given country.
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.
System Wide Global Technical Data Type Definitions.
void ACFG_SetCableLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr)
Overrides an existing DVB-C LCN allocation function for the given country.
void STB_AppFreeMemory(void *addr)
Releases previously allocated application heap memory.
void ADB_SetSecondaryAudioLang(U32BIT country_code, U8BIT lang_id)
Sets the secondary audio language to be used. This will be selected if the primary audio language isn...
void ACFG_SetSecondaryAudioLangId(U8BIT lang_id)
Sets the secondary language id to be used for audio.
BOOLEAN ACFG_IsNordigCountry(void)
Returns whether the current country requires Nordig compliance for SI.
void STB_SISetNordigPrivateDataSpecifierMode(BOOLEAN mode)
Enables or disables use of the Nordig private data specifier when parsing SI tables.
void ACFG_SetTerrestrialLcnFunction(U32BIT country_code, AllocLcnFunc func_ptr)
Overrides an existing DVB-T/T2 LCN allocation function for the given country.
void ACFG_ReleaseCountryList(U8BIT **str_array, U8BIT num_countries)
Frees a country list previously acquired using ACFG_GetCountryList.
U32BIT ACFG_GetPrivateDataSpecifier(U32BIT country_code)
Returns the private data specifier value for the given country.
void ADB_SetSecondaryTextLang(U32BIT country_code, U8BIT lang_id)
Sets the secondary subtitle and teletext language to be used. This will be used if the primary langua...
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...
Header file - Function prototypes for heap memory.
U8BIT ACFG_GetDefaultSecondaryLangId(void)
Returns the default secondary language for audio and subtitles as defined for the selected country...
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...
U8BIT ACFG_GetNumDbLanguages(U32BIT country_code)
Returns the number of languages defined for the given country that can be used for audio and subtitle...
BOOLEAN ACFG_SetDynamicSIUpdates(E_STB_DP_SIGNAL_TYPE signal_type, ACFG_DYNAMIC_SI_UPDATES *dynamic_updates, U8BIT num_updates)
Sets the dynamic SI updates for the given tuner type of the currently configured country.
void APP_NvmSaveAllNow(void)
Saves DVB values immediately.
BOOLEAN ACFG_GetDefaultAerialPower(U32BIT country_code)
Returns the default aerial power option setting for DVB-T/T2 for the given country.
U32BIT ACFG_ConvertLangIdToCode(U8BIT lang)
Returns the language code for the given language id.
U8BIT ACFG_GetCountryIndex(U32BIT country_code)
Returns the index in the list of countries known by the DVB, of the given country.
BOOLEAN ACFG_GetCountryConfig(U32BIT country_code, ACFG_COUNTRY_CONFIG *config)
Copies the country configuration for the given country into the provided structure. None of the included arrays should be freed.
U8BIT ACFG_GetEitUpdateTime(void)
Returns the number of minutes after which all the events should have been received during an EIT sear...
U8BIT ACFG_GetPrimaryAudioLangId(void)
Returns the primary audio language ID.
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.
U16BIT ACFG_GetMaxSatelliteScanFreq(U32BIT country_code)
Returns the maximum frequency to be used when performing a satellite based frequency scan in the give...
void ACFG_ReleaseRegionList(U8BIT **str_array, U8BIT num_regions)
Frees the region array previously acquired using ACFG_GetRegionList.
Application database access functions.
U16BIT ACFG_GetSatelliteScanFreqInc(U32BIT country_code)
Returns the increment frequency to be used when performing a satellite based frequency scan in the gi...
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...
Header file - macros and function prototypes for public use.
U8BIT ACFG_GetRegionId(void)
Returns the internal ID of the region the DVB is configured for.
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...