Beispiel #1
0
        public void Send_CM_CMDs_As_Original_Values()
        {
            DP213_CMDS_Write_Read_Update_Variables cmds = DP213_CMDS_Write_Read_Update_Variables.getInstance();

            for (int Set_index = 0; Set_index < DP213_Static.Max_Set_Amount; Set_index++)
            {
                Gamma_Set Set = DP213_Static.Convert_to_Gamma_Set_From_int(Set_index);
                if (Is_GammaSet_ELVSS_Changed[Set_index])
                {
                    cmds.Send_ELVSS_CMD(Set);
                }
                if (Is_GammaSet_Cold_ELVSS_Changed[Set_index])
                {
                    cmds.Send_Cold_ELVSS_CMD(Set);
                }
                if (Is_GammaSet_Vinit2_Changed[Set_index])
                {
                    cmds.Send_Vinit2_CMD(Set);
                }
                if (Is_GammaSet_Cold_Vinit2_Changed[Set_index])
                {
                    cmds.Send_Cold_Vinit2_CMD(Set);
                }
            }
        }
Beispiel #2
0
        private Color Get_Color(Gamma_Set Set)
        {
            switch (Set)
            {
            case Gamma_Set.Set1:
                return(Color.FromArgb(155, 50, 50));

            case Gamma_Set.Set2:
                return(Color.FromArgb(155, 100, 50));

            case Gamma_Set.Set3:
                return(Color.FromArgb(75, 75, 155));

            case Gamma_Set.Set4:
                return(Color.FromArgb(50, 100, 155));

            case Gamma_Set.Set5:
                return(Color.FromArgb(100, 155, 100));

            case Gamma_Set.Set6:
                return(Color.FromArgb(50, 155, 50));

            default:
                return(Color.Black);
            }
        }
Beispiel #3
0
        static public int Get_Set_Vreg1_Start_Offset(Gamma_Set Set)
        {
            switch (Set)
            {
            case Gamma_Set.Set1:
                return(34);

            case Gamma_Set.Set2:
                return(52);

            case Gamma_Set.Set3:
                return(70);

            case Gamma_Set.Set4:
                return(88);

            case Gamma_Set.Set5:
                return(106);

            case Gamma_Set.Set6:
                return(124);

            default:
                throw new Exception("Invalid GammaSet");
            }
        }
Beispiel #4
0
        public void Update_Calculated_Vdata(DP173_or_Elgin model, Gamma_Set Set)
        {
            DP173_Model_Option_Form DP173 = (DP173_Model_Option_Form)Application.OpenForms["DP173_Model_Option_Form"];

            RGB_Double[,] Temp_Calculated_Vdata = Get_Calculated_Vdata(Set);
            double[] Temp_Calculated_Vreg1_Voltage = Get_Calculated_Vreg1_Voltage(Set);

            //-------------Added on 200316-----------
            if (model.band < 11)
            {
                //update Vreg1 , R/G/B AM2 Voltage
                if (model.gray == 0)
                {
                    int Dec_Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Set);//Current_Band Vreg1
                    Temp_Calculated_Vreg1_Voltage[model.band] = Imported_my_cpp_dll.DP173_Get_Vreg1_Voltage(Dec_Vreg1, DP173.Voltage_VREG1_REF2047, DP173.Voltage_VREG1_REF1635, DP173.Voltage_VREG1_REF1227, DP173.Voltage_VREG1_REF815, DP173.Voltage_VREG1_REF407, DP173.Voltage_VREG1_REF63, DP173.Voltage_VREG1_REF1);
                    Temp_Calculated_Vdata[model.band, model.gray].double_R = Imported_my_cpp_dll.DP173_Get_AM2_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.Gamma.int_R);
                    Temp_Calculated_Vdata[model.band, model.gray].double_G = Imported_my_cpp_dll.DP173_Get_AM2_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.Gamma.int_G);
                    Temp_Calculated_Vdata[model.band, model.gray].double_B = Imported_my_cpp_dll.DP173_Get_AM2_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.Gamma.int_B);
                }
                //update R/G/B Normal Voltage
                else
                {
                    Temp_Calculated_Vdata[model.band, model.gray].double_R = Imported_my_cpp_dll.DP173_Get_GR_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.R_AM1_Dec, Temp_Calculated_Vdata[model.band, (model.gray - 1)].double_R, model.Gamma.int_R, model.gray);
                    Temp_Calculated_Vdata[model.band, model.gray].double_G = Imported_my_cpp_dll.DP173_Get_GR_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.G_AM1_Dec, Temp_Calculated_Vdata[model.band, (model.gray - 1)].double_G, model.Gamma.int_G, model.gray);
                    Temp_Calculated_Vdata[model.band, model.gray].double_B = Imported_my_cpp_dll.DP173_Get_GR_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.B_AM1_Dec, Temp_Calculated_Vdata[model.band, (model.gray - 1)].double_B, model.Gamma.int_B, model.gray);
                }
            }
            //---------------------------------------
        }
