]> sigrok.org Git - libsigrok.git/log
libsigrok.git
9 years agoyokogawa-dlm: Populate sdi->serial_num and sdi->version
Soeren Apel [Thu, 16 Oct 2014 20:43:05 +0000 (22:43 +0200)]
yokogawa-dlm: Populate sdi->serial_num and sdi->version

9 years agorigol-ds: Populate sdi->serial_num
Soeren Apel [Thu, 16 Oct 2014 20:42:50 +0000 (22:42 +0200)]
rigol-ds: Populate sdi->serial_num

9 years agohameg-hmo: Populate sdi->serial_num
Soeren Apel [Thu, 16 Oct 2014 20:42:38 +0000 (22:42 +0200)]
hameg-hmo: Populate sdi->serial_num

9 years agoscpi-pps: Populate sdi->serial_num and fix hw_info mem leak
Soeren Apel [Thu, 16 Oct 2014 20:42:19 +0000 (22:42 +0200)]
scpi-pps: Populate sdi->serial_num and fix hw_info mem leak

9 years agoscpi: Populate sdi->connection_id
Soeren Apel [Thu, 16 Oct 2014 20:41:57 +0000 (22:41 +0200)]
scpi: Populate sdi->connection_id

9 years agosysclk-lwla: Let the sdi getter populate sdi->connection_id
Soeren Apel [Thu, 16 Oct 2014 20:40:58 +0000 (22:40 +0200)]
sysclk-lwla: Let the sdi getter populate sdi->connection_id

This fixes bug #441.

9 years agoikalogic-scanalogic2: Let the sdi getter popuplage sdi->connection_id
Soeren Apel [Thu, 16 Oct 2014 20:15:54 +0000 (22:15 +0200)]
ikalogic-scanalogic2: Let the sdi getter popuplage sdi->connection_id

This fixes bug #440.

9 years agoProvide getters for sr_dev_inst member access
Soeren Apel [Thu, 16 Oct 2014 18:17:04 +0000 (20:17 +0200)]
Provide getters for sr_dev_inst member access

9 years agoscpi-pps: Start acquisition on the first enabled channel.
Bert Vermeulen [Fri, 17 Oct 2014 01:00:55 +0000 (03:00 +0200)]
scpi-pps: Start acquisition on the first enabled channel.

9 years agoscpi-pps: Optimize channel selection.
Bert Vermeulen [Fri, 17 Oct 2014 01:00:05 +0000 (03:00 +0200)]
scpi-pps: Optimize channel selection.

This avoids sending a channel selection command to the device if
the channel we're working on is already on the same underlying
output channel.

9 years agoscpi-pps: Disable beeper during session.
Bert Vermeulen [Thu, 16 Oct 2014 13:24:27 +0000 (15:24 +0200)]
scpi-pps: Disable beeper during session.

At least the Rigol DP800 series trigger the beeper when changing
channels remotely. Which gets rather annoying when doing acquisition
on three channels as fast as you can.

9 years agoscpi-pps: Properly clean up acquisition session.
Bert Vermeulen [Thu, 16 Oct 2014 12:55:56 +0000 (14:55 +0200)]
scpi-pps: Properly clean up acquisition session.

9 years agoscpi-pps: Use only standard SCPI for Rigol DP800 series.
Bert Vermeulen [Thu, 16 Oct 2014 11:23:21 +0000 (13:23 +0200)]
scpi-pps: Use only standard SCPI for Rigol DP800 series.

9 years agoFix short names for SR_CONF_OUTPUT_VOLTAGE_TARGET/_CURRENT_LIMIT.
Bert Vermeulen [Thu, 16 Oct 2014 11:22:51 +0000 (13:22 +0200)]
Fix short names for SR_CONF_OUTPUT_VOLTAGE_TARGET/_CURRENT_LIMIT.

9 years agobindings: Remove Device::description().
Martin Ling [Sun, 12 Oct 2014 16:57:27 +0000 (17:57 +0100)]
bindings: Remove Device::description().

9 years agobindings: Add Session::filename() and corresponding SWIG attribute.
Martin Ling [Sun, 12 Oct 2014 16:53:10 +0000 (17:53 +0100)]
bindings: Add Session::filename() and corresponding SWIG attribute.

9 years agobindings: Add accessor to obtain parent object.
Martin Ling [Sun, 12 Oct 2014 16:48:44 +0000 (17:48 +0100)]
bindings: Add accessor to obtain parent object.

