Exemple #1
0
 public override void RequestOutputData(RequestCommand request)
 {
     lock (_thread_interlock)
     {
         draining_queue = true;
         CommandQueue.Add(new ET232Command()
         {
             Command = CommandByte.read,
             Address = (AddressByte)request.Address,
         });
     }
 }
Exemple #2
0
        public override void RequestOutputData(RequestCommand request)
        {
            int data = 0;

            lock (_thread_interlock)
            {
                if (request.Address == (int)AddressByte.PulseAmp_A)
                {
                    data = LastA;
                }
                if (request.Address == (int)AddressByte.PulseAmp_B)
                {
                    data = LastB;
                }
            }
            DataReturnedCallback(this, request.Address, data);
        }
Exemple #3
0
 public abstract void RequestOutputData(RequestCommand request);
Exemple #4
0
 public override void RequestOutputData(RequestCommand request)
 {
     lock (_thread_interlock) CommandQueue.Add(request);
 }