]> sigrok.org Git - libsigrok.git/blobdiff - src/serial_hid_bu86x.c
scpi-dmm: add support to get/set range on Agilent protocol using meters
[libsigrok.git] / src / serial_hid_bu86x.c
index 32fa8f216b7742f6bbdf9052123ef5b556a68ce8..c103eefa27604b99b04c063d06fe9b3d0ca72088 100644 (file)
@@ -40,9 +40,7 @@
 #include "serial_hid.h"
 #include <string.h>
 
-/** @cond PRIVATE */
 #define LOG_PREFIX "serial-bu86x"
-/** @endcond */
 
 #ifdef HAVE_SERIAL_COMM
 #ifdef HAVE_LIBHIDAPI
@@ -60,26 +58,6 @@ static const struct vid_pid_item vid_pid_items_bu86x[] = {
        ALL_ZERO
 };
 
-static int bu86x_set_params(struct sr_serial_dev_inst *serial,
-       int baudrate, int bits, int parity, int stopbits,
-       int flowcontrol, int rts, int dtr)
-{
-       /*
-        * The IR adapter's communication parameters are fixed and need
-        * not get configured. Just silently ignore the caller's spec.
-        */
-       (void)serial;
-       (void)baudrate;
-       (void)bits;
-       (void)parity;
-       (void)stopbits;
-       (void)flowcontrol;
-       (void)rts;
-       (void)dtr;
-
-       return SR_OK;
-}
-
 static int bu86x_read_bytes(struct sr_serial_dev_inst *serial,
        uint8_t *data, int space, unsigned int timeout)
 {
@@ -108,7 +86,11 @@ static struct ser_hid_chip_functions chip_bu86x = {
        .chipdesc = "Brymen BU-86X",
        .vid_pid_items = vid_pid_items_bu86x,
        .max_bytes_per_request = BU86X_MAX_BYTES_PER_REQUEST,
-       .set_params = bu86x_set_params,
+       /*
+        * The IR adapter's communication parameters are fixed and need
+        * not get configured. Just silently ignore the caller's spec.
+        */
+       .set_params = std_dummy_set_params,
        .read_bytes = bu86x_read_bytes,
        .write_bytes = bu86x_write_bytes,
 };