diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-04-13 19:57:43 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-04-13 22:00:26 +0200 |
commit | 6a15597a7b3f901b566b7bfc8c484a14e0fb6a11 (patch) | |
tree | ee7241fa022b1b77f61affd373ff8baddb92d404 /decoders/guess_bitrate | |
parent | 486858f7208207fb12a281640c5f6e9be4e4626f (diff) | |
download | libsigrokdecode-6a15597a7b3f901b566b7bfc8c484a14e0fb6a11.tar.gz libsigrokdecode-6a15597a7b3f901b566b7bfc8c484a14e0fb6a11.zip |
Rename 'probe' to 'channel' everywhere.
Variables of type 'struct srd_channel *' are consistently named 'pdch' to
make them easily distinguishable from libsigrok's 'struct sr_channel *'
variables that are consistently named 'ch'.
Diffstat (limited to 'decoders/guess_bitrate')
-rw-r--r-- | decoders/guess_bitrate/__init__.py | 6 | ||||
-rw-r--r-- | decoders/guess_bitrate/pd.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/decoders/guess_bitrate/__init__.py b/decoders/guess_bitrate/__init__.py index 86f9466..9c7e6a4 100644 --- a/decoders/guess_bitrate/__init__.py +++ b/decoders/guess_bitrate/__init__.py @@ -20,7 +20,7 @@ ''' This protocol decoder tries to guess the bitrate / baudrate of the -communication on the specified probe. Typically this will be used to +communication on the specified channel. Typically this will be used to guess / detect the baudrate used in a UART communication snippet, but it could also be used to guess bitrates of certain other protocols or buses. @@ -29,9 +29,9 @@ and that there are various cases in practice where the detection of the bitrate or baudrate will not necessarily have the expected result. The precision of the estimated bitrate / baudrate will also depend on the -samplerate used to sample the respective probe. For good results it is +samplerate used to sample the respective channel. For good results it is recommended to use a logic analyzer samplerate that is much higher than -the expected bitrate/baudrate that might be used on the probe. +the expected bitrate/baudrate that might be used on the channel. ''' from .pd import * diff --git a/decoders/guess_bitrate/pd.py b/decoders/guess_bitrate/pd.py index 84cf6a1..d2d7c39 100644 --- a/decoders/guess_bitrate/pd.py +++ b/decoders/guess_bitrate/pd.py @@ -29,7 +29,7 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['logic'] outputs = ['guess_bitrate'] - probes = ( + channels = ( {'id': 'data', 'name': 'Data', 'desc': 'Data line'}, ) annotations = ( |