From: Uwe Hermann Date: Tue, 20 Mar 2012 17:09:18 +0000 (+0100) Subject: sr/cli: s/patternmode/pattern/ in a few places. X-Git-Tag: libsigrok-0.1.0~38 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eb0a373189e0e1f346b6807b692c2ea0bdaa57b8;p=libsigrok.git sr/cli: s/patternmode/pattern/ in a few places. --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index a5201fb8..2d3a4618 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -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; } diff --git a/hwdriver.c b/hwdriver.c index faeda45c..cbe3f236 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -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}, }; diff --git a/sigrok.h b/sigrok.h index 6fb84e2f..35874385 100644 --- 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, }; /*