]> sigrok.org Git - libsigrok.git/log
libsigrok.git
7 years agoBindings: Make Ruby bindings build with Ruby 2.0
Marcus Comstedt [Wed, 16 Nov 2016 15:42:37 +0000 (16:42 +0100)]
Bindings: Make Ruby bindings build with Ruby 2.0

The alias "rb_ary_new_from_args" for "rb_ary_new3" was not introduced
until in Ruby 2.1.

7 years agoderee-de5000: add driver item for the Peaktech 2170 model
Gerhard Sittig [Sun, 6 Nov 2016 21:20:05 +0000 (22:20 +0100)]
deree-de5000: add driver item for the Peaktech 2170 model

Register another driver for the Peaktech 2170 LCR meter, which is
based on the ES51919/ES51920 chipset, too.

7 years agoderee-de5000: prepare to add more ES51919 based LCR meters
Gerhard Sittig [Sun, 6 Nov 2016 21:01:37 +0000 (22:01 +0100)]
deree-de5000: prepare to add more ES51919 based LCR meters

The "deree-de5000" driver is a very thin wrapper around the ES51919
chipset. We expect more models from other vendors to use that same
support code.

Model the registration of vendor/model combinations after the serial-dmm
approach. Register the DER EE DE-5000 device as the currently only
member in a list of drivers which all use the ES51919 chipset (no model
specific routines are registered in the absence of support for other LCR
meter chips).

This commit does not change the driver's behaviour nor the set of
supported hardware. It prepares the addition of more drivers in the
future.

7 years agoserial-dmm: Expand a code comment.
Uwe Hermann [Sun, 6 Nov 2016 13:45:08 +0000 (14:45 +0100)]
serial-dmm: Expand a code comment.

7 years agoserial-dmm: comment nit on the UART bitrate for ES519xx chips
Gerhard Sittig [Sat, 5 Nov 2016 17:01:43 +0000 (18:01 +0100)]
serial-dmm: comment nit on the UART bitrate for ES519xx chips

Factor out identical comments on the UART bitrate of ES519xx based
multimeters. These probably got copied from the first item as of 2012
when new items were added in 2014 (the added devices were from the
same vendor and rebadged).

Expand on the fact that the bitrate still is within spec, and does not
harm at all. Strictly speaking the comment could get dropped.

7 years agoserial-dmm: sort the list of device drivers (part 12, vc870)
Gerhard Sittig [Sat, 5 Nov 2016 16:54:29 +0000 (17:54 +0100)]
serial-dmm: sort the list of device drivers (part 12, vc870)

This commit puts 'vc870' meters into one group. Which completes the
series of commits which sort the list of supported serial DMMs.

7 years agoserial-dmm: sort the list of device drivers (part 11, sort ut71x)
Gerhard Sittig [Sat, 5 Nov 2016 16:35:36 +0000 (17:35 +0100)]
serial-dmm: sort the list of device drivers (part 11, sort ut71x)

This commit sorts items in the 'ut71x' group. This is separated from
collecting the group to reduce the diff size and simplify verification.

7 years agoserial-dmm: sort the list of device drivers (part 10, group ut71x)
Gerhard Sittig [Sat, 5 Nov 2016 16:32:53 +0000 (17:32 +0100)]
serial-dmm: sort the list of device drivers (part 10, group ut71x)

This commit puts 'ut71x' meters into one group. Item order is kept to
reduce the diff size and simplify verification.

7 years agoserial-dmm: sort the list of device drivers (part 9, rs9lcd)
Gerhard Sittig [Sat, 5 Nov 2016 16:29:35 +0000 (17:29 +0100)]
serial-dmm: sort the list of device drivers (part 9, rs9lcd)

This commit puts 'rs9lcd' meters into one group.

7 years agoserial-dmm: sort the list of device drivers (part 8, sort metex14)
Gerhard Sittig [Sat, 5 Nov 2016 16:01:39 +0000 (17:01 +0100)]
serial-dmm: sort the list of device drivers (part 8, sort metex14)

