// 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 } }
static INT32 check_symbol_value(UINT16 *str) { INT32 ret = 0; UINT32 val; /* SYMBOL */ val = wincom_mbs_to_i(str); if (val < 1000 || val > 7000) ret = - 1; return ret; }
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;