protected virtual void SetCmdQueueDefaults(QualcommDeviceInstance instance)
 {
     this._instance       = instance;
     this._opMode         = OperationModes.Normal;
     this._disableLogging = false;
     this._chkNVItems     = false;
     this._fileName       = string.Empty;
 }
Exemplo n.º 2
0
 public override bool TransmitTX(QualcommDeviceInstance instance, AsyncOperation asyncOp)
 {
     if (instance.CommandQueueInstance.TransmitData(this._txBytes, asyncOp))
     {
         this._rxBytes = instance.CommandQueueInstance.ReceiveData(this._txBytes, asyncOp);
         this._rxBytes = instance.CommandQueueInstance.ProcessReturnBytes(this._rxBytes);
     }
     return(this._rxBytes.Count <byte>() > 0);
 }
Exemplo n.º 3
0
 internal NVMemoryManager(QualcommDeviceInstance instance)
 {
     this.PrepareForRestoreCompleted += new EventHandler(this.PrepForRestoreCompleted_Internal);
     this.AppPath           = Application.StartupPath.ToString();
     this._customNVItemList = new List <long>();
     this._enableNVISkip    = false;
     this._skipNVItems      = new List <string>();
     this._nvItemSkipList   = new List <NVItemSkipClass>();
     this._myQueue          = instance.CommandQueueInstance;
     this.InitializeDelegates();
 }
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposedValue)
     {
         if (disposing)
         {
             this.Disconnect();
             if (this._commandQueue != null)
             {
                 this._commandQueue.Dispose();
                 this._commandQueue = null;
             }
             if (this._NVMemoryManager != null)
             {
                 this._NVMemoryManager.Dispose();
                 this._NVMemoryManager = null;
             }
             _initQCDevInstance = null;
         }
     }
     this.disposedValue = true;
 }
 public CommandQueue(QualcommDeviceInstance instance)
 {
     this.enableFastBuffer    = false;
     this.cBufferSize         = 0x100;
     this._opMode             = OperationModes.Normal;
     this._disableLogging     = false;
     this._chkNVItems         = false;
     this._fileName           = string.Empty;
     this._qcdmCmd            = new List <Qcdm.Cmd>();
     this._nvCmd              = new List <NVItemList>();
     this._commandOutput      = null;
     this._errorResponse      = new List <Qcdm.NV_Response>();
     this.myQueue             = new Queue();
     this.cmdQueue            = Queue.Synchronized(this.myQueue);
     this.myNVQueue           = new Queue();
     this.cmdNVQueue          = Queue.Synchronized(this.myNVQueue);
     this.taskIdentifier      = "CommandQueue";
     this.userStateToLifetime = new HybridDictionary();
     this.components          = null;
     this.InitializeComponent();
     this.InitializeDelegates();
     this.SetCmdQueueDefaults(instance);
 }
Exemplo n.º 6
0
 public abstract bool TransmitTX(QualcommDeviceInstance instance, AsyncOperation asyncOp);