From 38d32464973b828bf327b9271ef4b0437d85c9f2 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 2 Apr 2014 09:37:29 +0200 Subject: [PATCH] Various drivers: Expose SR_CONF_TRIGGER_TYPE. Without this, sigrok-cli --show (for example) will not show the supported trigger types. --- hardware/asix-sigma/asix-sigma.c | 1 + hardware/chronovu-la/api.c | 1 + hardware/link-mso19/api.c | 1 + hardware/zeroplus-logic-cube/api.c | 1 + 4 files changed, 4 insertions(+) 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,