remote-sim host tools: Auto-discover the endpoint addresses

We now auto-discover the end-point addresses based on the interface
descriptor.  The user can also use the new "--interface" command line
argument to set a non-zero intrerface.  In combination, this should
enable support for the remote-sim functionality on the second UART
on OWHW.
This commit is contained in:
Harald Welte
2016-03-19 21:28:09 +01:00
parent 095ac6cbe2
commit 236caf68eb
6 changed files with 124 additions and 27 deletions

View File

@@ -0,0 +1,7 @@
#pragma once
#include <stdint.h>
#include <libusb.h>
int get_usb_ep_addrs(libusb_device_handle *devh, unsigned int if_num,
uint8_t *out, uint8_t *in, uint8_t *irq);