Exemple #1
0
// 0 not save, 1 save the parameter
static void win_qs_update_param(BOOL save)
{
	UINT8 dot_pos;
	UINT32 freq, symbol, constellation, areacode;

	//freq
	wincom_mbs_to_i_with_dot(display_strs[20], &freq, &dot_pos);
	// SYMBOL
	symbol = wincom_mbs_to_i(display_strs[21]);
	// scan mode
	constellation = QAM16 + OSD_GetMultiselSel(&txt_mf_item_value3);

	#if(defined(MIS_AD) || defined(MIS_AD_NEW))
	areacode = wincom_mbs_to_i(display_strs[22]);
	#endif
	//change channel
	//UIChChgNimcc(freq, symbol, constellation);

	if (1 == save)
	{
		i_qs_freq = freq;
		i_qs_symbol = symbol;
		i_qs_mode = constellation;
	#if(defined(MIS_AD) || defined(MIS_AD_NEW))
		i_qs_areacode = areacode;
	#endif
	}
}
Exemple #2
0
static INT32 check_freq_value(UINT16 *str)
{
	INT32 ret = 0;
	UINT32 val;
	UINT8 dot_pos;

	/* FREQ */
	wincom_mbs_to_i_with_dot(str, &val, &dot_pos);
	if (val < 4825 || val > 85875)
		ret =  - 1;

	return ret;
}
Exemple #3
0
INT32 win_otaset_get_FreqSymbPid_display(void)
{
	EDIT_FIELD* edf;
	MULTISEL*  msel;
	UINT32 val;
	INT32 ret = 0;
	UINT8	dot_pos;
    UINT32 freq, symbol, constellation;
    
	/* FREQ */
	edf = &wota_num2;
    wincom_mbs_to_i_with_dot(otaset_display_strs[0], &freq, &dot_pos);
	//OSD_GetEditFieldIntValue(edf, &val);
	if(ota_freq != freq)
	{
		ota_freq = freq;
		ret = -1;
	}
	
	/* SYMBOL */
	edf = & wota_num3;
    symbol = wincom_mbs_to_i(otaset_display_strs[1]);
	//OSD_GetEditFieldIntValue(edf, &val);
	if(ota_symb != symbol)
	{
		ota_symb = symbol;
		ret = -1;
	}

    /* QAM */
	msel = &wota_num4;
	constellation = OSD_GetMultiselSel(msel)+QAM16;
	if(ota_modulation!= constellation)
	{
		ota_modulation = constellation;
		ret = -1;
	}
		
	
    /* PID */
	edf = &wota_num5;
	OSD_GetEditFieldIntValue(edf, &val);
	ota_pid = val;
    m_ota_cfg.pid = ota_pid;

	return ret;
Exemple #4
0
void win_otaset_load_FreqSymbPid_display(void)
{
	EDIT_FIELD* edf;
	MULTISEL*  msel;
    UINT16 freq_def, symb_def;
    UINT8 dot_pos;
    int sel;

	/* FREQ */
	edf = &wota_num2;
	wincom_mbs_to_i_with_dot(otaset_display_strs[0], &freq_def, &dot_pos);
	if(freq_def==0)
		wincom_i_to_mbs_with_dot(otaset_display_strs[0],
	                         ota_freq, DVBC_OTA_EDIT_LEN - 1/*without dot*/, 0x02/*xxx.xx*/);
	OSD_SetEditFieldSuffix(edf, STRING_ANSI, (UINT32)" MHz");
	OSD_SetEditFieldStyle(edf,NORMAL_EDIT_MODE | SELECT_STATUS);
	//OSD_SetEditFieldContent(edf, STRING_NUMBER, (UINT32)ota_freq);

	/* SYMBOL */
	edf = & wota_num3;
	OSD_SetEditFieldSuffix(edf, STRING_ANSI, (UINT32)" KBps");
	wincom_i_to_mbs(otaset_display_strs[1],
	                ota_symb, DVBC_OTA_EDIT_LEN - 1);
	OSD_SetEditFieldStyle(edf,NORMAL_EDIT_MODE | SELECT_STATUS);
	//OSD_SetEditFieldContent(edf, STRING_NUMBER, (UINT32)ota_symb);

    /* QAM */
	msel = &wota_num4;
    sel = ota_modulation - QAM16;
    sel = sel > 0 ? sel : 0;
    OSD_SetMultiselSel(msel, sel);
	
    /* PID */
	edf = &wota_num5;
	OSD_SetEditFieldContent(edf, STRING_NUMBER, (UINT32)ota_pid);