Ejemplo n.º 1
0
 public static Task <USBInTransferResult> TransferIn(this USBDevice device, USBEndpoint endpoint, long length)
 {
     if (endpoint == null)
     {
         throw new ArgumentNullException(nameof(endpoint));
     }
     return(device.TransferIn(endpoint.EndpointNumber, length));
 }
Ejemplo n.º 2
0
        public static Task <USBDevice> ClearHalt(this USBDevice device, USBEndpoint endpoint)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException(nameof(endpoint));
            }

            return(device.ClearHalt(endpoint.Direction, endpoint.EndpointNumber));
        }
Ejemplo n.º 3
0
 public static Task <USBOutTransferResult> TransferOut(this USBDevice device, USBEndpoint endpoint, byte[] data)
 {
     return(device.TransferOut(endpoint.EndpointNumber, data));
 }