Revision ad55e25a host/lib/transport/libusb1_control.cpp
| b/host/lib/transport/libusb1_control.cpp | ||
|---|---|---|
| 48 | 48 |
{
|
| 49 | 49 |
libusb::init(&_ctx, libusb_debug_level); |
| 50 | 50 |
|
| 51 |
// Find and open the libusb_device corresponding to the |
|
| 52 |
// given handle and return the libusb_device_handle |
|
| 53 |
// that can be used for I/O purposes. |
|
| 51 | 54 |
_dev_handle = libusb::open_device(_ctx, handle); |
| 52 | 55 |
|
| 56 |
// Open USB interfaces for control using magic value |
|
| 57 |
// IN interface: 2 |
|
| 58 |
// OUT interface: 1 |
|
| 59 |
// Control interface: 0 |
|
| 53 | 60 |
libusb::open_interface(_dev_handle, 0); |
| 54 | 61 |
} |
| 55 | 62 |
|
Also available in: Unified diff