Exemplo n.º 1
0
        /// <summary>
        /// Write an output report to the device.
        /// </summary>
        /// <param name="oOutRep">Output report to write</param>
        protected void Write(Report oOutRep)
        {
            if (_handle == IntPtr.Zero) return;

            _mOFile.Write(oOutRep.Buffer, 0, oOutRep.Buffer.Length);
        }
Exemplo n.º 2
0
 public void SendData(Report report)
 {
     Write(report);
     OnDataSend.Invoke(this, new HIDDeviceEventArgs { Report = report });
 }