This commit sorts items in the 'metex14' group. This is separated from
collecting the group to reduce the diff size and simplify verification.

7 years agoserial-dmm: sort the list of device drivers (part 7, group metex14)
Gerhard Sittig [Sat, 5 Nov 2016 15:55:45 +0000 (16:55 +0100)]
serial-dmm: sort the list of device drivers (part 7, group metex14)

This commit puts 'metex14' meters into one group. Item order is kept to
reduce the diff size and simplify verification.

7 years agoserial-dmm: sort the list of device drivers (part 6, fs9922)
Gerhard Sittig [Sat, 5 Nov 2016 15:52:27 +0000 (16:52 +0100)]
serial-dmm: sort the list of device drivers (part 6, fs9922)

This commit puts 'fs9922' meters into one group.

7 years agoserial-dmm: sort the list of device drivers (part 5, sort fs9721)
Gerhard Sittig [Sat, 5 Nov 2016 16:23:34 +0000 (17:23 +0100)]
serial-dmm: sort the list of device drivers (part 5, sort fs9721)

This commit sorts items in the 'fs9721' group. This is separated from
collecting the group to reduce the diff size and simplify verification.

7 years agoserial-dmm: sort the list of device drivers (part 4, group fs9721)
Gerhard Sittig [Sat, 5 Nov 2016 16:12:43 +0000 (17:12 +0100)]
serial-dmm: sort the list of device drivers (part 4, group fs9721)

This commit puts 'fs9721' meters into one group. Item order is kept to
reduce the diff size and simplify verification.

7 years agoserial-dmm: sort the list of device drivers (part 3, es519xx)
Gerhard Sittig [Sat, 5 Nov 2016 15:40:35 +0000 (16:40 +0100)]
serial-dmm: sort the list of device drivers (part 3, es519xx)

This commit puts 'es519xx' meters into one group.

7 years agoserial-dmm: sort the list of device drivers (part 2, dtm0660)
Gerhard Sittig [Sat, 5 Nov 2016 15:31:11 +0000 (16:31 +0100)]
serial-dmm: sort the list of device drivers (part 2, dtm0660)

This commit puts 'dtm0660' meters into one group.

7 years agoserial-dmm: sort the list of device drivers (part 1, bm25x)
Gerhard Sittig [Sat, 5 Nov 2016 15:19:58 +0000 (16:19 +0100)]
serial-dmm: sort the list of device drivers (part 1, bm25x)

The previous implementation seems to have added drivers in their "order
of appearance". Start sorting the rather long list, to simplify several
tasks: Add new entries as more drivers get written, find existing items
during research, identify and compare similar models during maintenance.
As a byproduct, there will be no doubt about where to put things during
future work :) and duplicates will be spotted immediately.

This commit puts 'bm25x' meters into one group. And comments on the sort
order and motivation for sorting the table.

7 years agoes51919 lcr: unbreak channel setup after successful detection
Gerhard Sittig [Tue, 18 Oct 2016 18:35:23 +0000 (20:35 +0200)]
es51919 lcr: unbreak channel setup after successful detection

Commit 6bcb3ee8763bb introduced initial support for the Cyrustek ES51919
chipset. Its setup_channels() routine used to init a variable to assume
failure, then a loop added channels and changed the value to success.

Commit 5e23fcab889c6 changed channel setup to never fail, but kept the
initialization with an error code. Which prevented the operation of
successfully detected LCR meters.

Remove the no longer needed variable, instead always return success from
an operation which cannot fail.

Fixes: 5e23fcab889c6 "Simplify channel creation."
Signed-off-by: Gerhard Sittig <redacted>
7 years agoserial-dmm: add support for Peaktech-3330 (based on FS9721)
Gerhard Sittig [Wed, 12 Oct 2016 10:10:04 +0000 (12:10 +0200)]
serial-dmm: add support for Peaktech-3330 (based on FS9721)

Add another DMM entry for Peaktech-3330, which is based on the FS9721
chipset. Support was tested with the CP210x based USB cable.

Signed-off-by: Gerhard Sittig <redacted>
7 years agooutput/ascii: add support for user configurable character set
Gerhard Sittig [Sun, 16 Oct 2016 16:25:23 +0000 (18:25 +0200)]
output/ascii: add support for user configurable character set

Since tastes and requirements might differ, introduce support for a
user specified character set in the construction of ASCII art graphs
of signal levels. The syntax is "charset=<low><high>[<fall><rise>]",
the default remains backwards compatible with existing consumers.

In comparison to assuming a fixed character set, this change addresses
several distinct aspects:

Users can adjust the output for "higher visual contrast", or "straight
lines" instead of dotted patterns, or "increased difference in height"
for low and high signal levels, or "filled" (block like, "wall of text")
appearance of periods with high levels. User adjustable characters are
needed, as no single fixed set can satisfy the differing expectations.
Perception of the output heavily depends on specific terminals and fonts
in use.

Then there is the issue of levels versus edges, and how their timing
relates. By default edges are drawn at a point in time where the signal
was sampled and was deteremined to already _have_ changed and have
settled to the new level, which means that the position of edges in the
resulting graph might be off by up to one sample period. Strictly
speaking, the available set of samples only contains levels, and does
not hint where exactly an edge might have occured. Though this might be
considered rather nitpicky, representing the graph without edges does
better reflect the input data, and might simplify postprocessing.

Compare the previously only supported format (still the default, -O ascii):

  1:...................................................../""""""""""""""""""""
  1:""""""""""""""""""""""""""""""""\.........................................
  1:..........................................................................

to those example alternatives:

  $ sigrok-cli -i file.sr -O ascii:charset=_\"\\/
  1:_____________________________________________________/""""""""""""""""""""
  1:""""""""""""""""""""""""""""""""\_________________________________________
  1:__________________________________________________________________________

  $ sigrok-cli -i file.sr -O ascii:charset=_\"
  1:_____________________________________________________"""""""""""""""""""""
  1:""""""""""""""""""""""""""""""""__________________________________________
  1:__________________________________________________________________________

  $ sigrok-cli -i file.sr -O ascii:charset=_^
  1:_____________________________________________________^^^^^^^^^^^^^^^^^^^^^
  1:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^__________________________________________
  1:__________________________________________________________________________

  $ sigrok-cli -i file.sr -O ascii:charset=_M
  1:_____________________________________________________MMMMMMMMMMMMMMMMMMMMM
  1:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM__________________________________________
  1:__________________________________________________________________________

  $ sigrok-cli -i file.sr -O ascii:charset=_X
  1:_____________________________________________________XXXXXXXXXXXXXXXXXXXXX
  1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX__________________________________________
  1:__________________________________________________________________________

Signed-off-by: Gerhard Sittig <redacted>
7 years agoudev: Add comment about Rocktech BM102.
Uwe Hermann [Wed, 2 Nov 2016 18:09:22 +0000 (19:09 +0100)]
udev: Add comment about Rocktech BM102.

7 years agoudev: Add DreamSourceLab DScope VID/PID.
Uwe Hermann [Wed, 2 Nov 2016 18:08:57 +0000 (19:08 +0100)]
udev: Add DreamSourceLab DScope VID/PID.

7 years agoudev: Update for new post-firmware Hantek 6022BE VID/PID.
Uwe Hermann [Mon, 31 Oct 2016 14:30:12 +0000 (15:30 +0100)]
udev: Update for new post-firmware Hantek 6022BE VID/PID.

7 years agohantek-6xxx: Add "fx2lafw-" prefix to the firmware files.
Uwe Hermann [Mon, 31 Oct 2016 13:42:29 +0000 (14:42 +0100)]
hantek-6xxx: Add "fx2lafw-" prefix to the firmware files.

7 years agohantek-6xxx: Update driver to use the USB product version field.
Uwe Hermann [Wed, 12 Oct 2016 20:33:19 +0000 (22:33 +0200)]
hantek-6xxx: Update driver to use the USB product version field.

We now require the use of the latest fx2lafw firmware which uses the
same USB VID/PID (1D50:608E) for the Hantek 6022BE and the variants
and rebadges of that device (e.g. the SainSmart DDS120).

The variants can be distinguished via the USB product version field.

7 years agoagilent-dmm: style improvement
Aurelien Jacobs [Mon, 17 Oct 2016 21:15:51 +0000 (23:15 +0200)]
agilent-dmm: style improvement

7 years agoagilent-dmm: add support for Log-* data_source for U128x
Aurelien Jacobs [Fri, 14 Oct 2016 20:52:17 +0000 (22:52 +0200)]
agilent-dmm: add support for Log-* data_source for U128x

7 years agoagilent-dmm: rework job management
Aurelien Jacobs [Thu, 15 Sep 2016 16:19:49 +0000 (18:19 +0200)]
agilent-dmm: rework job management

This allows much faster and configurable sampling rate, and faster
reaction to function switch.
This also gives a more repeatable job ordering and more reliable
query/reply association.

7 years agoagilent-dmm: prepare config handling to easily receive more options
Aurelien Jacobs [Thu, 15 Sep 2016 16:14:54 +0000 (18:14 +0200)]
agilent-dmm: prepare config handling to easily receive more options

7 years agoanalog: use SI prefix only with units that accept SI prefixes
Aurelien Jacobs [Tue, 13 Sep 2016 15:57:07 +0000 (17:57 +0200)]
analog: use SI prefix only with units that accept SI prefixes

7 years agoagilent-dmm: fix handling of continuity mode for U128x
Aurelien Jacobs [Tue, 13 Sep 2016 12:37:30 +0000 (14:37 +0200)]
agilent-dmm: fix handling of continuity mode for U128x

7 years agoagilent-dmm: add support for pulse width and duty cycle on U128x
Aurelien Jacobs [Tue, 13 Sep 2016 12:23:03 +0000 (14:23 +0200)]
agilent-dmm: add support for pulse width and duty cycle on U128x

7 years agoanalog: use correct unit for dBm/dBV
Aurelien Jacobs [Sun, 11 Sep 2016 17:18:19 +0000 (19:18 +0200)]
analog: use correct unit for dBm/dBV

7 years agoagilent-dmm: add support for dBm/dBV modes
Aurelien Jacobs [Sun, 11 Sep 2016 17:17:34 +0000 (19:17 +0200)]
agilent-dmm: add support for dBm/dBV modes

7 years agoagilent-dmm: add support for reading secondary display and temperature
Aurelien Jacobs [Sun, 11 Sep 2016 16:56:52 +0000 (18:56 +0200)]
agilent-dmm: add support for reading secondary display and temperature

7 years agotests: relax the "version text" length check, accept longer strings
Gerhard Sittig [Sun, 16 Oct 2016 16:25:22 +0000 (18:25 +0200)]
tests: relax the "version text" length check, accept longer strings

The version text length check fails for git setups that use more digits
in abbreviated hashes, as is recommended by e.g. the Linux kernel project.

Raise the upper limit for acceptable version strings, and add comments
on how the limits were determined. The test still might fail in setups
of slightly different configuration, but now it's easier to see why the
test failed, and how to adjust the test.

Signed-off-by: Gerhard Sittig <redacted>
7 years agoasix-sigma: fix buffer length check in register write helper
Gerhard Sittig [Sun, 16 Oct 2016 16:25:21 +0000 (18:25 +0200)]
asix-sigma: fix buffer length check in register write helper

Fix the array size check in the sigma_write_register() routine. The
'len' parameter specifies the number of bytes to write, while the 'buf'
array holds one nibble per array item.

The previous implementation (commit e8686e3ae36c1) switched to a
constant size and made the buffer large enough so that no existing
request would exceed the buffer, fixing an overflow that was present
before that commit. But the most recent size check was incomplete and
might erroneously succeed for larger amounts of write data.

It's assumed that the issue which gets addressed here never occured in
practice. The constant-size buffer could hold up to 39 bytes of input
data in their transport representation, while the largest data that was
passed to the write routine is six bytes (trigger LUT params).

Fixes: e8686e3ae36c1 "asix-sigma: Avoid use of variable length arrays"
Signed-off-by: Gerhard Sittig <redacted>
7 years agoasix-sigma: store "limit samples" value, re-determine "limit msecs" period
Gerhard Sittig [Sun, 16 Oct 2016 16:25:20 +0000 (18:25 +0200)]
asix-sigma: store "limit samples" value, re-determine "limit msecs" period

The driver internally implements the "limit samples" feature by means of
the "limit sample period" approach. Determination of the corresponding
period of time for captures depends on the sample rate as well as the
maximum sample count, and thus needs to be re-done when either setting
changes.

Introduce a "limit_samples" variable so that the value is available when
needed later. As a byproduct the parameter can be retrieved now (get).

Add comments to the sigma_set_samplerate() routine's sections, since
quite a bit is happening there, and interacts with other locations.

Signed-off-by: Gerhard Sittig <redacted>
7 years agoasix-sigma: fix out-of-range access to the samplerates[] array
Gerhard Sittig [Sun, 16 Oct 2016 16:25:19 +0000 (18:25 +0200)]
asix-sigma: fix out-of-range access to the samplerates[] array

Commit 2c9c0df86eaf removed the sentinel from the samplerates[] array,
but did not adjust the test which checked whether a rate is listed in
the set of supported rates. This could result in an out-of-range access
beyond the array's last item.

Fix the "listed?" check after iterating the table of supported rates.
Cope with either presence or absence of a sentinel in the array.

Address some more style nits while we are here. Rename an identifier
for a local variable which unintentionally might suggest that it would
be a preprocessor macro (all-caps). Reduce redundancy in data type
references as well as in the determination of the array size.

Signed-off-by: Gerhard Sittig <redacted>
7 years agoasix-sigma: update comments in firmware download code paths
Gerhard Sittig [Sun, 16 Oct 2016 16:25:18 +0000 (18:25 +0200)]
asix-sigma: update comments in firmware download code paths

The current implementation of the ASIX Sigma firmware download contains
comments which express uncertainty. Rephrase them, no magic is involved.

Discuss the polarity of the CCLK hardware signal. Which shall eliminate
potential concerns in future reviews or maintenance.

This commit only updates comments, and does not change behaviour.

Signed-off-by: Gerhard Sittig <redacted>
7 years agoDoxyfile*: Set GENERATE_TODOLIST to NO.
Uwe Hermann [Mon, 26 Sep 2016 15:02:54 +0000 (17:02 +0200)]
Doxyfile*: Set GENERATE_TODOLIST to NO.

We don't really need or use this. Bugs/issues should go into Bugzilla.

7 years agodemo: File naming consistency changes.
Uwe Hermann [Sun, 18 Sep 2016 23:48:56 +0000 (01:48 +0200)]
demo: File naming consistency changes.

7 years agohantek-dso: File naming consistency changes.
Uwe Hermann [Sun, 18 Sep 2016 16:54:56 +0000 (18:54 +0200)]
hantek-dso: File naming consistency changes.

7 years agofluke-dmm: File naming consistency changes.
Uwe Hermann [Sun, 18 Sep 2016 16:52:53 +0000 (18:52 +0200)]
fluke-dmm: File naming consistency changes.

7 years agoagilent-dmm: File naming consistency changes.
Uwe Hermann [Sun, 18 Sep 2016 16:50:11 +0000 (18:50 +0200)]
agilent-dmm: File naming consistency changes.

7 years agoresource: Improve logging output.
Uwe Hermann [Sat, 24 Sep 2016 09:41:47 +0000 (11:41 +0200)]
resource: Improve logging output.

Don't show duplicate lines (per default) such as

  sr: resource: Failed to locate 'saleae-logic16-fx2.fw'.
  sr: resource: Failed to open resource 'saleae-logic16-fx2.fw'.

The first one is now an sr_dbg() instead of sr_err().

Also, mention that a higher loglevel will give more information as to
where the backend is looking for resources / firmware files.

This fixes bug #806.

7 years agooutput/csv: Add an option to output units for column labels.
Mike Meyer [Thu, 8 Sep 2016 16:06:33 +0000 (11:06 -0500)]
output/csv: Add an option to output units for column labels.

This change tweaks the CSV output module to change the label
setting from on/off to units/channels/off, where channels is the old
on behavior, and units uses the meaning field to generate the column
label - except for the generated Time column, which uses the label from
the X axis when it's generating gnuplot output.

7 years agorigol-ds: Add DS1074Z Plus and DS1104Z Plus.
Karsten König [Sat, 24 Sep 2016 09:02:14 +0000 (11:02 +0200)]
rigol-ds: Add DS1074Z Plus and DS1104Z Plus.

This was successfully tested on a DS1074Z Plus.

7 years agocontrib: Drop all example gnuplot scripts.
Uwe Hermann [Sun, 4 Sep 2016 16:16:40 +0000 (18:16 +0200)]
contrib: Drop all example gnuplot scripts.

These files (or at least similar ones) can now be generated by the
CSV output module.

7 years agooutput/gnuplot: Remove, obsoleted by improved CSV module.
Mike Meyer [Sat, 6 Aug 2016 21:33:28 +0000 (16:33 -0500)]
output/gnuplot: Remove, obsoleted by improved CSV module.

We no longer need a gnuplot output module, the CSV module can output
gnuplot-compatible data now (and it can also generate .gpi files).

7 years agocsv: Fix a segfault due to a g_malloc() allocating too few bytes.
Uwe Hermann [Fri, 2 Sep 2016 18:06:07 +0000 (20:06 +0200)]
csv: Fix a segfault due to a g_malloc() allocating too few bytes.

7 years agocsv: Fix a segfault when using non-hardware input.
Uwe Hermann [Fri, 2 Sep 2016 18:05:52 +0000 (20:05 +0200)]
csv: Fix a segfault when using non-hardware input.

7 years agoNew all-singing, almost all dancing, csv output module.
Mike Meyer [Fri, 5 Aug 2016 09:52:08 +0000 (04:52 -0500)]
New all-singing, almost all dancing, csv output module.

 - It now handles more than one analog value correctly - at least from the
   demo driver.
 - Add column headers from channel names.
 - Add a row dedup capability.
 - Add a sample time column.
 - Add a frame end formatting (for gnuplot).
 - Made almost all formatting controllable or at least optional.
 - Fix it so we can mix analog and digital values.
 - Add outputting a gnuplot script for the data.
 - Count actual channels, not just mine, to find end of sample.
 - Add trigger option (untested).

7 years agofluke-dmm: Fix two compiler warnings.
Uwe Hermann [Mon, 29 Aug 2016 19:29:40 +0000 (21:29 +0200)]
fluke-dmm: Fix two compiler warnings.

  src/hardware/fluke-dmm/fluke.c:312:24: warning: implicit conversion from \
  enumeration type 'enum sr_unit' to different enumeration type 'enum sr_mq' \
   [-Wenum-conversion]
          devc->mq = devc->unit = devc->mqflags = 0;
                   ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

  src/hardware/fluke-dmm/fluke.c:312:40: warning: implicit conversion from \
  enumeration type 'enum sr_mqflag' to different enumeration type 'enum \
  sr_unit' [-Wenum-conversion]
          devc->mq = devc->unit = devc->mqflags = 0;
                                ~ ~~~~~~~~~~~~~~^~~

7 years agoes51919: Fix a compiler warning.
Uwe Hermann [Mon, 29 Aug 2016 19:10:13 +0000 (21:10 +0200)]
es51919: Fix a compiler warning.

  src/lcr/es51919.c:538:73: warning: comparison of unsigned enum expression \
< 0 is always false [-Wtautological-compare]
    if ((analog->meaning->mq = parse_mq(pkt, is_secondary, pkt[2] & 0x80)) < 0)

7 years agostrutil.c: Fix a Doxygen warning.
Uwe Hermann [Mon, 29 Aug 2016 16:44:43 +0000 (18:44 +0200)]
strutil.c: Fix a Doxygen warning.

7 years agoFix various sample/time limit regressions.
Uwe Hermann [Mon, 29 Aug 2016 16:39:12 +0000 (18:39 +0200)]
Fix various sample/time limit regressions.

These were accidentally introduced when the sw_limits helpers were added.

7 years agogmc-mh-1x-2x: Shorten some code by using the ternary operator.
Uwe Hermann [Mon, 29 Aug 2016 16:01:08 +0000 (18:01 +0200)]
gmc-mh-1x-2x: Shorten some code by using the ternary operator.

7 years agoRemove some unneeded double-spaces.
Uwe Hermann [Mon, 29 Aug 2016 15:48:18 +0000 (17:48 +0200)]
Remove some unneeded double-spaces.

(also perform some other minor whitespace fixes while at it)

7 years agodevice.c: Whitespace/cosmetics and typo fixes.
Uwe Hermann [Mon, 29 Aug 2016 14:43:49 +0000 (16:43 +0200)]
device.c: Whitespace/cosmetics and typo fixes.

7 years agoanalog.c: Whitespace/cosmetics and typo fixes.
Uwe Hermann [Mon, 29 Aug 2016 14:15:00 +0000 (16:15 +0200)]
analog.c: Whitespace/cosmetics and typo fixes.

7 years agoHACKING: Prefer git pull requests over mailing list patches.
Uwe Hermann [Sun, 28 Aug 2016 18:16:31 +0000 (20:16 +0200)]
HACKING: Prefer git pull requests over mailing list patches.

Also, drop the reference to gitorious.org (no longer available).

7 years agoHave remaining drivers default to digits=2 for analog values.
Uwe Hermann [Sun, 28 Aug 2016 21:52:48 +0000 (23:52 +0200)]
Have remaining drivers default to digits=2 for analog values.

The default so far was 0, which meant there would be no significant
digits at all, yielding results that looked strange/wrong to the user.

Long-term all remaining drivers should be fixed to use the actual,
correct digits and spec_digits values according to the device's
capabilities and/or datasheet/manual. Until that is done, a default
of digits=2 is used as a temporary workaround.

This fixes the remaining parts of bug #815.

7 years agoDocument if or why sometimes digits/spec_digits is 0.
Uwe Hermann [Sun, 28 Aug 2016 21:50:33 +0000 (23:50 +0200)]
Document if or why sometimes digits/spec_digits is 0.

7 years agoappa-55ii: properly set encoding digits also for log memory reception
Aurelien Jacobs [Sun, 28 Aug 2016 20:53:04 +0000 (22:53 +0200)]
appa-55ii: properly set encoding digits also for log memory reception

7 years agoanalog: improve output readability by using SI prefix
Aurelien Jacobs [Sun, 28 Aug 2016 20:11:20 +0000 (22:11 +0200)]
analog: improve output readability by using SI prefix

7 years agogwinstek-gds-800: properly set encoding digits
Aurelien Jacobs [Wed, 24 Aug 2016 23:08:29 +0000 (01:08 +0200)]
gwinstek-gds-800: properly set encoding digits

7 years agohantek-dso: properly set encoding digits
Aurelien Jacobs [Wed, 24 Aug 2016 00:11:24 +0000 (02:11 +0200)]
hantek-dso: properly set encoding digits

7 years agohantek-6xxx: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 22:55:12 +0000 (00:55 +0200)]
hantek-6xxx: properly set encoding digits

7 years agohung-chang-dso-2100: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 23:18:58 +0000 (01:18 +0200)]
hung-chang-dso-2100: properly set encoding digits

7 years agobaylibre-acme: properly set encoding digits
Aurelien Jacobs [Wed, 24 Aug 2016 00:38:58 +0000 (02:38 +0200)]
baylibre-acme: properly set encoding digits

7 years agotondaj-sl-814: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 22:51:46 +0000 (00:51 +0200)]
tondaj-sl-814: properly set encoding digits

7 years agokecheng-kc-330b: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 22:51:22 +0000 (00:51 +0200)]
kecheng-kc-330b: properly set encoding digits

7 years agocolead-slm: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 22:51:08 +0000 (00:51 +0200)]
colead-slm: properly set encoding digits

7 years agocem-dt-885x: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 22:50:48 +0000 (00:50 +0200)]
cem-dt-885x: properly set encoding digits

7 years agogmc-mh-1x-2x: properly set encoding digits
Aurelien Jacobs [Tue, 23 Aug 2016 22:50:23 +0000 (00:50 +0200)]
gmc-mh-1x-2x: properly set encoding digits

7 years agoREADME.devices: Update firmware related information.
Uwe Hermann [Sun, 21 Aug 2016 20:19:57 +0000 (22:19 +0200)]
README.devices: Update firmware related information.

7 years agodocument encoding.digits and spec.spec_digits
Aurelien Jacobs [Sun, 21 Aug 2016 16:32:38 +0000 (18:32 +0200)]
document encoding.digits and spec.spec_digits

7 years agomic-985xx: fix encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 15:01:19 +0000 (17:01 +0200)]
mic-985xx: fix encoding digits

7 years agouni-t-ut32x: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 15:00:59 +0000 (17:00 +0200)]
uni-t-ut32x: properly set encoding digits

7 years agolascar-el-usb: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 15:00:14 +0000 (17:00 +0200)]
lascar-el-usb: properly set encoding digits

7 years agocenter-3xx: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:59:02 +0000 (16:59 +0200)]
center-3xx: properly set encoding digits

7 years agokern-scale: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:58:10 +0000 (16:58 +0200)]
kern-scale: properly set encoding digits

7 years agodemo: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:57:58 +0000 (16:57 +0200)]
demo: properly set encoding digits

7 years agomotech-lps-30x: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:57:28 +0000 (16:57 +0200)]
motech-lps-30x: properly set encoding digits

7 years agomanson-hcs-3xxx: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:56:56 +0000 (16:56 +0200)]
manson-hcs-3xxx: properly set encoding digits

7 years agokorad-kaxxxxp: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:56:14 +0000 (16:56 +0200)]
korad-kaxxxxp: properly set encoding digits

7 years agoatten-pps3xxx: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:55:50 +0000 (16:55 +0200)]
atten-pps3xxx: properly set encoding digits

7 years agoderee-de5000: properly set encoding digits
Aurelien Jacobs [Sun, 21 Aug 2016 14:55:06 +0000 (16:55 +0200)]
deree-de5000: properly set encoding digits

7 years agorigol-ds: properly set encoding digits
Aurelien Jacobs [Fri, 19 Aug 2016 22:56:23 +0000 (00:56 +0200)]
rigol-ds: properly set encoding digits

7 years agoscpi-pps: properly set encoding digits
Aurelien Jacobs [Thu, 18 Aug 2016 13:21:01 +0000 (15:21 +0200)]
scpi-pps: properly set encoding digits

7 years agomaynuo-m97: properly set encoding digits
Aurelien Jacobs [Wed, 17 Aug 2016 20:01:04 +0000 (22:01 +0200)]
maynuo-m97: properly set encoding digits

7 years agovc870: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:40:11 +0000 (01:40 +0200)]
vc870: properly set encoding digits

7 years agout71x: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:37:44 +0000 (01:37 +0200)]
ut71x: properly set encoding digits

7 years agout372: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:35:17 +0000 (01:35 +0200)]
ut372: properly set encoding digits

7 years agors9lcd: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:33:35 +0000 (01:33 +0200)]
rs9lcd: properly set encoding digits

7 years agometex14: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:28:50 +0000 (01:28 +0200)]
metex14: properly set encoding digits

This closes bug #815.

7 years agom2110: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:27:22 +0000 (01:27 +0200)]
m2110: properly set encoding digits

7 years agofs9922: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:19:40 +0000 (01:19 +0200)]
fs9922: properly set encoding digits

7 years agofs9721: properly set encoding digits
Aurelien Jacobs [Tue, 16 Aug 2016 23:16:40 +0000 (01:16 +0200)]
fs9721: properly set encoding digits