transferIn method
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');
}
}