|
@@ -314,28 +314,28 @@ namespace RF_TRIO_PLL_ZIG
|
314
|
314
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_ATT_3_5G_COM3, ret.ToString());
|
315
|
315
|
|
316
|
316
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_H] << 8;
|
317
|
|
- temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L]) / 10);
|
318
|
|
- this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_DL, temp_val.ToString());
|
|
317
|
+ ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_DL_L]) / 10);
|
|
318
|
+ this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_DL, ret.ToString());
|
319
|
319
|
|
320
|
320
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_H] << 8;
|
321
|
|
- temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L]) / 10);
|
322
|
|
- this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_UL, temp_val.ToString());
|
|
321
|
+ ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_1_8G_UL_L]) / 10);
|
|
322
|
+ this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_1_8G_UL, ret.ToString());
|
323
|
323
|
|
324
|
324
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_H] << 8;
|
325
|
|
- temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L]) / 10);
|
326
|
|
- this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_DL, temp_val.ToString());
|
|
325
|
+ ret = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_DL_L]) / 10);
|
|
326
|
+ this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_DL, ret.ToString());
|
327
|
327
|
|
328
|
328
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_H] << 8;
|
329
|
|
- temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L]) / 10);
|
330
|
|
- this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_UL, temp_val.ToString());
|
|
329
|
+ ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_2_1G_UL_L]) / 10);
|
|
330
|
+ this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_2_1G_UL, ret.ToString());
|
331
|
331
|
|
332
|
332
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_H] << 8;
|
333
|
|
- temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L]) / 10);
|
334
|
|
- this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_DL, temp_val.ToString());
|
|
333
|
+ ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_DL_L]) / 10);
|
|
334
|
+ this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_DL, ret.ToString());
|
335
|
335
|
|
336
|
336
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_H] << 8;
|
337
|
|
- temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L]) / 10);
|
338
|
|
- this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_UL, temp_val.ToString());
|
|
337
|
+ ret = ((double)(temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L]) / 10);
|
|
338
|
+ this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_UL, ret.ToString());
|
339
|
339
|
/***********************DAC A Sector**********************************/
|
340
|
340
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_H] << 8;
|
341
|
341
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_L]) );
|
|
@@ -774,10 +774,29 @@ namespace RF_TRIO_PLL_ZIG
|
774
|
774
|
MessageBoxDefaultButton.Button1,
|
775
|
775
|
MessageBoxOptions.DefaultDesktopOnly);
|
776
|
776
|
}
|
777
|
|
-
|
778
|
|
- private void comboBox_Port_MouseDown(object sender, MouseEventArgs e)
|
|
777
|
+ public void Message_Box_Error_Open(byte[] data)
|
779
|
778
|
{
|
780
|
|
- serial.SetPortNameValues(comboBox_Port);
|
|
779
|
+ byte type = data[(byte)Bluecell_TypeIndex_t.BLUE_CRCINDEX + 1];
|
|
780
|
+ string str = "";
|
|
781
|
+ if (type == 0)
|
|
782
|
+ str = "PLL 1.8 DL Error";
|
|
783
|
+ else if (type == 1)
|
|
784
|
+ str = "PLL 1.8 UL Error";
|
|
785
|
+ else if (type == 2)
|
|
786
|
+ str = "PLL 2.1 DL Error";
|
|
787
|
+ else if (type == 3)
|
|
788
|
+ str = "PLL 2.1 UL Error";
|
|
789
|
+ else
|
|
790
|
+ str = "Error!!!";
|
|
791
|
+ //blue_MessageBox blue_MessageBox = new Blue_MessageBox();
|
|
792
|
+ //MessageBox.Show("Setting OK");
|
|
793
|
+ if (setcheck_checkBox.Checked == true)
|
|
794
|
+ MessageBox.Show(str,
|
|
795
|
+ "Setting",
|
|
796
|
+ MessageBoxButtons.OK,
|
|
797
|
+ MessageBoxIcon.Error,
|
|
798
|
+ MessageBoxDefaultButton.Button1,
|
|
799
|
+ MessageBoxOptions.DefaultDesktopOnly);
|
781
|
800
|
}
|
782
|
801
|
}
|
783
|
802
|
}
|