9 years agobindings: add SWIG attribute for Packet::type.
Martin Ling [Fri, 10 Oct 2014 18:37:47 +0000 (19:37 +0100)]
bindings: add SWIG attribute for Packet::type.

9 years agoC++: Don't clear Session::_owned_devices() in Session::remove_devices().
Martin Ling [Sun, 12 Oct 2014 15:18:30 +0000 (16:18 +0100)]
C++: Don't clear Session::_owned_devices() in Session::remove_devices().

Owned devices are freed only when the session is destroyed.

9 years agoTrack sdis created by sr_session_load(), and free in sr_session_destroy().
Martin Ling [Sun, 12 Oct 2014 14:56:36 +0000 (15:56 +0100)]
Track sdis created by sr_session_load(), and free in sr_session_destroy().

9 years agoCorrect description of sr_session.devs.
Martin Ling [Sun, 12 Oct 2014 14:39:36 +0000 (15:39 +0100)]
Correct description of sr_session.devs.

9 years agoUse SR_CONF_OUTPUT_VOLTAGE_TARGET and _CURRENT_LIMIT.
Bert Vermeulen [Wed, 15 Oct 2014 10:03:00 +0000 (12:03 +0200)]
Use SR_CONF_OUTPUT_VOLTAGE_TARGET and _CURRENT_LIMIT.

These describe them better; the two are fundamentally different
things to set.

9 years agoconfigure.ac: Drop ols Windows exception, should be obsolete.
Uwe Hermann [Mon, 13 Oct 2014 14:23:48 +0000 (16:23 +0200)]
configure.ac: Drop ols Windows exception, should be obsolete.