Beispiel #5
0
 private TextBox Get_Current_Before_Adjust_textbox(Gamma_Set Set)
 {
     if (Set == Gamma_Set.Set1)
     {
         return(textBox_Mipi_Script_Set1);
     }
     else if (Set == Gamma_Set.Set2)
     {
         return(textBox_Mipi_Script_Set2);
     }
     else if (Set == Gamma_Set.Set3)
     {
         return(textBox_Mipi_Script_Set3);
     }
     else if (Set == Gamma_Set.Set4)
     {
         return(textBox_Mipi_Script_Set4);
     }
     else if (Set == Gamma_Set.Set5)
     {
         return(textBox_Mipi_Script_Set5);
     }
     else if (Set == Gamma_Set.Set6)
     {
         return(textBox_Mipi_Script_Set6);
     }
     else
     {
         return(null);
     }
 }
Beispiel #6
0
        private RGB_Double[,] Get_Calculated_Vdata(Gamma_Set Set)
        {
            switch (Set)
            {
            case Gamma_Set.Set1:
                return(Calculated_Vdata_Set1);

            case Gamma_Set.Set2:
                return(Calculated_Vdata_Set2);

            case Gamma_Set.Set3:
                return(Calculated_Vdata_Set3);

            case Gamma_Set.Set4:
                return(Calculated_Vdata_Set4);

            case Gamma_Set.Set5:
                return(Calculated_Vdata_Set5);

            case Gamma_Set.Set6:
                return(Calculated_Vdata_Set6);

            default:
                return(Calculated_Vdata);
            }
        }
Beispiel #7
0
        public RGB AM1_Convert_Voltgae_to_Dec(Gamma_Set Set, int band, RGB_Double AM1_Voltage)
        {
            RGB AM1_Dec = new RGB();

            AM1_Dec.int_R = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Dec(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), AM1_Voltage.double_R);
            AM1_Dec.int_G = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Dec(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), AM1_Voltage.double_G);
            AM1_Dec.int_B = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Dec(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), AM1_Voltage.double_B);

            if (AM1_Dec.int_R > DP213_Static.AM1_AM0_Max)
            {
                AM1_Dec.int_R = DP213_Static.AM1_AM0_Max;
            }
            if (AM1_Dec.int_G > DP213_Static.AM1_AM0_Max)
            {
                AM1_Dec.int_G = DP213_Static.AM1_AM0_Max;
            }
            if (AM1_Dec.int_B > DP213_Static.AM1_AM0_Max)
            {
                AM1_Dec.int_B = DP213_Static.AM1_AM0_Max;
            }
            if (AM1_Dec.int_R < 0)
            {
                AM1_Dec.int_R = 0;
            }
            if (AM1_Dec.int_G < 0)
            {
                AM1_Dec.int_G = 0;
            }
            if (AM1_Dec.int_B < 0)
            {
                AM1_Dec.int_B = 0;
            }

            return(AM1_Dec);
        }
Beispiel #8
0
        private double[] Get_Calculated_Vreg1_Voltage(Gamma_Set Set)
        {
            switch (Set)
            {
            case Gamma_Set.Set1:
                return(Calculated_Vreg1_Voltage_Set1);

            case Gamma_Set.Set2:
                return(Calculated_Vreg1_Voltage_Set2);

            case Gamma_Set.Set3:
                return(Calculated_Vreg1_Voltage_Set3);

            case Gamma_Set.Set4:
                return(Calculated_Vreg1_Voltage_Set4);

            case Gamma_Set.Set5:
                return(Calculated_Vreg1_Voltage_Set5);

            case Gamma_Set.Set6:
                return(Calculated_Vreg1_Voltage_Set6);

            default:
                return(Calculated_Vreg1_Voltage);
            }
        }
