transferIn method

Future<USBInTransferResult> transferIn(
  1. int endpointNumber,
  2. int packetSize
)

Implementation

Future<USBInTransferResult> transferIn(
  int endpointNumber,
  int packetSize,
) async {
  if (!opened) {
    throw Exception('Device is not open');
  }
  try {
    final result = await _transferIn(endpointNumber, packetSize).toDart;
    return result;
  } catch (e) {
    throw Exception('TransferIn failed: $e');
  }
}