Beispiel #1
0
        public RGB_Double Get_Band_Set_Voltage_AM1(Gamma_Set Set, int band)
        {
            int Set_Index = Convert.ToInt16(Set);

            Voltage_AM1[Set_Index, band].double_R = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM1(Set, band).int_R);
            Voltage_AM1[Set_Index, band].double_G = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM1(Set, band).int_G);
            Voltage_AM1[Set_Index, band].double_B = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM1(Set, band).int_B);

            return(Voltage_AM1[Convert.ToInt16(Set), band]);
        }
Beispiel #2
0
        public void Set_OC_Mode_AM0(RGB AM0, OC_Mode mode, int band)
        {
            AM0 = AM1_AM0_BoundaryCheck(AM0);
            RGB[]        OCMode_AM0         = Get_OC_Mode_AM0(mode);
            RGB_Double[] OCMode_AM0_Voltage = Get_OC_Mode_AM0_Voltage(mode);

            OCMode_AM0[band] = AM0;
            if (band < DP213_Static.Max_HBM_and_Normal_Band_Amount)
            {
                OCMode_AM0_Voltage[band].double_R = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(ref0ref4095.Get_Normal_REF4095_Voltage(), vreg1.Get_OC_Mode_Vreg1_Voltage(mode, band), AM0.int_R);
                OCMode_AM0_Voltage[band].double_G = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(ref0ref4095.Get_Normal_REF4095_Voltage(), vreg1.Get_OC_Mode_Vreg1_Voltage(mode, band), AM0.int_G);
                OCMode_AM0_Voltage[band].double_B = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(ref0ref4095.Get_Normal_REF4095_Voltage(), vreg1.Get_OC_Mode_Vreg1_Voltage(mode, band), AM0.int_B);
            }
        }
Beispiel #3
0
        public RGB_Double Get_OC_Mode_AM1_Voltage(OC_Mode mode, int band)
        {
            if (band > DP213_Static.Max_HBM_and_Normal_Band_Amount)
            {
                throw new Exception("band should be less than " + DP213_Static.Max_HBM_and_Normal_Band_Amount);
            }

            RGB[]        OCMode_AM1         = Get_OC_Mode_AM1(mode);
            RGB_Double[] OCMode_AM1_Voltage = Get_OC_Mode_AM1_Voltage(mode);
            OCMode_AM1_Voltage[band].double_R = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(ref0ref4095.Get_Normal_REF4095_Voltage(), vreg1.Get_OC_Mode_Vreg1_Voltage(mode, band), OCMode_AM1[band].int_R);
            OCMode_AM1_Voltage[band].double_G = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(ref0ref4095.Get_Normal_REF4095_Voltage(), vreg1.Get_OC_Mode_Vreg1_Voltage(mode, band), OCMode_AM1[band].int_G);
            OCMode_AM1_Voltage[band].double_B = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(ref0ref4095.Get_Normal_REF4095_Voltage(), vreg1.Get_OC_Mode_Vreg1_Voltage(mode, band), OCMode_AM1[band].int_B);

            return(OCMode_AM1_Voltage[band]);
        }
Beispiel #4
0
        public void Set_Band_Set_AM1(Gamma_Set Set, int band, RGB New_AM1)
        {
            if (New_AM1.int_R > DP213_Static.AM1_AM0_Max)
            {
                New_AM1.int_R = DP213_Static.AM1_AM0_Max;
            }
            if (New_AM1.int_G > DP213_Static.AM1_AM0_Max)
            {
                New_AM1.int_G = DP213_Static.AM1_AM0_Max;
            }
            if (New_AM1.int_B > DP213_Static.AM1_AM0_Max)
            {
                New_AM1.int_B = DP213_Static.AM1_AM0_Max;
            }
            if (New_AM1.int_R < 0)
            {
                New_AM1.int_R = 0;
            }
            if (New_AM1.int_G < 0)
            {
                New_AM1.int_G = 0;
            }
            if (New_AM1.int_B < 0)
            {
                New_AM1.int_B = 0;
            }

            if (band < DP213_Static.Max_HBM_and_Normal_Band_Amount)
            {
                int Set_Index = Convert.ToInt16(Set);
                AM1[Set_Index, band] = New_AM1;

                Voltage_AM1[Set_Index, band].double_R = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM1(Set, band).int_R);
                Voltage_AM1[Set_Index, band].double_G = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM1(Set, band).int_G);
                Voltage_AM1[Set_Index, band].double_B = Imported_my_cpp_dll.DP213_Get_AM1_RGB_Voltage(Get_Voltage_VREF4095(), Get_Normal_Voltage_Vreg1(Set, band), Get_Band_Set_AM1(Set, band).int_B);
            }
        }