Beispiel #9
0
        public string[] Get_Set_Hex_Normal_Vreg1(Gamma_Set Set)
        {
            int[]    Band_Dec_Vreg1  = new int[DP213_Static.Max_HBM_and_Normal_Band_Amount];
            string[] Hex_Vreg1_Array = new string[DP213_Static.One_Normal_GammaSet_Vreg1_Parameters_Amount];

            for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount; band++)
            {
                Band_Dec_Vreg1[band] = Dec_Normal_Vreg1[Convert.ToInt16(Set), band];
            }

            Hex_Vreg1_Array[0] = (((Band_Dec_Vreg1[0] & 0xF00) >> 4) + ((Band_Dec_Vreg1[1] & 0xF00) >> 8)).ToString("X2");
            Hex_Vreg1_Array[1] = (((Band_Dec_Vreg1[2] & 0xF00) >> 4) + ((Band_Dec_Vreg1[3] & 0xF00) >> 8)).ToString("X2");
            Hex_Vreg1_Array[2] = (((Band_Dec_Vreg1[4] & 0xF00) >> 4) + ((Band_Dec_Vreg1[5] & 0xF00) >> 8)).ToString("X2");
            Hex_Vreg1_Array[3] = (((Band_Dec_Vreg1[6] & 0xF00) >> 4) + ((Band_Dec_Vreg1[7] & 0xF00) >> 8)).ToString("X2");
            Hex_Vreg1_Array[4] = (((Band_Dec_Vreg1[8] & 0xF00) >> 4) + ((Band_Dec_Vreg1[9] & 0xF00) >> 8)).ToString("X2");
            Hex_Vreg1_Array[5] = (((Band_Dec_Vreg1[10] & 0xF00) >> 4) + ((Band_Dec_Vreg1[11] & 0xF00) >> 8)).ToString("X2");

            Hex_Vreg1_Array[6]  = (Band_Dec_Vreg1[0] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[7]  = (Band_Dec_Vreg1[1] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[8]  = (Band_Dec_Vreg1[2] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[9]  = (Band_Dec_Vreg1[3] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[10] = (Band_Dec_Vreg1[4] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[11] = (Band_Dec_Vreg1[5] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[12] = (Band_Dec_Vreg1[6] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[13] = (Band_Dec_Vreg1[7] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[14] = (Band_Dec_Vreg1[8] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[15] = (Band_Dec_Vreg1[9] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[16] = (Band_Dec_Vreg1[10] & 0xFF).ToString("X2");
            Hex_Vreg1_Array[17] = (Band_Dec_Vreg1[11] & 0xFF).ToString("X2");

            return(Hex_Vreg1_Array);
        }
Beispiel #10
0
 public Color GetGammaSetColor(Gamma_Set Set)
 {
     if (Set == Gamma_Set.Set1)
     {
         return(Color.Red);
     }
     if (Set == Gamma_Set.Set2)
     {
         return(Color.Green);
     }
     if (Set == Gamma_Set.Set3)
     {
         return(Color.Blue);
     }
     if (Set == Gamma_Set.Set4)
     {
         return(Color.DarkRed);
     }
     if (Set == Gamma_Set.Set5)
     {
         return(Color.DarkGreen);
     }
     if (Set == Gamma_Set.Set6)
     {
         return(Color.DarkBlue);
     }
     return(Color.Black);
 }
Beispiel #11
0
        protected bool Get_Initial_RVreg1B_Using_LUT_MCI(Gamma_Set Set, int band, OC_Mode Mode)
        {
            if ((band >= 1) && (band <= DP213_Static.Max_HBM_and_Normal_Band_Amount) && (vars.Target.double_Lv > Algorism_Lower_Skip_LV) && (vars.Target.double_Lv < Algorism_Upper_Skip_LV))
            {
                f1().GB_Status_AppendText_Nextline("Before) R/G/B/Vreg1 = " + vars.Gamma.int_R.ToString() + "/" + vars.Gamma.int_G.ToString().ToString() + "/" + vars.Gamma.int_B.ToString() + "/" + vars.Vreg1, Color.Blue);

                int        gray = 0;
                RGB_Double Gray = DP213_Main_OC_Flow.init_gray_lut.Get_LUT_RGB(band, gray, Mode);

                RGB_Double Gamma_Voltage = new RGB_Double();
                Gamma_Voltage.double_R = InterpolationFomulaFactory.GetPrevBand_Red_Volatge(Gray.double_R);
                Gamma_Voltage.double_G = InterpolationFomulaFactory.GetPrevBand_Green_Volatge(Gray.double_G);
                Gamma_Voltage.double_B = InterpolationFomulaFactory.GetPrevBand_Blue_Volatge(Gray.double_B);

                double Voltage_VREF0    = storage.Get_Voltage_VREF0();
                double Voltage_VREF4095 = storage.Get_Voltage_VREF4095();
                double Vreg1_voltage    = Voltage_VREF4095 + ((Gamma_Voltage.double_G - Voltage_VREF4095) * (900.0 / (storage.Get_All_band_gray_Gamma(Set, (band - 1), gray).int_G + 389.0))); //just use HBM_Gamma[0], because other normal band copy G255 R/G/B From HBM

                vars.Vreg1       = Imported_my_cpp_dll.DP213_Get_Vreg1_Dec(Voltage_VREF4095, Voltage_VREF0, Vreg1_voltage);
                vars.Gamma.int_R = Imported_my_cpp_dll.DP213_Get_AM2_Gamma_Dec(Voltage_VREF4095, Vreg1_voltage, Gamma_Voltage.double_R);
                vars.Gamma.int_B = Imported_my_cpp_dll.DP213_Get_AM2_Gamma_Dec(Voltage_VREF4095, Vreg1_voltage, Gamma_Voltage.double_B);

                f1().GB_Status_AppendText_Nextline("After C++) R/G/B/Vreg1 = " + vars.Gamma.int_R.ToString() + "/" + vars.Gamma.int_G.ToString().ToString() + "/" + vars.Gamma.int_B.ToString() + "/" + vars.Vreg1, Color.Red);
                init_algorithm_storage_cpp.Set_All_band_gray_Gamma(Set, band, gray, vars.Gamma);

                return(true);
            }
            else
            {
                f1().GB_Status_AppendText_Nextline("Skip)Get_Initial_RVreg1B_Using_LUT_MCI()", Color.DarkRed);
                return(false);
            }
        }
Beispiel #12
0
        public void SendGammaSetApplyCMD(Gamma_Set Set)
        {
            byte address = Convert.ToByte("76", 16);

            byte[] parameters = null;

            if (Set == Gamma_Set.Set1)
            {
                parameters = new byte[] { 0 }; api.WriteLine("Gamma1 is applied", GetGammaSetColor(Set));
            }
            else if (Set == Gamma_Set.Set2)
            {
                parameters = new byte[] { 1 }; api.WriteLine("Gamma2 is applied", GetGammaSetColor(Set));
            }
            else if (Set == Gamma_Set.Set3)
            {
                parameters = new byte[] { 2 }; api.WriteLine("Gamma3 is applied", GetGammaSetColor(Set));
            }
            else if (Set == Gamma_Set.Set4)
            {
                parameters = new byte[] { 3 }; api.WriteLine("Gamma4 is applied", GetGammaSetColor(Set));
            }
            else if (Set == Gamma_Set.Set5)
            {
                parameters = new byte[] { 4 }; api.WriteLine("Gamma5 is applied", GetGammaSetColor(Set));
            }
            else if (Set == Gamma_Set.Set6)
            {
                parameters = new byte[] { 5 }; api.WriteLine("Gamma6 is applied", GetGammaSetColor(Set));
            }
            api.WriteData(address, parameters, channel_num);
        }
Beispiel #13
0
 private void Set_To_Be_Adjusted_textbox(Gamma_Set Set, TextBox To_Be_Adjust_textbox)
 {
     if (Set == Gamma_Set.Set1)
     {
         dp213_form().textBox_Show_Compared_Mipi_Data_Set1.Text = To_Be_Adjust_textbox.Text;
     }
     else if (Set == Gamma_Set.Set2)
     {
         dp213_form().textBox_Show_Compared_Mipi_Data_Set2.Text = To_Be_Adjust_textbox.Text;
     }
     else if (Set == Gamma_Set.Set3)
     {
         dp213_form().textBox_Show_Compared_Mipi_Data_Set3.Text = To_Be_Adjust_textbox.Text;
     }
     else if (Set == Gamma_Set.Set4)
     {
         dp213_form().textBox_Show_Compared_Mipi_Data_Set4.Text = To_Be_Adjust_textbox.Text;
     }
     else if (Set == Gamma_Set.Set5)
     {
         dp213_form().textBox_Show_Compared_Mipi_Data_Set5.Text = To_Be_Adjust_textbox.Text;
     }
     else if (Set == Gamma_Set.Set6)
     {
         dp213_form().textBox_Show_Compared_Mipi_Data_Set6.Text = To_Be_Adjust_textbox.Text;
     }
 }
Beispiel #14
0
        private void Update_HBM_Normal_Gamma_Voltage(Gamma_Set Set, int band, int gray, RGB New_Gamma)
        {
            if (gray == 0)
            {
                Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, gray].double_R = Imported_my_cpp_dll.DP213_Get_AM2_Gamma_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), New_Gamma.int_R);
                Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, gray].double_G = Imported_my_cpp_dll.DP213_Get_AM2_Gamma_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), New_Gamma.int_G);
                Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, gray].double_B = Imported_my_cpp_dll.DP213_Get_AM2_Gamma_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), New_Gamma.int_B);
            }
            else
            {
                RGB_Double Prev_GR_Gamma_Voltage = new RGB_Double();
                if (gray == 1 || gray == 2 || gray == 3 || gray == 5 || gray == 7 || gray == 9 || gray == 10)
                {
                    Prev_GR_Gamma_Voltage.double_R = Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, (gray - 1)].double_R;
                    Prev_GR_Gamma_Voltage.double_G = Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, (gray - 1)].double_G;
                    Prev_GR_Gamma_Voltage.double_B = Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, (gray - 1)].double_B;
                }

                else if (gray == 4 || gray == 6 || gray == 8)
                {
                    Prev_GR_Gamma_Voltage.double_R = Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, (gray - 2)].double_R;
                    Prev_GR_Gamma_Voltage.double_G = Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, (gray - 2)].double_G;
                    Prev_GR_Gamma_Voltage.double_B = Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, (gray - 2)].double_B;
                }
                Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, gray].double_R = Imported_my_cpp_dll.DP213_Get_GR_Gamma_Voltage(Get_Band_Set_Voltage_AM1(Set, band).double_R, Prev_GR_Gamma_Voltage.double_R, New_Gamma.int_R, gray);
                Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, gray].double_G = Imported_my_cpp_dll.DP213_Get_GR_Gamma_Voltage(Get_Band_Set_Voltage_AM1(Set, band).double_G, Prev_GR_Gamma_Voltage.double_G, New_Gamma.int_G, gray);
                Voltage_All_band_gray_Gamma[Convert.ToInt16(Set), band, gray].double_B = Imported_my_cpp_dll.DP213_Get_GR_Gamma_Voltage(Get_Band_Set_Voltage_AM1(Set, band).double_B, Prev_GR_Gamma_Voltage.double_B, New_Gamma.int_B, gray);
            }
        }
