/// <summary>
 ///
 /// </summary>
 /// <param name="serialParam"></param>
 /// <param name="uSBParam"></param>
 public virtual void  AnalyseParam(CCommSerialParam serialParam, CCommUSBParam usbParam)
 {
     if ((serialParam != null) && (this.mSerialParam != null))
     {
         this.mSerialParam.mName     = serialParam.mName;
         this.mSerialParam.mBaudRate = serialParam.mBaudRate;
         this.mSerialParam.mStopBits = serialParam.mStopBits;
         this.mSerialParam.mDataBits = serialParam.mDataBits;
         this.mSerialParam.mParity   = serialParam.mParity;
     }
     if ((usbParam != null) && (this.mUSBParam != null))
     {
         this.mUSBParam.mVID = mUSBParam.mVID;
         this.mUSBParam.mPID = mUSBParam.mPID;
     }
 }
 /// <summary>
 /// 打开指定参数的USB端口
 /// </summary>
 /// <param name="argSerialParam"></param>
 /// <param name="msg"></param>
 /// <returns></returns>
 public virtual int OpenDevice(CCommUSBParam argUSBParam, RichTextBox msg = null)
 {
     return(-1);
 }
 /// <summary>
 /// 初始化USB参数
 /// </summary>
 /// <param name="uSBParam"></param>
 /// <param name="msg"></param>
 /// <returns></returns>
 public virtual int Init(CCommUSBParam usbParam, RichTextBox msg = null)
 {
     return(-1);
 }
Beispiel #4
0
 /// <summary>
 /// 初始化USB参数
 /// </summary>
 /// <param name="uSBParam"></param>
 /// <param name="msg"></param>
 /// <returns></returns>
 public override int Init(CCommUSBParam uSBParam, RichTextBox msg = null)
 {
     return(-1);
 }