]> sigrok.org Git - libsigrok.git/commitdiff
Various drivers: Expose SR_CONF_TRIGGER_TYPE.
authorUwe Hermann <redacted>
Wed, 2 Apr 2014 07:37:29 +0000 (09:37 +0200)
committerUwe Hermann <redacted>
Wed, 2 Apr 2014 15:20:10 +0000 (17:20 +0200)
Without this, sigrok-cli --show (for example) will not show the
supported trigger types.

hardware/asix-sigma/asix-sigma.c
hardware/chronovu-la/api.c
hardware/link-mso19/api.c
hardware/zeroplus-logic-cube/api.c

index 5ec308374c54b4bf0b352c0941f0f7c0e82982c3..24d099c13d2e8b4a447f05fad11063bbcbe4f217 100644 (file)
@@ -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,
 };
index 292da5a4d3d8729ad4a27fe7edf6a95e356e4713..d258d370054a4745b6d1db70c818faf3b28a86e0 100644 (file)
@@ -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. */
 };
index 80f48f413814a71e504af7f99549e4c3b33bba19..45453efdf3f49571dce0545643d2734d9ba3f724 100644 (file)
@@ -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,
index a7fdc8f3785b068ace3f8e4047c2c097c66b638f..34213e7a616c21c4d050bae6476900af4a32db9f 100644 (file)
@@ -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,