MCPcopy Index your code
hub / github.com/RizeCrime/linuxblaster_control / recv

Function recv

testing/test_usb.py:22–26  ·  view source on GitHub ↗
(timeout=1000)

Source from the content-addressed store, hash-verified

20 dev.ctrl_transfer(0x21, 0x09, 0x200, 0x04, bytes(data) + bytes(64 - len(data)))
21
22def recv(timeout=1000):
23 try:
24 return dev.read(0x85, 64, timeout=timeout).tobytes()
25 except usb.core.USBTimeoutError:
26 return None
27
28def recv_all(timeout=500):
29 """Drain all pending responses"""

Callers 2

recv_allFunction · 0.70
send_recvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected