]> sigrok.org Git - libsigrok.git/commit
serial_hid: implement serial over HID transport
authorGerhard Sittig <redacted>
Fri, 17 Mar 2017 21:39:46 +0000 (22:39 +0100)
committerUwe Hermann <redacted>
Sun, 2 Jun 2019 18:39:02 +0000 (20:39 +0200)
commitedec0436db2a73b545f5d4db0c1635d6c67ff45c
tree413b2d13401ffcc337d26ac84fff7a870ffd47e2
parent4417074c68ce998c2d666fc8a034204a1b74fc2f
serial_hid: implement serial over HID transport

Do implement the transport methods for serial communication underneath
the common layer, by communicating HID requests and payload data by
means of HIDAPI library calls.

This commit adds the common logic of serial-over-HID communication and
implements the full internal serial transport API, including reception
in the background. But it does not yet support a single HID chip (which
each run their own proprietary protocol).

The implementation works with either hidapi-libusb or hidapi-hidraw
variant of the HIDAPI library, but was only tested on Linux.
src/libsigrok-internal.h
src/serial_hid.c
src/serial_hid.h [new file with mode: 0644]