|
From: Antão A. <ant...@gm...> - 2016-03-14 16:39:17
|
Hi all, I've been researching for a while but I'm misssing some essential parts. I already know that I need to request the user permission to access the device and then pass the respective file descriptor to libusb. I successfuly built the latest libusb source but then how do I pass in the file descriptor? I also tried to use some of the many forks that add an fd parameter to libusb_open() but then what do I pass in for the first parameter? Do I have to get it from libusb_get_device_list()? If so, how do I map the Android UsbDevice or UsbAccessory to a libusb_device? Thanks in advance, Antao |