libusb_control_transfer method

int libusb_control_transfer(
  1. Pointer<libusb_device_handle> dev_handle,
  2. int request_type,
  3. int bRequest,
  4. int wValue,
  5. int wIndex,
  6. Pointer<Uint8> data,
  7. int wLength,
  8. int timeout,
)

Implementation

int libusb_control_transfer(
  ffi.Pointer<libusb_device_handle> dev_handle,
  int request_type,
  int bRequest,
  int wValue,
  int wIndex,
  ffi.Pointer<ffi.Uint8> data,
  int wLength,
  int timeout,
) {
  return (_libusb_control_transfer ??= _dylib.lookupFunction<
      _c_libusb_control_transfer,
      _dart_libusb_control_transfer>('libusb_control_transfer'))(
    dev_handle,
    request_type,
    bRequest,
    wValue,
    wIndex,
    data,
    wLength,
    timeout,
  );
}