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

Function find_endpoint

lantz/drivers/legacy/usb.py:257–262  ·  view source on GitHub ↗
(interface, direction, type)

Source from the content-addressed store, hash-verified

255
256
257def 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
265class DeviceInfo(namedtuple('DeviceInfo', 'manufacturer product serial_number')):

Callers 2

__init__Method · 0.90
_find_endpointsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected