The desire is to be able to qualify a device on the USB chain. The current structure only exposes the DevNumber, which will not uniquely identify two identical devices. The request is to expose the port number to to the programmer via the usb_device structue. The changes are as follows:
add "unsigned char portnum" to structure usb_device.
in function usb_os_find_devices(), after the call to:
add the line:
dev->portnum = req.device_info.port;
These two changes will fully meet the above requirement.
Log in to post a comment.