UsbDevice.SendControlInTransferAsync 方法

定义

重载

SendControlInTransferAsync(UsbSetupPacket)

启动从设备的默认控制终结点读取数据的零长度 USB 控制传输。

SendControlInTransferAsync(UsbSetupPacket, IBuffer)

启动 USB 控制传输,以从设备的默认控制终结点接收数据。

SendControlInTransferAsync(UsbSetupPacket)

启动从设备的默认控制终结点读取数据的零长度 USB 控制传输。

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)

参数

setupPacket
UsbSetupPacket

一个 UsbSetupPacket 对象,其中包含用于控制传输的设置数据包。

返回

返回 IAsyncOperation (IBuffer) 对象,该对象返回操作的结果。

属性

另请参阅

适用于

SendControlInTransferAsync(UsbSetupPacket, IBuffer)

启动 USB 控制传输,以从设备的默认控制终结点接收数据。

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)

参数

setupPacket
UsbSetupPacket

一个 UsbSetupPacket 对象,其中包含用于控制传输的设置数据包。

buffer
IBuffer

包含传输数据的调用方提供的缓冲区。

返回

返回 IAsyncOperation (IBuffer) 对象,该对象返回操作的结果。

属性

适用于