Ejemplo n.º 1
0
static void dvbc_quickscan_set_def_val(void)
{
	INT8 rule[20];
	UINT32 freq, symbol, constellation;
	P_NODE p_node;
	T_NODE t_node;
	UINT32 prog_num;
	UINT16 cur_channel;

	/* FREQ */
	wincom_i_to_mbs_with_dot(display_strs[20],
	                         i_qs_freq, DVBC_QUICKSCAN_EDIT_LEN - 1/*without dot*/, 0x02/*xxx.xx*/);
	ComAscStr2Uni("MHz", display_strs[30]);
	/* SYMBOL */
	wincom_i_to_mbs(display_strs[21],
	                i_qs_symbol, DVBC_QUICKSCAN_EDIT_LEN - 1);
	ComAscStr2Uni("KBaud", display_strs[31]);

	OSD_SetMultiselSel(&txt_mf_item_value3, i_qs_mode - QAM16);
	#if(defined(MIS_AD) || defined(MIS_AD_NEW))
	wincom_i_to_mbs(display_strs[22],
	                i_qs_areacode, 2);
	#endif
}
Ejemplo n.º 2
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);