Beispiel #1
0
        public void WriteReport(HidReport report, WriteCallback callback, int timeout)
        {
            var writeReportDelegate = new WriteReportDelegate(WriteReport);
            var asyncState          = new HidAsyncState(writeReportDelegate, callback);

            writeReportDelegate.BeginInvoke(report, timeout, EndWriteReport, asyncState);
        }
Beispiel #2
0
        public void FastReadReport(ReadReportCallback callback, int timeout)
        {
            var readReportDelegate = new ReadReportDelegate(FastReadReport);
            var asyncState         = new HidAsyncState(readReportDelegate, callback);

            readReportDelegate.BeginInvoke(timeout, EndReadReport, asyncState);
        }
Beispiel #3
0
        public void Write(byte[] data, WriteCallback callback, int timeout)
        {
            var writeDelegate = new WriteDelegate(Write);
            var asyncState    = new HidAsyncState(writeDelegate, callback);

            writeDelegate.BeginInvoke(data, timeout, EndWrite, asyncState);
        }
Beispiel #4
0
        public void Read(ReadCallback callback, int timeout)
        {
            var readDelegate = new ReadDelegate(Read);
            var asyncState   = new HidAsyncState(readDelegate, callback);

            readDelegate.BeginInvoke(timeout, EndRead, asyncState);
        }
 public void FastReadReport(ReadReportCallback callback, int timeout)
 {
     var readReportDelegate = new ReadReportDelegate(FastReadReport);
     var asyncState = new HidAsyncState(readReportDelegate, callback);
     readReportDelegate.BeginInvoke(timeout, EndReadReport, asyncState);
 }
Beispiel #6
0
 public void WriteReport(HidReport report, WriteCallback callback, int timeout)
 {
     var writeReportDelegate = new WriteReportDelegate(WriteReport);
     var asyncState = new HidAsyncState(writeReportDelegate, callback);
     writeReportDelegate.BeginInvoke(report, timeout, EndWriteReport, asyncState);
 }
Beispiel #7
0
 public void Write(byte[] data, WriteCallback callback, int timeout)
 {
     var writeDelegate = new WriteDelegate(Write);
     var asyncState = new HidAsyncState(writeDelegate, callback);
     writeDelegate.BeginInvoke(data, timeout, EndWrite, asyncState);
 }
Beispiel #8
0
 public void Read(ReadCallback callback, int timeout)
 {
     var readDelegate = new ReadDelegate(Read);
     var asyncState = new HidAsyncState(readDelegate, callback);
     readDelegate.BeginInvoke(timeout, EndRead, asyncState);
 }