]> sigrok.org Git - libsigrok.git/commit
serial: introduce "has receive data" query
authorGerhard Sittig <redacted>
Sun, 3 Jun 2018 10:17:09 +0000 (12:17 +0200)
committerUwe Hermann <redacted>
Sun, 2 Jun 2019 18:39:02 +0000 (20:39 +0200)
commit8c3df6e5cd3d23bf01807e6296f7b7a9f8475902
tree7e21d906cce4fec58890fe2f508e955b6bf994d9
parentae4c1fb6375473169a92bd227aecfe88a311caa0
serial: introduce "has receive data" query

Add a serial_has_receive_data() routine to the serial layer's API which
returns the number of (known to be) available RX data bytes. Implement
support in the libserialport specific code.
src/libsigrok-internal.h
src/serial.c
src/serial_libsp.c