Share via


UsbDevice.SendControlOutTransferAsync Method

Definition

Overloads

SendControlOutTransferAsync(UsbSetupPacket)

Starts a zero-length USB control transfer that writes to the default control endpoint of the device.

SendControlOutTransferAsync(UsbSetupPacket, IBuffer)

Starts a USB control transfer to send data to the default control endpoint of the device.

SendControlOutTransferAsync(UsbSetupPacket)

Starts a zero-length USB control transfer that writes to the default control endpoint of the device.

public:
 virtual IAsyncOperation<unsigned int> ^ SendControlOutTransferAsync(UsbSetupPacket ^ setupPacket) = SendControlOutTransferAsync;
/// [Windows.Foundation.Metadata.Overload("SendControlOutTransferAsyncNoBuffer")]
IAsyncOperation<uint32_t> SendControlOutTransferAsync(UsbSetupPacket const& setupPacket);
[Windows.Foundation.Metadata.Overload("SendControlOutTransferAsyncNoBuffer")]
public IAsyncOperation<uint> SendControlOutTransferAsync(UsbSetupPacket setupPacket);
function sendControlOutTransferAsync(setupPacket)
Public Function SendControlOutTransferAsync (setupPacket As UsbSetupPacket) As IAsyncOperation(Of UInteger)

Parameters

setupPacket
UsbSetupPacket

A UsbSetupPacket object that contains the setup packet for the control transfer.

Returns

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation<unsigned int>

IAsyncOperation<uint32_t>

Returns an IAsyncOperation(UInt32) object that returns the results of the operation.

Attributes

Remarks

Most USB control transfers may be sent to the underlying WinUSB device, but the below are not permitted. Attempting to send these message will fail and throw an exception.

  • Set the address/configuration of the device.
  • Set or clear the remote wake property of the device.
  • Change to the alternate setting of an interface.
  • Change change the suspend state of a function.

See also

Applies to

SendControlOutTransferAsync(UsbSetupPacket, IBuffer)

Starts a USB control transfer to send data to the default control endpoint of the device.

public:
 virtual IAsyncOperation<unsigned int> ^ SendControlOutTransferAsync(UsbSetupPacket ^ setupPacket, IBuffer ^ buffer) = SendControlOutTransferAsync;
/// [Windows.Foundation.Metadata.Overload("SendControlOutTransferAsync")]
IAsyncOperation<uint32_t> SendControlOutTransferAsync(UsbSetupPacket const& setupPacket, IBuffer const& buffer);
[Windows.Foundation.Metadata.Overload("SendControlOutTransferAsync")]
public IAsyncOperation<uint> SendControlOutTransferAsync(UsbSetupPacket setupPacket, IBuffer buffer);
function sendControlOutTransferAsync(setupPacket, buffer)
Public Function SendControlOutTransferAsync (setupPacket As UsbSetupPacket, buffer As IBuffer) As IAsyncOperation(Of UInteger)

Parameters

setupPacket
UsbSetupPacket

A UsbSetupPacket object that contains the setup packet for the control transfer.

buffer
IBuffer

A caller-supplied buffer that contains the transfer data.

Returns

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation<unsigned int>

IAsyncOperation<uint32_t>

Returns an IAsyncOperation(UInt32) object that returns the results of the operation.

Attributes

Remarks

Most USB control transfers may be sent to the underlying WinUSB device, but the below are not permitted. Attempting to send these message will fail and throw an exception.

  • Set the address/configuration of the device.
  • Set or clear the remote wake property of the device.
  • Change to the alternate setting of an interface.
  • Change change the suspend state of a function.

See also

Applies to