[sigrok-devel] [PATCH v2 2/6] dmm: vc870: fix AC conversion factors

2016-01-03 Thread Wolfram Sang
Testing showed that AC current needs to be handled different from DC. Note that ACA is still untested because of limited testing equipment. Signed-off-by: Wolfram Sang --- src/dmm/vc870.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dmm/vc870.c b/src/dmm/vc8

[sigrok-devel] [PATCH v2 3/6] dmm: vc870: keep the order when processing modes

2016-01-03 Thread Wolfram Sang
is_power_apparent_power is index 0 of function 0x39, so it is better to process it first and the later indices after that (we need to add another one with a different patch later). Signed-off-by: Wolfram Sang --- src/dmm/vc870.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-

[sigrok-devel] [PATCH v2 1/6] dmm: vc870: show display value properly in debug output

2016-01-03 Thread Wolfram Sang
It was confusing to see the display value (5 digits) printed in debug output as a float. Print it the same way as shown on the real device, without comma, of course. This also allows to simplify the code a little. Signed-off-by: Wolfram Sang --- src/dmm/vc870.c | 7 ++- 1 file changed, 2 ins

[sigrok-devel] [PATCH v2 5/6] dmm: vc870: support effective voltage & current

2016-01-03 Thread Wolfram Sang
And rename the status variable because in sigrok the term RMS is used instead of "effective value". Signed-off-by: Wolfram Sang --- src/dmm/vc870.c | 12 ++-- src/libsigrok-internal.h | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/dmm/vc870.c b/src/

[sigrok-devel] [PATCH v2 4/6] dmm: vc870: render POWER_FACTOR as such and not as frequency

2016-01-03 Thread Wolfram Sang
The primary display is the power factor, the secondary is the frequency. This got mixed up, so change the order. We also need to fix the conversion factor. Signed-off-by: Wolfram Sang --- src/dmm/vc870.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dmm/vc8

[sigrok-devel] [PATCH v2 6/6] dmm: vc870: drop unused variable

2016-01-03 Thread Wolfram Sang
There is no status bit for RMS. We know about RMS if certain modes are active. So, drop this superfluous variable. Signed-off-by: Wolfram Sang --- src/dmm/vc870.c | 1 - src/libsigrok-internal.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dmm/vc870.c b/src/

Re: [sigrok-devel] Fwd: Re: generic iio driver draft

2016-01-03 Thread Lars-Peter Clausen
Hi, On 12/31/2015 02:53 PM, Marc Titinger wrote: > > On behalf of Hubert Chaumette (author) > > > Clarification on usage: > > 'conn' was used for the IP in previous iterations, but the current code > uses libiio's IIOD_REMOTE variable for that. Instead, conn is now used > to choose a device, o