Beispiel #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,
         });
     }
 }
Beispiel #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);
        }
Beispiel #3
0
 public abstract void RequestOutputData(RequestCommand request);
Beispiel #4
0
 public override void RequestOutputData(RequestCommand request)
 {
     lock (_thread_interlock) CommandQueue.Add(request);
 }