(see #205)

9 years agoscpi-pps: Split boolean set options into enable/disable.
Bert Vermeulen [Fri, 10 Oct 2014 14:00:33 +0000 (16:00 +0200)]
scpi-pps: Split boolean set options into enable/disable.

This makes it easier to support devices that need something else
than "ON" or "OFF".

9 years agoRename SR_CONF_LCR_METER to SR_CONF_LCRMETER.
Uwe Hermann [Mon, 13 Oct 2014 09:39:15 +0000 (11:39 +0200)]
Rename SR_CONF_LCR_METER to SR_CONF_LCRMETER.

(to be consistent with some other key names)

9 years agolibsigrok-internal.h: Fix some outdated comments.
Uwe Hermann [Sun, 12 Oct 2014 23:06:09 +0000 (01:06 +0200)]
libsigrok-internal.h: Fix some outdated comments.

9 years agoAdd driver for DER EE DE-5000 LCR meter.
Janne Huttunen [Sat, 11 Oct 2014 12:47:35 +0000 (15:47 +0300)]
Add driver for DER EE DE-5000 LCR meter.

Add a driver for the DER EE DE-5000 LCR meter. This meter is based on
the Cyrustek ES51919/ES51920 chipset and communicates with the host
computer via an optional connectivity kit.

The kit uses an optoisolated unidirectional link to connect to the
meter and an USB cable on the host side. Internally the connection is
using the FTDI FT232R USB UART chip i.e. from the host computer point
of view the meter is connected into an RS-232 serial port.

This driver implements just a thin shim layer for registering the
driver and uses the es51919 module for all the actual work.

9 years agoAdd protocol decoder for Cyrustek ES51919 LCR meter chip.
Janne Huttunen [Sat, 11 Oct 2014 12:47:34 +0000 (15:47 +0300)]
Add protocol decoder for Cyrustek ES51919 LCR meter chip.

Add a protocol decoder for the Cyrustek ES51919 LCR meter chip.
This chipset (together with ES51920 front-end) is supposedly used
by multiple different portable LCR meters including at least
DER EE DE-5000, Yihua V&A VA520, Mastech MS5308, Uni-T UT612,
CEM DT-9935 and various OEM rebadges of them.

The communication protocol seems to be implemented on the Cyrustek
chip itself so all the different models are expected to use the
same protocol if they implement a host connection. Unfortunately
the protocol is not available in the public documentation of the
chipset, so this implementation is based on reverse engineering it
from traffic captures.

The actual connection between the meter and the host computer may be
different from meter to meter even when based on the same chip. This
module implements a decoder for the protocol and some common helper
functions for interfacing with the meter via an RS-232 serial port.

9 years agoAdd pretty-printer for new units and flags.
Janne Huttunen [Sat, 11 Oct 2014 12:47:33 +0000 (15:47 +0300)]
Add pretty-printer for new units and flags.

Add support for printing henries and degrees as well as the new
reference and auto flags.

9 years agoAdd config key for output frequency.
Janne Huttunen [Sat, 11 Oct 2014 12:47:32 +0000 (15:47 +0300)]
Add config key for output frequency.

Add a config key for getting/setting the output frequency. The value
will be an uint64 and measured in hertz.

9 years agoAdd config key for LCR meter type.
Janne Huttunen [Sat, 11 Oct 2014 12:47:31 +0000 (15:47 +0300)]
Add config key for LCR meter type.

Add a config key that can be used to indicate that the device is
an LCR meter.

9 years agoAdd two new 'auto' flags.
Janne Huttunen [Sat, 11 Oct 2014 12:47:30 +0000 (15:47 +0300)]
Add two new 'auto' flags.

Add flags for indicating that the meter has selected the measured
quantitiy and/or the used measurement model automatically. These
are similar to the existing auto-range flag.

9 years agoAdd quantity and flag for difference measurements.
Janne Huttunen [Sat, 11 Oct 2014 12:47:29 +0000 (15:47 +0300)]
Add quantity and flag for difference measurements.

Add 'SR_MQ_DIFFERENCE' quantity for reporting relative difference
between the current measurement and the reference value. The value
of this quantity will normally be reported in percents. Add also
the flag 'SR_MQFLAG_REFERENCE' for indicating that the reported
value is not the current measurement but the reference value instead.

9 years agoAdd measured quantities for LCR meters.
Janne Huttunen [Sat, 11 Oct 2014 12:47:28 +0000 (15:47 +0300)]
Add measured quantities for LCR meters.

Add parallel and serial model inductance, capacitance and resistance
for LCR meter measurements. Add also secondary quantities many LCR
meters calculate, namely dissipation factor, quality factor and phase
angle.

9 years agoAdd two new units.
Janne Huttunen [Sat, 11 Oct 2014 12:47:27 +0000 (15:47 +0300)]
Add two new units.

Add degrees and henrys to the list of supported units. Degree is
an unit of plane angle where one degree is 1/360th of a full circle.
Henry is the SI unit of inductance.

9 years agoREADME: Bump glib version to 2.34.
Uwe Hermann [Sun, 12 Oct 2014 17:59:41 +0000 (19:59 +0200)]
README: Bump glib version to 2.34.

9 years agousb: Simplify usb_get_port_path() and fix writing into a const char *.
Aurelien Jacobs [Mon, 6 Oct 2014 22:02:10 +0000 (00:02 +0200)]
usb: Simplify usb_get_port_path() and fix writing into a const char *.

9 years agoFix sr_dev_has_option().
Bert Vermeulen [Thu, 9 Oct 2014 21:42:24 +0000 (23:42 +0200)]
Fix sr_dev_has_option().

This wasn't taking the SR_CONF_GET/_SET/_LIST flags into account.

Thanks to Janne Huttunen for spotting this.

9 years agobuild: Require glib 2.34.
Bert Vermeulen [Wed, 8 Oct 2014 21:14:01 +0000 (23:14 +0200)]
build: Require glib 2.34.

9 years agools: Fix serial port timeout.
Bert Vermeulen [Wed, 8 Oct 2014 01:00:47 +0000 (03:00 +0200)]
ols: Fix serial port timeout.

9 years agocolead-slm: Fix serial port timeout.
Bert Vermeulen [Wed, 8 Oct 2014 00:23:20 +0000 (02:23 +0200)]
colead-slm: Fix serial port timeout.

9 years agobindings: Better error handling in enumeration get() function.
Jens Steinhauser [Tue, 7 Oct 2014 12:01:34 +0000 (14:01 +0200)]
bindings: Better error handling in enumeration get() function.

Prior to this patch a call to get() with an invalid enumeration value
would raise an exception that would, for example, terminate the python
interpreter, whereas now the exception is handled and translated into a
proper python exception.

9 years agoatten-pps3xxx: Use serial_timeout().
Bert Vermeulen [Mon, 6 Oct 2014 10:12:13 +0000 (12:12 +0200)]
atten-pps3xxx: Use serial_timeout().

9 years agoserial: Add serial_timeout().
Bert Vermeulen [Mon, 6 Oct 2014 10:10:25 +0000 (12:10 +0200)]
serial: Add serial_timeout().

This calculates a proper timeout value for blocking writes on the
given serial port, for the given number of bytes. Timeout is based
on a fixed 10ms OS overhead, baud rate, data bits and stop bits.

9 years agoatten-pps3xxx: Fix serial port timeout.
Bert Vermeulen [Sun, 5 Oct 2014 10:29:28 +0000 (12:29 +0200)]
atten-pps3xxx: Fix serial port timeout.

9 years agofluke-dmm: Fix blocking serial write timeout.
Bert Vermeulen [Sat, 4 Oct 2014 08:37:07 +0000 (10:37 +0200)]
fluke-dmm: Fix blocking serial write timeout.

9 years agoagilent-dmm: Fix blocking serial write timeout.
Bert Vermeulen [Sat, 4 Oct 2014 00:30:27 +0000 (02:30 +0200)]
agilent-dmm: Fix blocking serial write timeout.

9 years agoinput/csv: Fix size_t printing.
Bert Vermeulen [Sat, 4 Oct 2014 00:24:41 +0000 (02:24 +0200)]
input/csv: Fix size_t printing.

9 years agounit tests: Fix build due to recent changes.
Uwe Hermann [Fri, 3 Oct 2014 18:11:47 +0000 (20:11 +0200)]
unit tests: Fix build due to recent changes.

9 years agoAdd a configurable read timeout to blocking SCPI reads, default 1s.
Martin Ling [Sun, 28 Sep 2014 13:30:20 +0000 (14:30 +0100)]
Add a configurable read timeout to blocking SCPI reads, default 1s.

9 years agoAdd some Agilent USBTMC PIDs.
Bert Vermeulen [Fri, 3 Oct 2014 11:39:06 +0000 (13:39 +0200)]
Add some Agilent USBTMC PIDs.

9 years agoAdd a timeout parameter to blocking serial calls.
Martin Ling [Sun, 28 Sep 2014 12:05:33 +0000 (13:05 +0100)]
Add a timeout parameter to blocking serial calls.

Set this new parameter to 0 (no timeout) at every call site. This is
consistent with previous behaviour, so cannot cause any regressions.

Waiting forever for a serial operation is clearly always wrong. Without
specific knowledge of each device and driver however, I can't choose
appropriate timeouts for each call. The maintainers of these drivers
will need to do so, and also add appropriate handling of timeouts.

When this commit is merged, a bug should be entered for each driver
that is touched by it.

9 years agoAvoid serial_write_blocking() warnings.
Bert Vermeulen [Thu, 2 Oct 2014 14:01:27 +0000 (16:01 +0200)]
Avoid serial_write_blocking() warnings.

9 years agoFix similar broken error handling on several serial calls.
Martin Ling [Sun, 28 Sep 2014 11:54:56 +0000 (12:54 +0100)]
Fix similar broken error handling on several serial calls.

9 years agokecheng-kc-330b: Fix missing time/frequency weighting.
Bert Vermeulen [Thu, 2 Oct 2014 13:06:36 +0000 (15:06 +0200)]
kecheng-kc-330b: Fix missing time/frequency weighting.

9 years agohantek-dso: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 13:03:18 +0000 (15:03 +0200)]
hantek-dso: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agodemo: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 13:02:14 +0000 (15:02 +0200)]
demo: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agofluke-dmm: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 13:00:37 +0000 (15:00 +0200)]
fluke-dmm: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agochronovu-la8: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 12:58:57 +0000 (14:58 +0200)]
chronovu-la8: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agoasix-sigma: Trigger code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 12:53:20 +0000 (14:53 +0200)]
asix-sigma: Trigger code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agoagilent-dmm: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 12:11:35 +0000 (14:11 +0200)]
agilent-dmm: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agoscpi/vxc: Avoid NULL dereference.
Bert Vermeulen [Thu, 2 Oct 2014 12:07:31 +0000 (14:07 +0200)]
scpi/vxc: Avoid NULL dereference.

This cleans up a warning generated by clang's static analyzer.

9 years agoinput/csv: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 11:59:44 +0000 (13:59 +0200)]
input/csv: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agoinput/chronovu_la8: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 11:55:37 +0000 (13:55 +0200)]
input/chronovu_la8: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agoinput/binary: Code cleanup.
Bert Vermeulen [Thu, 2 Oct 2014 11:55:21 +0000 (13:55 +0200)]
input/binary: Code cleanup.

This cleans up a warning generated by clang's static analyzer.

9 years agoinput: Avoid NULL dereference.
Bert Vermeulen [Thu, 2 Oct 2014 11:51:19 +0000 (13:51 +0200)]
input: Avoid NULL dereference.

This cleans up a warning generated by clang's static analyzer.

9 years agosr_parse_sizestring: Deal with invalid strings better.
Bert Vermeulen [Thu, 2 Oct 2014 10:57:19 +0000 (12:57 +0200)]
sr_parse_sizestring: Deal with invalid strings better.

This cleans up a warning generated by clang's static analyzer.

9 years agoClean up sr_session_load().
Bert Vermeulen [Thu, 2 Oct 2014 09:32:52 +0000 (11:32 +0200)]
Clean up sr_session_load().

This cleans up some warnings generated by clang's static analyzer.
The function now also returns SR_ERR to signify the specified filename
does not point to a valid session file.