Beispiel #15
0
        private void Set_Condition_Mipi_Script_Change(Gamma_Set Set)
        {
            TextBox Before_Adjust_Textbox  = Get_Current_Before_Adjust_textbox(Set);
            TextBox To_Be_Adjusted_Textbox = Get_To_Be_Adjusted_Mipi_Script(Before_Adjust_Textbox);

            Set_To_Be_Adjusted_textbox(Set, To_Be_Adjusted_Textbox);
        }
Beispiel #16
0
        private void Read_And_Update_Gridview(int band)
        {
            read_data.Read_and_Update_Set_Band_AM1_AM0_Gamma(band);

            Gamma_Set Mode1_GammaSet = dp213_form().Get_OC_Mode_Set(OC_Mode.Mode1);
            Gamma_Set Mode2_GammaSet = dp213_form().Get_OC_Mode_Set(OC_Mode.Mode2);
            Gamma_Set Mode3_GammaSet = dp213_form().Get_OC_Mode_Set(OC_Mode.Mode3);
            Gamma_Set Mode4_GammaSet = dp213_form().Get_OC_Mode_Set(OC_Mode.Mode4);
            Gamma_Set Mode5_GammaSet = dp213_form().Get_OC_Mode_Set(OC_Mode.Mode5);
            Gamma_Set Mode6_GammaSet = dp213_form().Get_OC_Mode_Set(OC_Mode.Mode6);

            for (int gray = 0; gray < DP213_Static.Max_Gray_Amount; gray++)
            {
                Set_Read_RGB(band, gray);
                Set_Read_RGB_Voltage(band, gray);
            }

            Set_Read_AM1(band);
            Set_Read_AM1_Voltages(band);

            Set_Read_AM0(band);
            Set_Read_AM0_Voltages(band);

            Set_Read_Vreg1(band);
            Set_Read_Vreg1_Voltage(band);

            dp213_mornitoring().Set_ProgressBar_Value(band + 1);
        }
