controlTransferOut method

  1. @override
Future<USBOutTransferResult> controlTransferOut(
  1. dynamic device,
  2. SetupParam setup, {
  3. dynamic data,
})
override

Sends a specified control transfer to the device. Returns the Future resolved with the transfer status and the number of bytes written

Implementation

@override
Future<USBOutTransferResult> controlTransferOut(
    dynamic device, SetupParam setup,
    {dynamic data}) {
  return methodChannel.invokeMethod<bool>('controlTransferOut', [
    device,
    setup,
    data
  ]).then<USBOutTransferResult>((dynamic result) => result);
}