Exemple #1
0
        /// <summary>
        /// Send data using bulk transfer
        /// </summary>
        /// <param name="data">buffer from which the data will be read</param>
        /// <param name="bytesToSend">number of bytes to send over bulk transfer</param>
        public void SendDataViaBulkTransfer(Byte[] data, UInt32 bytesToSend)
        {
            try
            {
                Boolean success = false;

                if (isDeviceDetected)
                {
                    success = device.SendViaBulkTransfer
                                  (ref data,
                                  bytesToSend);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }