]> sigrok.org Git - libsigrok.git/commit
dcttech-usbrelay: support conn=vid.pid specs in addition to paths
authorGerhard Sittig <redacted>
Fri, 23 Jul 2021 17:50:45 +0000 (19:50 +0200)
committerGerhard Sittig <redacted>
Fri, 23 Jul 2021 17:58:46 +0000 (19:58 +0200)
commit8e5dbaf6e9940cfcc95eeb4fd6708b6fffd02acf
tree906713077afa8acd6ad5c62600b6a6eac2fb74c0
parent0498ef4e42b70e873167e2e5ff8520b692514df0
dcttech-usbrelay: support conn=vid.pid specs in addition to paths

Extend the scan code path, accept user provided conn= specs in the
"vid.pid" format. Everything else is assumed to be a hidapi compatible
"path" and may suffer from conn= parser limitations. Unfortunately the
hidapi API won't let us lookup paths from bus.addr specs which would
work when multiple cards need to be told apart.
src/hardware/dcttech-usbrelay/api.c
src/hardware/dcttech-usbrelay/protocol.h