Beispiel #17
0
 public DP213_Gamma(Gamma_Set Set, int band, RGB[] Band_Set_Gamma, RGB AM1, RGB AM0)
 {
     this.Set            = Set;
     this.band           = band;
     this.Band_Set_Gamma = Band_Set_Gamma;
     this.AM1            = AM1;
     this.AM0            = AM0;
 }
Beispiel #18
0
 public RGB_Double[] Get_Band_Set_Gamma_Voltages(Gamma_Set Set, int band)
 {
     RGB_Double[] Band_Set_Gamma_Voltage = new RGB_Double[DP213_Static.Max_Gray_Amount];
     for (int gray = 0; gray < DP213_Static.Max_Gray_Amount; gray++)
     {
         Band_Set_Gamma_Voltage[gray] = Get_Voltage_All_band_gray_Gamma(Set, band, gray);
     }
     return(Band_Set_Gamma_Voltage);
 }
Beispiel #19
0
 public void Set_All_band_gray_Gamma(Gamma_Set Set, int band, int gray, RGB New_Gamma)
 {
     All_band_gray_Gamma[Convert.ToInt16(Set), band, gray] = New_Gamma;
     //Band (HBM + Normal) : update value and voltage together
     if (band < DP213_Static.Max_HBM_and_Normal_Band_Amount)
     {
         Update_HBM_Normal_Gamma_Voltage(Set, band, gray, New_Gamma);
     }
 }
