Lines Matching full:usb
7 Script to capture tracing data with USB backend.
10 import usb.core
11 import usb.util
21 help="usb device vendor id")
23 help="usb device product id")
43 usb_device = usb.core.find(idVendor=vendor_id, idProduct=product_id)
53 except usb.core.USBError as e:
60 except usb.core.USBError as e:
67 read_endpoint = usb.util.find_descriptor(interface, custom_match = \
69 usb.util.endpoint_direction( \
71 usb.util.ENDPOINT_IN)
74 write_endpoint = usb.util.find_descriptor(interface, custom_match = \
76 usb.util.endpoint_direction( \
78 usb.util.ENDPOINT_OUT)
80 usb.util.claim_interface(usb_device, interface)
86 buff = usb.util.create_buffer(8192)
91 buff = usb.util.create_buffer(8192)
96 usb.util.release_interface(usb_device, interface)