MCPcopy Create free account
hub / github.com/LabPy/lantz / find_interfaces

Function find_interfaces

lantz/drivers/legacy/usb.py:240–254  ·  view source on GitHub ↗

:param device: :return:

(device, **kwargs)

Source from the content-addressed store, hash-verified

238
239
240def 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
257def find_endpoint(interface, direction, type):

Callers 2

is_usbtmcFunction · 0.90
_find_interfaceMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected