From: Uwe Hermann Date: Wed, 2 Apr 2014 07:37:29 +0000 (+0200) Subject: Various drivers: Expose SR_CONF_TRIGGER_TYPE. X-Git-Tag: libsigrok-0.3.0~92 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=38d32464973b828bf327b9271ef4b0437d85c9f2;p=libsigrok.git Various drivers: Expose SR_CONF_TRIGGER_TYPE. Without this, sigrok-cli --show (for example) will not show the supported trigger types. --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 5ec30837..24d099c1 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -71,6 +71,7 @@ static const char *channel_names[NUM_CHANNELS + 1] = { static const int32_t hwcaps[] = { SR_CONF_LOGIC_ANALYZER, SR_CONF_SAMPLERATE, + SR_CONF_TRIGGER_TYPE, SR_CONF_CAPTURE_RATIO, SR_CONF_LIMIT_MSEC, }; diff --git a/hardware/chronovu-la/api.c b/hardware/chronovu-la/api.c index 292da5a4..d258d370 100644 --- a/hardware/chronovu-la/api.c +++ b/hardware/chronovu-la/api.c @@ -26,6 +26,7 @@ static struct sr_dev_driver *di = &chronovu_la_driver_info; static const int32_t hwcaps[] = { SR_CONF_LOGIC_ANALYZER, SR_CONF_SAMPLERATE, + SR_CONF_TRIGGER_TYPE, SR_CONF_LIMIT_MSEC, /* TODO: Not yet implemented. */ SR_CONF_LIMIT_SAMPLES, /* TODO: Not yet implemented. */ }; diff --git a/hardware/link-mso19/api.c b/hardware/link-mso19/api.c index 80f48f41..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, diff --git a/hardware/zeroplus-logic-cube/api.c b/hardware/zeroplus-logic-cube/api.c index a7fdc8f3..34213e7a 100644 --- a/hardware/zeroplus-logic-cube/api.c +++ b/hardware/zeroplus-logic-cube/api.c @@ -56,6 +56,7 @@ static const struct zp_model zeroplus_models[] = { static const int32_t hwcaps[] = { SR_CONF_LOGIC_ANALYZER, SR_CONF_SAMPLERATE, + SR_CONF_TRIGGER_TYPE, SR_CONF_CAPTURE_RATIO, SR_CONF_VOLTAGE_THRESHOLD, SR_CONF_LIMIT_SAMPLES,