public override void RequestOutputData(RequestCommand request) { lock (_thread_interlock) { draining_queue = true; CommandQueue.Add(new ET232Command() { Command = CommandByte.read, Address = (AddressByte)request.Address, }); } }
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); }
public abstract void RequestOutputData(RequestCommand request);
public override void RequestOutputData(RequestCommand request) { lock (_thread_interlock) CommandQueue.Add(request); }