bulkTransferOut method

  1. @override
Future<int> bulkTransferOut(
  1. UsbEndpoint endpoint,
  2. Uint8List data,
  3. int timeout
)

Implementation

@override
Future<int> bulkTransferOut(
    UsbEndpoint endpoint, Uint8List data, int timeout) async {
  assert(endpoint.direction == UsbEndpoint.DIRECTION_OUT,
      'Endpoint\'s direction should be out');

  return await _channel.invokeMethod('bulkTransferOut', {
    'endpoint': endpoint.toMap(),
    'data': data,
    'timeout': timeout,
  });
}