void Update_Vreg1_From_Sample() { try { byte[] OCMode1_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode1)); byte[] OCMode2_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode2)); byte[] OCMode3_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode3)); byte[] OCMode4_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode4)); byte[] OCMode5_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode5)); byte[] OCMode6_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode6)); byte[] OCMode1_ReadVreg1 = dprotocal.GetReadData(OCMode1_cmds); byte[] OCMode2_ReadVreg1 = dprotocal.GetReadData(OCMode2_cmds); byte[] OCMode3_ReadVreg1 = dprotocal.GetReadData(OCMode3_cmds); byte[] OCMode4_ReadVreg1 = dprotocal.GetReadData(OCMode4_cmds); byte[] OCMode5_ReadVreg1 = dprotocal.GetReadData(OCMode5_cmds); byte[] OCMode6_ReadVreg1 = dprotocal.GetReadData(OCMode6_cmds); for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount; band++) { Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode1_ReadVreg1, band), OC_Mode.Mode1, band); Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode2_ReadVreg1, band), OC_Mode.Mode2, band); Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode3_ReadVreg1, band), OC_Mode.Mode3, band); Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode4_ReadVreg1, band), OC_Mode.Mode4, band); Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode5_ReadVreg1, band), OC_Mode.Mode5, band); Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode6_ReadVreg1, band), OC_Mode.Mode6, band); } } catch (Exception) { MessageBox.Show("Update_Vreg1_From_Sample() fail"); } }
void Update_Normal_REF0_and_REF4095_From_CMD() { try { byte[] cmds = DP213Model.getInstance().Get_Normal_Read_REF0_REF4095_CMD(); byte[] read_REF0_REF4095 = dprotocal.GetReadData(cmds); Set_Normal_REF0(DP213Model.getInstance().Get_Normal_REF0(read_REF0_REF4095)); Set_Normal_REF4095(DP213Model.getInstance().Get_Normal_REF4095(read_REF0_REF4095)); } catch (Exception) { MessageBox.Show("Update_Normal_REF0_and_REF4095_From_CMD() fail"); } }
private byte[] Get_DBV_AOD_ReadData() { byte[] cmds_AOD = DP213Model.getInstance().Get_AOD_Read_DBV_CMD(); return(dprotocal.GetReadData(cmds_AOD)); }
private byte[] Get_DBV_Normal_ReadData() { byte[] cmds_normal = DP213Model.getInstance().Get_Normal_Read_DBV_CMD(); return(dprotocal.GetReadData(cmds_normal)); }