UsbDevice.SendControlInTransferAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendControlInTransferAsync(UsbSetupPacket) |
Starts a zero-length USB control transfer that reads from the default control endpoint of the device. |
SendControlInTransferAsync(UsbSetupPacket, IBuffer) |
Starts a USB control transfer to receive data from the default control endpoint of the device. |
SendControlInTransferAsync(UsbSetupPacket)
Starts a zero-length USB control transfer that reads from the default control endpoint of the device.
public:
virtual IAsyncOperation<IBuffer ^> ^ SendControlInTransferAsync(UsbSetupPacket ^ setupPacket) = SendControlInTransferAsync;
/// [Windows.Foundation.Metadata.Overload("SendControlInTransferAsyncNoBuffer")]
IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket const& setupPacket);
[Windows.Foundation.Metadata.Overload("SendControlInTransferAsyncNoBuffer")]
public IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket setupPacket);
function sendControlInTransferAsync(setupPacket)
Public Function SendControlInTransferAsync (setupPacket As UsbSetupPacket) As IAsyncOperation(Of IBuffer)
Parameters
- setupPacket
- UsbSetupPacket
A UsbSetupPacket object that contains the setup packet for the control transfer.
Returns
Returns an IAsyncOperation(IBuffer) object that returns the results of the operation.
- Attributes
See also
Applies to
SendControlInTransferAsync(UsbSetupPacket, IBuffer)
Starts a USB control transfer to receive data from the default control endpoint of the device.
public:
virtual IAsyncOperation<IBuffer ^> ^ SendControlInTransferAsync(UsbSetupPacket ^ setupPacket, IBuffer ^ buffer) = SendControlInTransferAsync;
/// [Windows.Foundation.Metadata.Overload("SendControlInTransferAsync")]
IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket const& setupPacket, IBuffer const& buffer);
[Windows.Foundation.Metadata.Overload("SendControlInTransferAsync")]
public IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket setupPacket, IBuffer buffer);
function sendControlInTransferAsync(setupPacket, buffer)
Public Function SendControlInTransferAsync (setupPacket As UsbSetupPacket, buffer As IBuffer) As IAsyncOperation(Of IBuffer)
Parameters
- setupPacket
- UsbSetupPacket
A UsbSetupPacket object that contains the setup packet for the control transfer.
- buffer
- IBuffer
A caller-supplied buffer that contains transfer data.
Returns
Returns an IAsyncOperation(IBuffer) object that returns the results of the operation.
- Attributes