Beispiel #20
0
        public RGB_Double Get_Band_Set_Voltage_AM0(Gamma_Set Set, int band)
        {
            int Set_Index = Convert.ToInt16(Set);

            Voltage_AM0[Set_Index, band].double_R = Imported_my_cpp_dll.DP213_Get_AM0_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM0(Set, band).int_R);
            Voltage_AM0[Set_Index, band].double_G = Imported_my_cpp_dll.DP213_Get_AM0_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM0(Set, band).int_G);
            Voltage_AM0[Set_Index, band].double_B = Imported_my_cpp_dll.DP213_Get_AM0_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM0(Set, band).int_B);
            return(Voltage_AM0[Set_Index, band]);
        }
Beispiel #21
0
        public static DP213_CRC_Check getInstance(Gamma_Set OC_Mode1_GammaSet)
        {
            if (instance == null)
            {
                instance = new DP213_CRC_Check(OC_Mode1_GammaSet);
            }

            return(instance);
        }
Beispiel #22
0
 private DP213_CRC_Check(Gamma_Set OC_Mode1_GammaSet)
 {
     flashmemory = DP213_FlashMemory.getInstance();
     CM          = new CMOTP_OC_Vriables();
     Gamma       = new GammaOTP_OC_Variables(OC_Mode1_GammaSet);
     //LG = new LGOTP_OC_Variables();
     //ID = new IDOTP_OC_Variables();
     Initialize_Vriables();
 }