Other SR_ERR_* returns indicate a session file was found, but loading
failed.

9 years agoReturn sensible Device::description() for session and input devices.
Martin Ling [Tue, 30 Sep 2014 16:32:09 +0000 (17:32 +0100)]
Return sensible Device::description() for session and input devices.

9 years agoC++: Fix management of SessionDevice objects.
Martin Ling [Tue, 30 Sep 2014 15:05:27 +0000 (16:05 +0100)]
C++: Fix management of SessionDevice objects.

9 years agoC++: Add spaces in Device::description().
Martin Ling [Tue, 30 Sep 2014 12:19:27 +0000 (13:19 +0100)]
C++: Add spaces in Device::description().

9 years agoC++: Expose device serial number and connection ID.
Martin Ling [Tue, 30 Sep 2014 10:50:07 +0000 (11:50 +0100)]
C++: Expose device serial number and connection ID.

9 years agoC++: Expose config key capabilities.
Martin Ling [Tue, 30 Sep 2014 10:07:55 +0000 (11:07 +0100)]
C++: Expose config key capabilities.

9 years agobindings: Update for input API changes.
Martin Ling [Sat, 27 Sep 2014 15:29:34 +0000 (16:29 +0100)]
bindings: Update for input API changes.

9 years agoClean up internal input API docs.
Bert Vermeulen [Tue, 23 Sep 2014 10:05:31 +0000 (12:05 +0200)]
Clean up internal input API docs.

9 years agoinput: Use SR_ERR_NA instead of SR_OK_CONTINUE.
Bert Vermeulen [Tue, 23 Sep 2014 10:04:35 +0000 (12:04 +0200)]
input: Use SR_ERR_NA instead of SR_OK_CONTINUE.

9 years agoinput: sr_input_free() is now a void function.
Bert Vermeulen [Tue, 23 Sep 2014 09:27:50 +0000 (11:27 +0200)]
input: sr_input_free() is now a void function.

Its backend, input_module.cleanup(), is now also a void function.

9 years agoinput: Add sr_input_end().
Bert Vermeulen [Tue, 23 Sep 2014 09:12:33 +0000 (11:12 +0200)]
input: Add sr_input_end().

This signifies to the module instance no more input will come. This
will cause the module to process any data it may have buffered. The
SR_DF_END packet will also typically be sent at this time.

9 years agoinput: Free instance-private storage at instance free.
Bert Vermeulen [Mon, 22 Sep 2014 14:52:38 +0000 (16:52 +0200)]
input: Free instance-private storage at instance free.

9 years agoinput: Add sdi_ready flag to struct sr_input.
Bert Vermeulen [Mon, 22 Sep 2014 13:22:41 +0000 (15:22 +0200)]
input: Add sdi_ready flag to struct sr_input.

When an input module instance has received enough input to fully
populate the struct sr_dev_inst, sdi_ready is set to TRUE and its
receive() method returns immediately. Any remaining received data
is buffered until the next time the function is called.

9 years agoRemoval of sdi->index, step 8: fix victor-dmm
Soeren Apel [Sun, 28 Sep 2014 13:45:59 +0000 (15:45 +0200)]
Removal of sdi->index, step 8: fix victor-dmm

9 years agoRemoval of sdi->index, step 7: fix testo
Soeren Apel [Sun, 28 Sep 2014 12:33:03 +0000 (14:33 +0200)]
Removal of sdi->index, step 7: fix testo

9 years agoRemoval of sdi->index, step 6: fix sysclk-lwla
Soeren Apel [Sun, 28 Sep 2014 09:10:26 +0000 (11:10 +0200)]
Removal of sdi->index, step 6: fix sysclk-lwla

9 years agoRemoval of sdi->index, step 5: fix ikalogic-scanalogic2
Soeren Apel [Sat, 27 Sep 2014 21:03:52 +0000 (23:03 +0200)]
Removal of sdi->index, step 5: fix ikalogic-scanalogic2

