controlTransfer method

Future<TransferResultInfo> controlTransfer(
  1. ConnectionHandle handle,
  2. ControlTransferInfo transferInfo
)

Performs a control transfer on the specified device.

Control transfers refer to either the device, an interface or an endpoint. Transfers to an interface or endpoint require the interface to be claimed.

|handle|: An open connection to the device.

Implementation

Future<TransferResultInfo> controlTransfer(
  ConnectionHandle handle,
  ControlTransferInfo transferInfo,
) async {
  var $res = await $js.chrome.usb
      .controlTransfer(
        handle.toJS,
        transferInfo.toJS,
      )
      .toDart;
  return TransferResultInfo.fromJS($res);
}