From 3b316fdca049e3c2b5641be6e3341afcb46d613f Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Mon, 13 Jul 2020 21:44:25 -0700 Subject: [PATCH] gwinstek-gpd: Add support for GPD-3303S. --- src/hardware/gwinstek-gpd/api.c | 10 ++++++++++ src/hardware/gwinstek-gpd/protocol.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/hardware/gwinstek-gpd/api.c b/src/hardware/gwinstek-gpd/api.c index 74064606..c59ec00f 100644 --- a/src/hardware/gwinstek-gpd/api.c +++ b/src/hardware/gwinstek-gpd/api.c @@ -60,6 +60,16 @@ static const struct gpd_model models[] = { { { 0, 30, 0.001 }, { 0, 3, 0.001 } }, }, }, + { GPD_3303S, "GPD-3303S", + CHANMODE_INDEPENDENT, + 2, + { + /* Channel 1 */ + { { 0, 32, 0.001 }, { 0, 3.2, 0.001 } }, + /* Channel 2 */ + { { 0, 32, 0.001 }, { 0, 3.2, 0.001 } }, + }, + }, }; static GSList *scan(struct sr_dev_driver *di, GSList *options) diff --git a/src/hardware/gwinstek-gpd/protocol.h b/src/hardware/gwinstek-gpd/protocol.h index 615bb24a..b518f9ba 100644 --- a/src/hardware/gwinstek-gpd/protocol.h +++ b/src/hardware/gwinstek-gpd/protocol.h @@ -29,6 +29,7 @@ enum { GPD_2303S, + GPD_3303S, }; /* Maximum number of output channels handled by this driver. */