9 years agoRemoval of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
Soeren Apel [Sat, 27 Sep 2014 20:33:00 +0000 (22:33 +0200)]
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls

9 years agoRemoval of sdi->index, step 3: sr_dev_inst_new() calls for input mods
Soeren Apel [Sat, 27 Sep 2014 20:29:10 +0000 (22:29 +0200)]
Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods

9 years agoRemoval of sdi->index, step 2: remove it from sr_session_load()
Soeren Apel [Sat, 27 Sep 2014 20:26:06 +0000 (22:26 +0200)]
Removal of sdi->index, step 2: remove it from sr_session_load()

9 years agoRemoval of sdi->index, step 1: remove it from headers and helper funcs
Soeren Apel [Sat, 27 Sep 2014 20:20:51 +0000 (22:20 +0200)]
Removal of sdi->index, step 1: remove it from headers and helper funcs

9 years agosaleae-logic16: Use physical USB connection instead of sdi->index
Soeren Apel [Sat, 27 Sep 2014 20:15:45 +0000 (22:15 +0200)]
saleae-logic16: Use physical USB connection instead of sdi->index

9 years agoRemove sdi->index from openbench-logic-sniffer and pipistrello-ols
Soeren Apel [Sat, 27 Sep 2014 19:56:18 +0000 (21:56 +0200)]
Remove sdi->index from openbench-logic-sniffer and pipistrello-ols

9 years agohantek-dso: Use physical USB connection instead of sdi->index
Soeren Apel [Sat, 27 Sep 2014 19:51:56 +0000 (21:51 +0200)]
hantek-dso: Use physical USB connection instead of sdi->index

9 years agozeroplus-logic-cube: Use physical USB connection instead of sdi->index
Soeren Apel [Sat, 27 Sep 2014 18:48:47 +0000 (20:48 +0200)]
zeroplus-logic-cube: Use physical USB connection instead of sdi->index

9 years agoC++: handle uint32_t SR_CONF keys which contain key capabilities
Aurelien Jacobs [Mon, 29 Sep 2014 22:37:03 +0000 (00:37 +0200)]
C++: handle uint32_t SR_CONF keys which contain key capabilities

This adapts the C++ bindings according to commits 584560f and 5827f61.

9 years agofx2lafw: Use physical USB connection instead of sdi->index
Soeren Apel [Fri, 26 Sep 2014 17:25:36 +0000 (19:25 +0200)]
fx2lafw: Use physical USB connection instead of sdi->index

Previously, sdi->index was used to tell several identical fx2lafw-compatible
devices apart. This was a bit of a hack, so this patch makes it use physical
device connections instead. They're guaranteed to remain the same even if
the USB device reconnects.

9 years agoAdd sr_packet_copy/_free functions.
Bert Vermeulen [Thu, 25 Sep 2014 23:33:15 +0000 (01:33 +0200)]
Add sr_packet_copy/_free functions.

These will be used to make a copy of a packet on the session bus,
valid for the duration of the device instance that generated it.

9 years agoserial: Eliminate serial_read(), serial_write() and SERIAL_NONBLOCK.
Martin Ling [Sun, 21 Sep 2014 20:41:25 +0000 (21:41 +0100)]
serial: Eliminate serial_read(), serial_write() and SERIAL_NONBLOCK.

9 years agostd_serial_dev_open: Remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 18:30:24 +0000 (19:30 +0100)]
std_serial_dev_open: Remove SERIAL_NONBLOCK flag.

All calls in drivers are now explicitly (non)blocking.

9 years agoscpi_serial: Mark read/write calls nonblocking, remove SERIAL_NONBLOCK.
Martin Ling [Sun, 21 Sep 2014 18:29:13 +0000 (19:29 +0100)]
scpi_serial: Mark read/write calls nonblocking, remove SERIAL_NONBLOCK.

These calls were already nonblocking. Having marked them as such, the flag can
be removed.

9 years agotondaj-sl-814: Remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 18:25:47 +0000 (19:25 +0100)]
tondaj-sl-814: Remove SERIAL_NONBLOCK flag.

All calls in the driver are now explicitly (non)blocking.

9 years agotondaj-sl-814: Mark serial read/write calls as blocking.
Martin Ling [Sun, 21 Sep 2014 18:24:33 +0000 (19:24 +0100)]
tondaj-sl-814: Mark serial read/write calls as blocking.

These calls are executed from an event handler and were previously nonblocking,
but they have no partial read/write handling. The code is already marked TODO
for improvement.