Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RizeCrime/linuxblaster_control
/ send
Function
send
testing/test_usb.py:19–20 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
17
usb.util.claim_interface(dev, 4)
18
19
def
send(data):
20
dev.ctrl_transfer(0x21, 0x09, 0x200, 0x04, bytes(data) + bytes(64 - len(data)))
21
22
def
recv(timeout=1000):
23
try
:
Callers
2
send_recv
Function · 0.70
test_usb.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected