X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Flink-mso19%2Fapi.c;h=45453efdf3f49571dce0545643d2734d9ba3f724;hb=5a7e62211c4714ea2aac35baac10cf448373d4f5;hp=9e0273aec6b0e80b4aa17c3fa8156016137f93f6;hpb=56d0d24535700fb53e47a25ad5c73d34697695fa;p=libsigrok.git diff --git a/hardware/link-mso19/api.c b/hardware/link-mso19/api.c index 9e0273ae..45453efd 100644 --- a/hardware/link-mso19/api.c +++ b/hardware/link-mso19/api.c @@ -25,6 +25,7 @@ static const int32_t hwcaps[] = { SR_CONF_OSCILLOSCOPE, SR_CONF_LOGIC_ANALYZER, SR_CONF_SAMPLERATE, + SR_CONF_TRIGGER_TYPE, SR_CONF_TRIGGER_SLOPE, SR_CONF_HORIZ_TRIGGERPOS, // SR_CONF_CAPTURE_RATIO, @@ -37,7 +38,7 @@ static const int32_t hwcaps[] = { * * See also: http://www.linkinstruments.com/images/mso19_1113.gif */ -SR_PRIV const char *mso19_channel_names[NUM_PROBES + 1] = { +SR_PRIV const char *mso19_channel_names[NUM_CHANNELS + 1] = { /* Note: DSO needs to be first. */ "DSO", "0", "1", "2", "3", "4", "5", "6", "7", NULL, }; @@ -101,7 +102,7 @@ static GSList *scan(GSList *options) GSList *l; struct sr_config *src; struct udev *udev; - int ptype; + int chtype; for (l = options; l; l = l->next) { src = l->data; @@ -216,10 +217,10 @@ static GSList *scan(GSList *options) sdi->driver = di; sdi->priv = devc; - for (i = 0; i < NUM_PROBES; i++) { + for (i = 0; i < NUM_CHANNELS; i++) { struct sr_channel *ch; - ptype = (i == 0) ? SR_PROBE_ANALOG : SR_PROBE_LOGIC; - if (!(ch = sr_channel_new(i, ptype, TRUE, + chtype = (i == 0) ? SR_CHANNEL_ANALOG : SR_CHANNEL_LOGIC; + if (!(ch = sr_channel_new(i, chtype, TRUE, mso19_channel_names[i]))) return 0; sdi->channels = g_slist_append(sdi->channels, ch);