]> sigrok.org Git - libsigrok.git/commitdiff
sr/cli: s/patternmode/pattern/ in a few places.
authorUwe Hermann <redacted>
Tue, 20 Mar 2012 17:09:18 +0000 (18:09 +0100)
committerUwe Hermann <redacted>
Wed, 21 Mar 2012 22:20:07 +0000 (23:20 +0100)
hardware/demo/demo.c
hwdriver.c
sigrok.h

index a5201fb836ebbf1c76da38da14ab13aa5948d5b7..2d3a4618679e2a24001ae66e9c073e34dc3a8185 100644 (file)
@@ -210,7 +210,7 @@ static void *hw_dev_info_get(int dev_index, int dev_info_id)
        case SR_DI_CUR_SAMPLERATE:
                info = &cur_samplerate;
                break;
-       case SR_DI_PATTERNMODES:
+       case SR_DI_PATTERNS:
                info = &pattern_strings;
                break;
        }
index faeda45cfa236ff5e26d0b1cb5be8bd8f0757228..cbe3f23610d881a43ad324562bb6551b60d079b2 100644 (file)
@@ -34,7 +34,7 @@
 SR_API struct sr_hwcap_option sr_hwcap_options[] = {
        {SR_HWCAP_SAMPLERATE, SR_T_UINT64, "Sample rate", "samplerate"},
        {SR_HWCAP_CAPTURE_RATIO, SR_T_UINT64, "Pre-trigger capture ratio", "captureratio"},
-       {SR_HWCAP_PATTERN_MODE, SR_T_CHAR, "Pattern generator mode", "patternmode"},
+       {SR_HWCAP_PATTERN_MODE, SR_T_CHAR, "Pattern generator mode", "pattern"},
        {SR_HWCAP_RLE, SR_T_BOOL, "Run Length Encoding", "rle"},
        {0, 0, NULL, NULL},
 };
index 6fb84e2fa084aa5d814ce9bd007fab051e1ffef8..358743851e2ac57125f03684d662368b6307ea23 100644 (file)
--- a/sigrok.h
+++ b/sigrok.h
@@ -324,8 +324,8 @@ enum {
        SR_DI_TRIGGER_TYPES,
        /* The currently set samplerate in Hz (uint64_t) */
        SR_DI_CUR_SAMPLERATE,
-       /* Supported pattern generator modes */
-       SR_DI_PATTERNMODES,
+       /* Supported patterns (in pattern generator mode) */
+       SR_DI_PATTERNS,
 };
 
 /*