MCPcopy Create free account
hub / github.com/RizeCrime/linuxblaster_control / recv

Function recv

bitmask_sniffer.py:23–27  ·  view source on GitHub ↗
(timeout=1000)

Source from the content-addressed store, hash-verified

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

Callers 2

recv_allFunction · 0.70
send_recvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected