public void Init(ref BusOptions busoptions, ref ParamListContainer deviceParamlistContainer, ref ParamListContainer sflParamlistContainer) { m_busoption = busoptions; m_Section_ParamlistContainer = deviceParamlistContainer; m_SFLs_ParamlistContainer = sflParamlistContainer; SectionParameterListInit(ref deviceParamlistContainer); m_HwMode_RegList.Add(ElementDefine.OperationElement, m_OpRegImg); SharedAPI.ReBuildBusOptions(ref busoptions, ref deviceParamlistContainer); InitialImgReg(); InitParameters(); CreateInterface(); m_dem_bm_base.parent = this; m_dem_bm_base.dem_dm = new DEMDataManageBase(m_dem_bm_base); m_expert_dem_bm.parent = this; m_expert_dem_bm.dem_dm = new DEMDataManageBase(m_dem_bm_base); m_trim_dem_bm.parent = this; m_trim_dem_bm.dem_dm = new DEMDataManageBase(m_dem_bm_base); LibInfor.AssemblyRegister(Assembly.GetExecutingAssembly(), ASSEMBLY_TYPE.OCE); LibErrorCode.UpdateDynamicalLibError(ref m_dynamicErrorLib_dic); }
public UInt32 GetDeviceInfor(ref DeviceInfor deviceinfor) { #if debug return(LibErrorCode.IDS_ERR_SUCCESSFUL); #else string shwversion = String.Empty; byte bval = 0; UInt32 ret = LibErrorCode.IDS_ERR_SUCCESSFUL; ret = ReadOneByte(0x14, ref bval); if (ret != LibErrorCode.IDS_ERR_SUCCESSFUL) { return(ret); } deviceinfor.status = 0; if (ret != LibErrorCode.IDS_ERR_SUCCESSFUL) { LibErrorCode.UpdateDynamicalErrorDescription(ret, new string[] { deviceinfor.shwversion }); } return(ret); #endif }
public void Init(ref BusOptions busoptions, ref ParamListContainer deviceParamlistContainer, ref ParamListContainer sflParamlistContainer) { m_busoption = busoptions; m_Section_ParamlistContainer = deviceParamlistContainer; m_SFLs_ParamlistContainer = sflParamlistContainer; SectionParameterListInit(ref deviceParamlistContainer); m_HwMode_RegList.Add(ElementDefine.EFUSEElement, m_EFRegImg); m_HwMode_RegList.Add(ElementDefine.OperationElement, m_OpRegImg); SharedAPI.ReBuildBusOptions(ref busoptions, ref deviceParamlistContainer); InitialImgReg(); InitParameters(); m_dem_bm.Init(this); m_dem_dm.Init(this); LibInfor.AssemblyRegister(Assembly.GetExecutingAssembly(), ASSEMBLY_TYPE.OCE); LibErrorCode.UpdateDynamicalLibError(ref m_dynamicErrorLib_dic); }