public int Get_OC_Mode_Gray(OC_Mode mode, int bandindex, int grayindex) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_Gray[bandindex, grayindex]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_Gray[bandindex, grayindex]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_Gray[bandindex, grayindex]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_Gray[bandindex, grayindex]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_Gray[bandindex, grayindex]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_Gray[bandindex, grayindex]); } throw new Exception("Mode Should be 1~6"); }
public void Set_OC_Mode_Measure(XYLv measured, OC_Mode mode, int band, int gray) { if (mode == OC_Mode.Mode1) { OC_Mode1_Measure[band, gray] = measured; } else if (mode == OC_Mode.Mode2) { OC_Mode2_Measure[band, gray] = measured; } else if (mode == OC_Mode.Mode3) { OC_Mode3_Measure[band, gray] = measured; } else if (mode == OC_Mode.Mode4) { OC_Mode4_Measure[band, gray] = measured; } else if (mode == OC_Mode.Mode5) { OC_Mode5_Measure[band, gray] = measured; } else if (mode == OC_Mode.Mode6) { OC_Mode6_Measure[band, gray] = measured; } else { throw new Exception("Mode Should be 1~6"); } }
public XYLv Get_OC_Mode_Limit(OC_Mode mode, int band, int gray) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_Limit[band, gray]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_Limit[band, gray]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_Limit[band, gray]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_Limit[band, gray]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_Limit[band, gray]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_Limit[band, gray]); } throw new Exception("Mode Should be 1~6"); }
public RGB Get_OC_Mode_AM0(OC_Mode mode, int band) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_AM0[band]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_AM0[band]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_AM0[band]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_AM0[band]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_AM0[band]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_AM0[band]); } throw new Exception("Mode Should be 1~6"); }
void Set_and_Send_ELVSS_CMD(OC_Mode SelectedMode, int band, double ELVSS_Voltages) { ocparam.Set_OC_Mode_ELVSS_Voltage(ELVSS_Voltages, SelectedMode, band); byte[][] output_cmd = ModelFactory.Get_DP213_Instance().Get_ELVSS_CMD(DP213OCSet.GetGammaSet(SelectedMode), ocparam.Get_OC_Mode_Cold_ELVSS_Voltages(SelectedMode)); cmd.SendMipiCMD(output_cmd); api.WriteLine("(Set and Send and update_textboxes) set/band ELVSS_Voltages : (" + DP213OCSet.GetGammaSet(SelectedMode).ToString() + "/" + band.ToString() + ")" + ELVSS_Voltages.ToString()); }
public void Set_OC_Mode_ELVSS_Voltage(double ELVSS_Voltage, OC_Mode mode, int band) { if (mode == OC_Mode.Mode1) { OC_Mode1_ELVSS_Voltage[band] = ELVSS_Voltage; } else if (mode == OC_Mode.Mode2) { OC_Mode2_ELVSS_Voltage[band] = ELVSS_Voltage; } else if (mode == OC_Mode.Mode3) { OC_Mode3_ELVSS_Voltage[band] = ELVSS_Voltage; } else if (mode == OC_Mode.Mode4) { OC_Mode4_ELVSS_Voltage[band] = ELVSS_Voltage; } else if (mode == OC_Mode.Mode5) { OC_Mode5_ELVSS_Voltage[band] = ELVSS_Voltage; } else if (mode == OC_Mode.Mode6) { OC_Mode6_ELVSS_Voltage[band] = ELVSS_Voltage; } else { throw new Exception("Mode Should be 1~6"); } }
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); } }
public void Set_OC_Mode_IsExtensionApplied(OC_Mode mode, int band, int gray, bool IsApplied) { if (mode == OC_Mode.Mode1) { OC_Mode1_IsExtensionApplied[band, gray] = IsApplied; } else if (mode == OC_Mode.Mode2) { OC_Mode2_IsExtensionApplied[band, gray] = IsApplied; } else if (mode == OC_Mode.Mode3) { OC_Mode3_IsExtensionApplied[band, gray] = IsApplied; } else if (mode == OC_Mode.Mode4) { OC_Mode4_IsExtensionApplied[band, gray] = IsApplied; } else if (mode == OC_Mode.Mode5) { OC_Mode5_IsExtensionApplied[band, gray] = IsApplied; } else if (mode == OC_Mode.Mode6) { OC_Mode6_IsExtensionApplied[band, gray] = IsApplied; } else { throw new Exception("Mode Should be 1~6"); } }
public XYLv Get_OC_Mode_ExtensionXY(OC_Mode mode, int band, int gray) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_ExtensionXY[band, gray]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_ExtensionXY[band, gray]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_ExtensionXY[band, gray]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_ExtensionXY[band, gray]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_ExtensionXY[band, gray]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_ExtensionXY[band, gray]); } throw new Exception("Mode Should be 1~6"); }
public RGB Get_OC_Mode_RGB(OC_Mode mode, int band, int gray) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_RGB[band, gray]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_RGB[band, gray]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_RGB[band, gray]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_RGB[band, gray]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_RGB[band, gray]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_RGB[band, gray]); } throw new Exception("Mode Should be 1~6"); }
public void Set_OC_Mode_LoopCount(int loopcount, OC_Mode mode, int band, int gray) { if (mode == OC_Mode.Mode1) { OC_Mode1_LoopCount[band, gray] = loopcount; } else if (mode == OC_Mode.Mode2) { OC_Mode2_LoopCount[band, gray] = loopcount; } else if (mode == OC_Mode.Mode3) { OC_Mode3_LoopCount[band, gray] = loopcount; } else if (mode == OC_Mode.Mode4) { OC_Mode4_LoopCount[band, gray] = loopcount; } else if (mode == OC_Mode.Mode5) { OC_Mode5_LoopCount[band, gray] = loopcount; } else if (mode == OC_Mode.Mode6) { OC_Mode6_LoopCount[band, gray] = loopcount; } else { throw new Exception("Mode Should be 1~6"); } }
private RGB[,] Get_OC_Mode_RGB(OC_Mode mode) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_RGB); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_RGB); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_RGB); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_RGB); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_RGB); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_RGB); } throw new Exception("Mode Should be 1~6"); }
public void Set_OC_Mode_RGB(RGB[] Gamma, OC_Mode mode, int band) { for (int gray = 0; gray < DP213_Static.Max_Gray_Amount; gray++) { Set_OC_Mode_RGB(Gamma[gray], mode, band, gray); } }
public void Set_OC_Mode_Gray(OC_Mode mode, int bandindex, int grayindex, int GrayValue) { if (mode == OC_Mode.Mode1) { OC_Mode1_Gray[bandindex, grayindex] = GrayValue; } else if (mode == OC_Mode.Mode2) { OC_Mode2_Gray[bandindex, grayindex] = GrayValue; } else if (mode == OC_Mode.Mode3) { OC_Mode3_Gray[bandindex, grayindex] = GrayValue; } else if (mode == OC_Mode.Mode4) { OC_Mode4_Gray[bandindex, grayindex] = GrayValue; } else if (mode == OC_Mode.Mode5) { OC_Mode5_Gray[bandindex, grayindex] = GrayValue; } else if (mode == OC_Mode.Mode6) { OC_Mode6_Gray[bandindex, grayindex] = GrayValue; } else { throw new Exception("Mode Should be 1~6"); } }
public void Set_OC_Mode_Cold_Vinit2_Voltage(double Cold_Vinit2_Voltage, OC_Mode mode, int band) { if (mode == OC_Mode.Mode1) { OC_Mode1_Cold_Vinit2_Voltage[band] = Cold_Vinit2_Voltage; } else if (mode == OC_Mode.Mode2) { OC_Mode2_Cold_Vinit2_Voltage[band] = Cold_Vinit2_Voltage; } else if (mode == OC_Mode.Mode3) { OC_Mode3_Cold_Vinit2_Voltage[band] = Cold_Vinit2_Voltage; } else if (mode == OC_Mode.Mode4) { OC_Mode4_Cold_Vinit2_Voltage[band] = Cold_Vinit2_Voltage; } else if (mode == OC_Mode.Mode5) { OC_Mode5_Cold_Vinit2_Voltage[band] = Cold_Vinit2_Voltage; } else if (mode == OC_Mode.Mode6) { OC_Mode6_Cold_Vinit2_Voltage[band] = Cold_Vinit2_Voltage; } else { throw new Exception("Mode Should be 1~6"); } }
public bool Get_OC_Mode_IsExtensionApplied(OC_Mode mode, int band, int gray) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_IsExtensionApplied[band, gray]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_IsExtensionApplied[band, gray]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_IsExtensionApplied[band, gray]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_IsExtensionApplied[band, gray]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_IsExtensionApplied[band, gray]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_IsExtensionApplied[band, gray]); } throw new Exception("Mode Should be 1~6"); }
public double[] Get_OC_Mode_ELVSS_Voltages(OC_Mode mode) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_ELVSS_Voltage); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_ELVSS_Voltage); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_ELVSS_Voltage); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_ELVSS_Voltage); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_ELVSS_Voltage); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_ELVSS_Voltage); } throw new Exception("Mode Should be 1~6"); }
//Set_Read_Vreg1 void Set_Read_Vreg1(OC_Mode Mode, int band, int Vreg1) { int gray = 0; int rows_index = (band * DP213_Static.Max_Gray_Amount) + (gray + 2); Set_OC_Params_For_Selected_OCMode(Mode, rows_index, 16, Vreg1.ToString()); }
public void ShowOCParamData(OC_Mode mode) { dprotocal.richTextBox.AppendText("Gray,R,G,B,Measure_X,Measured_Y,Measured_Lv,Target_X,Target_Y,Target_Lv,Limit_X,Limit_Y,Limit_Lv,Extension_X,Extension_Y,ExtensionApplied,LoopCount + \n"); for (int band = 0; band < DP213_Static.Max_Band_Amount; band++) { for (int gray = 0; gray < DP213_Static.Max_Gray_Amount; gray++) { StringBuilder sb = new StringBuilder(); sb.Append(grayValue.Get_OC_Mode_Gray(mode, band, gray) + ",").Append(rgb.Get_OC_Mode_RGB(mode, band, gray).int_R + ",").Append(rgb.Get_OC_Mode_RGB(mode, band, gray).int_G + ",").Append(rgb.Get_OC_Mode_RGB(mode, band, gray).int_B + ",") .Append(measure.Get_OC_Mode_Measure(mode, band, gray).double_X + ",").Append(measure.Get_OC_Mode_Measure(mode, band, gray).double_Y + ",").Append(measure.Get_OC_Mode_Measure(mode, band, gray).double_Lv + ",") .Append(target.Get_OC_Mode_Target(mode, band, gray).double_X + ",").Append(target.Get_OC_Mode_Target(mode, band, gray).double_Y + ",").Append(target.Get_OC_Mode_Target(mode, band, gray).double_Lv + ",") .Append(limit.Get_OC_Mode_Limit(mode, band, gray).double_X + ",").Append(limit.Get_OC_Mode_Limit(mode, band, gray).double_Y + ",").Append(limit.Get_OC_Mode_Limit(mode, band, gray).double_Lv + ",") .Append(extensionXY.Get_OC_Mode_ExtensionXY(mode, band, gray).double_X + ",").Append(extensionXY.Get_OC_Mode_ExtensionXY(mode, band, gray).double_Y + ",") .Append(extensionXY.Get_OC_Mode_IsExtensionApplied(mode, band, gray) + ",") .Append(loopCount.Get_OC_Mode_LoopCount(mode, band, gray) + "\n"); dprotocal.richTextBox.AppendText(sb.ToString()); } } dprotocal.richTextBox.AppendText("\n\n"); for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount; band++) { dprotocal.richTextBox.AppendText("Band" + band + " Vreg1 = " + vreg1.Get_OC_Mode_Vreg1(mode, band) + "\n"); } for (int band = 0; band < DP213_Static.Max_Band_Amount; band++) { dprotocal.richTextBox.AppendText("Band" + band + " DBV = " + dbv.GetDBV(band) + "\n"); } dprotocal.richTextBox.AppendText("Normal_REF0 = " + ref0ref4095.Get_Normal_REF0() + "\n"); dprotocal.richTextBox.AppendText("Normal_REF4095 = " + ref0ref4095.Get_Normal_REF4095() + "\n"); }
//Set_Read_Vreg1_Voltage void Set_Read_Vreg1_Voltage(OC_Mode Mode, int band, double Vreg1_Voltage) { int gray = 1; int rows_index = (band * DP213_Static.Max_Gray_Amount) + (gray + 2); Set_OC_Params_For_Selected_OCMode(Mode, rows_index, 16, Vreg1_Voltage.ToString()); }
private bool Is_Selected_Band(int band, OC_Mode Mode) { if (band <= Max_Applied_Band_Index) { if (Mode == OC_Mode.Mode1) { return(true); } else { return(false); } } else { if (Mode == OC_Mode.Mode1) { return(false); } else { return(true); } } }
private double[] Get_OC_Mode_Vreg1_Voltage(OC_Mode mode) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_Vreg1_Voltage); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_Vreg1_Voltage); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_Vreg1_Voltage); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_Vreg1_Voltage); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_Vreg1_Voltage); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_Vreg1_Voltage); } throw new Exception("Mode Should be 1~6"); }
private RGB_Double[] Get_OC_Mode_AM0_Voltage(OC_Mode mode) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_AM0_Voltage); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_AM0_Voltage); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_AM0_Voltage); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_AM0_Voltage); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_AM0_Voltage); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_AM0_Voltage); } throw new Exception("Mode Should be 1~6"); }
public int[] Get_OC_Mode_Vreg1(OC_Mode mode) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_Vreg1); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_Vreg1); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_Vreg1); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_Vreg1); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_Vreg1); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_Vreg1); } throw new Exception("Mode Should be 1~6"); }
private void Send_Vinit2_Voltages(OC_Mode SelectedMode) { double[] Vinit2_Voltages = ocparam.Get_OC_Mode_Vinit2_Voltages(SelectedMode); byte[][] output_cmd = ModelFactory.Get_DP213_Instance().Get_Vinit2_CMD(DP213OCSet.GetGammaSet(SelectedMode), Vinit2_Voltages); cmd.SendMipiCMD(output_cmd); api.WriteLine("Send_Vinit2_Voltages, OC_Mode : " + SelectedMode.ToString()); }
public double Get_OC_Mode_Cold_ELVSS_Voltage(OC_Mode mode, int band) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_Cold_ELVSS_Voltage[band]); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_Cold_ELVSS_Voltage[band]); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_Cold_ELVSS_Voltage[band]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_Cold_ELVSS_Voltage[band]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_Cold_ELVSS_Voltage[band]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_Cold_ELVSS_Voltage[band]); } throw new Exception("Mode Should be 1~6"); }
public RGB_Double Get_LUT_RGB(int band, int gray, OC_Mode mode) { if (band == 0) { throw new Exception("Should not Get band0's Matched_Grays"); } if (mode == OC_Mode.Mode1) { return(OC_Mode1_LUT_RGB[band, gray]); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_LUT_RGB[band, gray]); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_LUT_RGB[band, gray]); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_LUT_RGB[band, gray]); } throw new Exception("OC_Mode should be 1,4,5 or 6"); }
public double[] Get_OC_Mode_Cold_Vinit2_Voltages(OC_Mode mode) { if (mode == OC_Mode.Mode1) { return(OC_Mode1_Cold_Vinit2_Voltage); } if (mode == OC_Mode.Mode2) { return(OC_Mode2_Cold_Vinit2_Voltage); } if (mode == OC_Mode.Mode3) { return(OC_Mode3_Cold_Vinit2_Voltage); } if (mode == OC_Mode.Mode4) { return(OC_Mode4_Cold_Vinit2_Voltage); } if (mode == OC_Mode.Mode5) { return(OC_Mode5_Cold_Vinit2_Voltage); } if (mode == OC_Mode.Mode6) { return(OC_Mode6_Cold_Vinit2_Voltage); } throw new Exception("Mode Should be 1~6"); }
public void Set_OC_Mode_Limit(OC_Mode mode, int band, int gray, XYLv xylv) { if (mode == OC_Mode.Mode1) { OC_Mode1_Limit[band, gray] = xylv; } else if (mode == OC_Mode.Mode2) { OC_Mode2_Limit[band, gray] = xylv; } else if (mode == OC_Mode.Mode3) { OC_Mode3_Limit[band, gray] = xylv; } else if (mode == OC_Mode.Mode4) { OC_Mode4_Limit[band, gray] = xylv; } else if (mode == OC_Mode.Mode5) { OC_Mode5_Limit[band, gray] = xylv; } else if (mode == OC_Mode.Mode6) { OC_Mode6_Limit[band, gray] = xylv; } else { throw new Exception("Mode Should be 1~6"); } }
public static Gamma_Set GetGammaSet(OC_Mode mode) { if (Initialized == false) { Initialize(); } if (mode == OC_Mode.Mode1) { return(OCMode1_GammaSet); } if (mode == OC_Mode.Mode2) { return(OCMode2_GammaSet); } if (mode == OC_Mode.Mode3) { return(OCMode3_GammaSet); } if (mode == OC_Mode.Mode4) { return(OCMode4_GammaSet); } if (mode == OC_Mode.Mode5) { return(OCMode5_GammaSet); } if (mode == OC_Mode.Mode6) { return(OCMode6_GammaSet); } throw new Exception("Mode Should be 1~6"); }