:param device: :return:
(device, **kwargs)
| 238 | |
| 239 | |
| 240 | def find_interfaces(device, **kwargs): |
| 241 | """ |
| 242 | :param device: |
| 243 | :return: |
| 244 | """ |
| 245 | interfaces = [] |
| 246 | try: |
| 247 | for cfg in device: |
| 248 | try: |
| 249 | interfaces.extend(usb_find_desc(cfg, find_all=True, **kwargs)) |
| 250 | except: |
| 251 | pass |
| 252 | except: |
| 253 | pass |
| 254 | return interfaces |
| 255 | |
| 256 | |
| 257 | def find_endpoint(interface, direction, type): |
no outgoing calls
no test coverage detected