(interface, direction, type)
| 255 | |
| 256 | |
| 257 | def find_endpoint(interface, direction, type): |
| 258 | ep = usb_find_desc(interface, custom_match= |
| 259 | lambda e: usb.util.endpoint_direction(e.bEndpointAddress) == direction and |
| 260 | usb.util.endpoint_type(e.bmAttributes) == type |
| 261 | ) |
| 262 | return ep |
| 263 | |
| 264 | |
| 265 | class DeviceInfo(namedtuple('DeviceInfo', 'manufacturer product serial_number')): |
no outgoing calls
no test coverage detected