Beispiel #23
0
 public RGB[] Get_Band_Set_Gamma(Gamma_Set Set, int band)
 {
     RGB[] Band_Set_Gamma = new RGB[DP213_Static.Max_Gray_Amount];
     for (int gray = 0; gray < DP213_Static.Max_Gray_Amount; gray++)
     {
         Band_Set_Gamma[gray].Equal_Value(All_band_gray_Gamma[Convert.ToInt16(Set), band, gray]);
     }
     return(Band_Set_Gamma);
 }
Beispiel #24
0
 public int[] Get_Normal_Dec_Vreg1s(Gamma_Set Set)
 {
     int[] Band_Dec_Vreg1 = new int[DP213_Static.Max_HBM_and_Normal_Band_Amount];
     for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount; band++)
     {
         Band_Dec_Vreg1[band] = Dec_Normal_Vreg1[Convert.ToInt16(Set), band];
     }
     return(Band_Dec_Vreg1);
 }
Beispiel #25
0
        public void Set_Normal_GammaSet_Vreg1_Hex_Params(Gamma_Set Set, string[] Hex_Params)
        {
            int Set_index = Convert.ToInt16(Set);

            for (int Param_index = 0; Param_index < DP213_Static.One_Normal_GammaSet_Vreg1_Parameters_Amount; Param_index++)
            {
                Normal_GammaSet_Vreg1_Hex_Params[Set_index, Param_index] = Hex_Params[Param_index];
            }
            Is_Normal_GammaSet_Vreg1_Changed[Set_index] = true;
        }
Beispiel #26
0
 private void ELVSS_Margin_Test(Gamma_Set Set, int band)
 {
     for (double ELVSS_Voltage = -6.0; ((ELVSS_Voltage <= -0.8) && (vars.Optic_Compensation_Stop == false)); ELVSS_Voltage += 0.1)
     {
         cmds.Set_Voltage_ELVSS_and_and_Update_Textboxes(Set, band, ELVSS_Voltage);
         cmds.Send_ELVSS_CMD(Set);
         Thread.Sleep(50);
         f1().CA_Measure_For_ELVSS(ELVSS_Voltage.ToString());
     }
 }
Beispiel #27
0
        public double[] Get_Vinit2_Voltages(Gamma_Set Set)
        {
            double[] Vinit2_Voltages = new double[DP213_Static.Max_HBM_and_Normal_Band_Amount];
            for (int b = 0; b < DP213_Static.Max_HBM_and_Normal_Band_Amount; b++)
            {
                Vinit2_Voltages[b] = Voltage_Vinit2[Convert.ToInt16(Set), b];
            }

            return(Vinit2_Voltages);
        }
Beispiel #28
0
        public void Set_GammaSet_Normal_RGB_Hex_Param(Gamma_Set Set, int band_index, string[] Hex_45ea_RGB_Params)
        {
            int Set_index = Convert.ToInt16(Set);

            for (int Param_index = 0; Param_index < DP213_Static.One_Band_Gamma_Parameters_Amount; Param_index++)
            {
                GammaSet_Normal_RGB_Hex_Param[Set_index, band_index, Param_index] = Hex_45ea_RGB_Params[Param_index];
            }

            Is_GammaSet_Normal_RGB_Changed[Set_index, band_index] = true;
        }
Beispiel #29
0
        public string[] Get_Hex_String_Vinit2(Gamma_Set Set)
        {
            int Set_Index = Convert.ToInt16(Set);

            string[] Temp_Dec_Vinit2 = new string[DP213_Static.Max_HBM_and_Normal_Band_Amount];
            for (int b = 0; b < DP213_Static.Max_HBM_and_Normal_Band_Amount; b++)
            {
                Temp_Dec_Vinit2[b] = Dec_Vinit2[Set_Index, b].ToString("X2");
            }
            return(Temp_Dec_Vinit2);
        }
Beispiel #30
0
 public RGB Get_Band_Set_AM1(Gamma_Set Set, int band)
 {
     if (band < DP213_Static.Max_HBM_and_Normal_Band_Amount)
     {
         return(AM1[Convert.ToInt16(Set), band]);
     }
     else
     {
         return(new RGB(0));
     }
 }