]> sigrok.org Git - libsigrok.git/log
libsigrok.git
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.

9 years agotondaj-sl-814: Mark serial read call as nonblocking.
Martin Ling [Sun, 21 Sep 2014 18:19:51 +0000 (19:19 +0100)]
tondaj-sl-814: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. Partial reads are handled.

9 years agoteleinfo: Mark serial read as nonblocking, remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 18:17:02 +0000 (19:17 +0100)]
teleinfo: Mark serial read as nonblocking, remove SERIAL_NONBLOCK flag.

This call was already nonblocking due to the flag.

9 years agoopenbench-logic-sniffer: Remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 18:15:36 +0000 (19:15 +0100)]
openbench-logic-sniffer: Remove SERIAL_NONBLOCK flag.

All calls in this driver are already explicitly (non)blocking.

9 years agonorma-dmm: Remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 18:14:49 +0000 (19:14 +0100)]
norma-dmm: Remove SERIAL_NONBLOCK flag.

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

9 years agonorma-dmm: Make serial write call block.
Martin Ling [Sun, 21 Sep 2014 18:14:05 +0000 (19:14 +0100)]
norma-dmm: Make serial write call block.

This call is executed from an event handler and was previously nonblocking,
but has no partial write handling. It sends a short packet so should be OK
to block, most likely the output buffer will be empty anyway.

9 years agonorma-dmm: Make write call block.
Martin Ling [Sun, 21 Sep 2014 18:12:16 +0000 (19:12 +0100)]
norma-dmm: Make write call block.

This call was previously nonblocking, but has no partial write handling.
It is called in the scan where it is free to block.

9 years agonorma-dmm: Mark serial read call as nonblocking.
Martin Ling [Sun, 21 Sep 2014 18:11:23 +0000 (19:11 +0100)]
norma-dmm: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. It only reads one byte, and a zero result is handled
appropriately.

9 years agomotech-lps-30x: Remove SERIAL_NONBLOCK.
Martin Ling [Sun, 21 Sep 2014 18:05:03 +0000 (19:05 +0100)]
motech-lps-30x: Remove SERIAL_NONBLOCK.

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

9 years agomotech-lps-30x: Make serial write call block.
Martin Ling [Sun, 21 Sep 2014 18:03:26 +0000 (19:03 +0100)]
motech-lps-30x: Make serial write call block.

This call was previously explicitly nonblocking, but has no partial write
handling. It sends a short packet so should be OK to block, most likely the
output buffer will be empty anyway.

9 years agomotech-lps-30x: Mark serial read call as nonblocking.
Martin Ling [Sun, 21 Sep 2014 17:59:45 +0000 (18:59 +0100)]
motech-lps-30x: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. It only reads one byte, and a zero result is handled
appropriately.

9 years agomic-985xx: Remove SERIAL_NONBLOCK call.
Martin Ling [Sun, 21 Sep 2014 17:55:21 +0000 (18:55 +0100)]
mic-985xx: Remove SERIAL_NONBLOCK call.

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

9 years agomic-985xx: Make serial write call block.
Martin Ling [Sun, 21 Sep 2014 17:54:00 +0000 (18:54 +0100)]
mic-985xx: Make serial write call block.

This call is executed from an event handler and was previously nonblocking,
but has no partial write handling. It sends a short packet so should be OK
to block, most likely the output buffer will be empty anyway.

9 years agomic-985xx: Mark serial read as nonblocking.
Martin Ling [Sun, 21 Sep 2014 17:52:20 +0000 (18:52 +0100)]
mic-985xx: Mark serial read as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. Partial reads are handled.

9 years agogmc-mh-1x-2x: Remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 17:45:36 +0000 (18:45 +0100)]
gmc-mh-1x-2x: Remove SERIAL_NONBLOCK flag.

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

9 years agogmc-mh-1x-2x: Make serial write calls block.
Martin Ling [Sun, 21 Sep 2014 17:44:20 +0000 (18:44 +0100)]
gmc-mh-1x-2x: Make serial write calls block.

These calls are executed from an event handler and were previously nonblocking,
but have no partial write handling. They send short packets so should be OK to
block, most likely the output buffer will be empty anyway.

Fix error handling for some: serial_write can return any negative error code.

9 years agogmc-mh-1x-2x: Make serial write call block, and fix error handling.
Martin Ling [Sun, 21 Sep 2014 17:40:47 +0000 (18:40 +0100)]
gmc-mh-1x-2x: Make serial write call block, and fix error handling.

This call was previously nonblocking, but there is no handling of partial
writes. It is called from config_set where it is free to block.

Also fix error handling: serial_write can return any negative error code,
not just -1.

9 years agogmc-mh-1x-2x: Mark serial read calls as nonblocking.
Martin Ling [Sun, 21 Sep 2014 17:36:00 +0000 (18:36 +0100)]
gmc-mh-1x-2x: Mark serial read calls as nonblocking.

These calls were already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. They only read one byte. A return value of zero is not
handled, but should not occur in theory due to the G_IO_IN check. It might be
good to add handling of a zero return anyway, since I'm not sure if this is
always accurate.

9 years agogmc-mh-1x-2x: Mark serial read call as nonblocking.
Martin Ling [Sun, 21 Sep 2014 17:33:34 +0000 (18:33 +0100)]
gmc-mh-1x-2x: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. It only reads one byte, and a zero result is handled
appropriately.

9 years agofluke-dmm: Make serial write calls block, and fix error handling.
Martin Ling [Sun, 21 Sep 2014 17:26:16 +0000 (18:26 +0100)]
fluke-dmm: Make serial write calls block, and fix error handling.

These calls are executed from an event handler and were previously nonblocking,
but have no partial write handling. They send short packets so should be OK to
block, most likely the output buffer will be empty anyway.

Also fix error handling for these calls, which seems to have been retained from
previous direct usage of write() to a serial port fd.

9 years agofluke-dmm: Make serial write calls block, and fix error handling.
Martin Ling [Sun, 21 Sep 2014 17:16:04 +0000 (18:16 +0100)]
fluke-dmm: Make serial write calls block, and fix error handling.

These calls were previously nonblocking, but have no partial write handling.
They are made from scan and acquisition_start contexts where they are free
to block.

Remove the SERIAL_NONBLOCK at open, which only applied during scan, since all
calls in the scan are now explicitly blocking.

Also fix error handling for these calls, which appears to have been kept
from a previous direct usage of write() on a serial port fd.

9 years agofluke-dmm: Mark serial read call as nonblocking.
Martin Ling [Sun, 21 Sep 2014 17:12:48 +0000 (18:12 +0100)]
fluke-dmm: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. Only one byte is read. The case of 0 being returned
is not handled, but the call is only made if G_IO_IN occurred so in theory,
there should be a byte available. It might be wise to add handling for a
return of 0 nonetheless, as I'm not sure if this is always accurate.

9 years agoconrad-digi-35-cpu: Make serial write call block.
Martin Ling [Sun, 21 Sep 2014 17:07:14 +0000 (18:07 +0100)]
conrad-digi-35-cpu: Make serial write call block.

This call was previously nonblocking, but there is no partial write handling.
It is only called from config_set so it is free to block.

9 years agoconrad-digi-35-cpu: Remove SERIAL_NONBLOCK flag from open at scan time.
Martin Ling [Sun, 21 Sep 2014 17:05:56 +0000 (18:05 +0100)]
conrad-digi-35-cpu: Remove SERIAL_NONBLOCK flag from open at scan time.

This open call is only made to check access, the port is closed immediately
afterwards. The flag therefore has no effect.

9 years agocolead-slm: Mark serial read calls as nonblocking.
Martin Ling [Sun, 21 Sep 2014 16:54:18 +0000 (17:54 +0100)]
colead-slm: Mark serial read calls as nonblocking.

This is an odd one. These calls are made from a receive handler so should not
block, and appear to be setup correctly to handle partial reads or no data
available. However, the driver was not opening the port with SERIAL_NONBLOCK
so these calls would have been blocking. Make them nonblocking.

9 years agocenter-3xx: Remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 16:51:50 +0000 (17:51 +0100)]
center-3xx: Remove SERIAL_NONBLOCK flag.

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

9 years agocenter-3xx: Make serial write call block.
Martin Ling [Sun, 21 Sep 2014 16:51:25 +0000 (17:51 +0100)]
center-3xx: Make serial write call block.

This call is executed from an event handler and was previously nonblocking,
but has no partial write handling. It sends a short packet so should be OK
to block, most likely the output buffer will be empty anyway.

9 years agocenter-3xx: Mark serial read call as nonblocking.
Martin Ling [Sun, 21 Sep 2014 16:46:39 +0000 (17:46 +0100)]
center-3xx: Mark serial read call as nonblocking.

This call was already nonblocking because the driver opens the port with the
SERIAL_NONBLOCK flag. Partial reads are handled.

9 years agocem-dt-885x: Mark serial access as nonblocking, remove SERIAL_NONBLOCK flag.
Martin Ling [Sun, 21 Sep 2014 16:41:05 +0000 (17:41 +0100)]
cem-dt-885x: Mark serial access as nonblocking, remove SERIAL_NONBLOCK flag.

These calls were already nonblocking since this driver opened the port with
the SERIAL_NONBLOCK flag. Having marked them as such, we can remove the flag.

Also remove an unnecessary reopen of the port to change its blocking status.

9 years agobrymen-dmm: Remove SERIAL_NONBLOCK flag.
Martin Ling [Tue, 16 Sep 2014 01:49:27 +0000 (02:49 +0100)]
brymen-dmm: Remove SERIAL_NONBLOCK flag.

All serial read/write calls in the driver are now explicitly (non)blocking.

9 years agobrymen-dmm: Make serial write call block.
Martin Ling [Tue, 16 Sep 2014 01:47:28 +0000 (02:47 +0100)]
brymen-dmm: Make serial write call block.

This call is executed from an event handler and was previously nonblocking,
but has no partial write handling. It sends a short packet so should be OK
to block, most likely the output buffer will be empty anyway.

9 years agobrymen-dmm: Mark serial read calls as nonblocking.
Martin Ling [Tue, 16 Sep 2014 01:42:26 +0000 (02:42 +0100)]
brymen-dmm: Mark serial read calls as nonblocking.

The driver opens the port with SERIAL_NONBLOCK so these were already
nonblocking, and are handled appropriately.

9 years agoatten-pps3xxx: Remove SERIAL_NONBLOCK.
Martin Ling [Tue, 16 Sep 2014 01:34:09 +0000 (02:34 +0100)]
atten-pps3xxx: Remove SERIAL_NONBLOCK.

All serial read/write calls in the driver are now explicitly (non)blocking.

9 years agoatten-pps3xxx: Make serial write call block.
Martin Ling [Tue, 16 Sep 2014 01:36:42 +0000 (02:36 +0100)]
atten-pps3xxx: Make serial write call block.

This call is executed from an event handler and was previously nonblocking,
but has no partial write handling. It sends a short packet so should be OK
to block, most likely the output buffer will be empty anyway.

9 years agoatten-pps3xxx: Make serial write call block in scan.
Martin Ling [Tue, 16 Sep 2014 01:32:37 +0000 (02:32 +0100)]
atten-pps3xxx: Make serial write call block in scan.

This is called at scan time so free to block. There is no partial write
handling and a response is expected afterwards. This should therefore be a
blocking call.

9 years agoappa-55ii: Mark serial read nonblocking and remove SERIAL_NONBLOCK.
Martin Ling [Tue, 16 Sep 2014 01:29:57 +0000 (02:29 +0100)]
appa-55ii: Mark serial read nonblocking and remove SERIAL_NONBLOCK.

This is the only read/write call in the driver. It is already non-blocking
and is handled appropriately.

9 years agoaglient-dmm: Remove SERIAL_NONBLOCK flag.
Martin Ling [Tue, 16 Sep 2014 01:17:47 +0000 (02:17 +0100)]
aglient-dmm: Remove SERIAL_NONBLOCK flag.

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

9 years agoagilent-dmm: Make serial write call block in send.
Martin Ling [Tue, 16 Sep 2014 01:14:23 +0000 (02:14 +0100)]
agilent-dmm: Make serial write call block in send.

This call is executed from an event handler context was previously
nonblocking, however there is no handling for a partial write.

The output buffer is unlikely to be full and the commands to be sent
are short, so it should be OK to make this a blocking call.

9 years agoagilent-dmm: Make serial write call block in scan.
Martin Ling [Tue, 16 Sep 2014 01:11:05 +0000 (02:11 +0100)]
agilent-dmm: Make serial write call block in scan.

This call is executed at scan time so is free to block. There is no
handling for a partial write and a response is expected immediately
afterwards. It should therefore be a blocking call.

9 years agoagilent-dmm: Mark serial read call as nonblocking.
Martin Ling [Tue, 16 Sep 2014 01:07:08 +0000 (02:07 +0100)]
agilent-dmm: Mark serial read call as nonblocking.

This driver opens the port with the SERIAL_NONBLOCK flag, so this call is
already a nonblocking one, and is handled appropriately.

9 years agoserial-dmm: Remove SERIAL_NONBLOCK flag.
Martin Ling [Tue, 16 Sep 2014 01:01:27 +0000 (02:01 +0100)]
serial-dmm: Remove SERIAL_NONBLOCK flag.

All serial read/write calls in this driver are now explicitly
nonblocking so there is no need for this flag.

9 years agoserial-dmm: Mark serial read/write calls as nonblocking.
Martin Ling [Tue, 16 Sep 2014 00:58:54 +0000 (01:58 +0100)]
serial-dmm: Mark serial read/write calls as nonblocking.

This driver opens the port with the SERIAL_NONBLOCK flag so these calls were
already non-blocking.

9 years agocolead-slm: Mark serial write call as blocking.
Martin Ling [Tue, 16 Sep 2014 00:52:14 +0000 (01:52 +0100)]
colead-slm: Mark serial write call as blocking.

This driver opens the port without the SERIAL_NONBLOCK flag,
so this call was already blocking.

9 years agomanson-hcs-3xxx: Mark serial read call as blocking.
Martin Ling [Tue, 16 Sep 2014 00:49:53 +0000 (01:49 +0100)]
manson-hcs-3xxx: Mark serial read call as blocking.

This driver opens the port without the SERIAL_NONBLOCK flag, so this call is
already a blocking one.

9 years agoserial_readline: Implement using sp_blocking_read.
Martin Ling [Sun, 21 Sep 2014 18:35:39 +0000 (19:35 +0100)]
serial_readline: Implement using sp_blocking_read.

9 years agoserial_stream_detect: Make read nonblocking.
Martin Ling [Sun, 21 Sep 2014 20:26:36 +0000 (21:26 +0100)]
serial_stream_detect: Make read nonblocking.

This code implements its own waiting based on baudrate, so the read itself
should be nonblocking. In general it will have been already, since drivers
almost universally use the SERIAL_NONBLOCK flag.

9 years agoAdd serial_num and connection_id fields to sr_dev_inst
Soeren Apel [Tue, 23 Sep 2014 15:43:27 +0000 (17:43 +0200)]
Add serial_num and connection_id fields to sr_dev_inst

9 years agoAdd usb_get_port_path() helper function
Soeren Apel [Mon, 22 Sep 2014 21:08:17 +0000 (23:08 +0200)]
Add usb_get_port_path() helper function

There is currently no way to uniquely identify USB devices in
libsigrok. It uses the "bus.address" scheme which is only
constant as long as the device remains attached to the bus.
In order to allow USB device persistence in PulseView, devices
need to provide a unique identifier even in absence of a
serial number. This function is the first step as it provides
the ability to query the physical location of a USB device.

9 years agodemo: Fix pattern mode and amplitude option publishing.
Bert Vermeulen [Tue, 23 Sep 2014 20:40:47 +0000 (22:40 +0200)]
demo: Fix pattern mode and amplitude option publishing.

9 years agocolead-slm: Properly check acquisition sample limit.
Bert Vermeulen [Tue, 23 Sep 2014 20:27:34 +0000 (22:27 +0200)]
colead-slm: Properly check acquisition sample limit.

9 years agosession: Don't try to send packets if no session has been set.
Bert Vermeulen [Thu, 18 Sep 2014 22:21:30 +0000 (00:21 +0200)]
session: Don't try to send packets if no session has been set.

This indicates a bug, but let's not segfault if it happens.

9 years agoinput/chronovu_la8: Fix broken I/O loop.
Bert Vermeulen [Wed, 17 Sep 2014 20:04:22 +0000 (22:04 +0200)]
input/chronovu_la8: Fix broken I/O loop.

9 years agoTypos and consistency fixes.
Uwe Hermann [Thu, 18 Sep 2014 23:03:32 +0000 (01:03 +0200)]
Typos and consistency fixes.

9 years agoyokogawa-dlm: Don't implement dummy scan options.
Bert Vermeulen [Wed, 17 Sep 2014 15:41:41 +0000 (17:41 +0200)]
yokogawa-dlm: Don't implement dummy scan options.

9 years agoPublish config key capabilities.
Bert Vermeulen [Wed, 17 Sep 2014 13:28:29 +0000 (15:28 +0200)]
Publish config key capabilities.

Every driver now publishes its device option config keys, i.e. the
list fetched with sr_config_list(SR_CONF_DEVICE_OPTIONS), with a
set of flags indicating which methods are implemented by the driver
for that key.

The config keys are OR'ed with any combination of SR_CONF_GET,
SR_CONF_SET and SR_CONF_LIST. These are defined as the high bits
of the uint32_t config key. Clients can OR config keys with
SR_CONF_MASK to strip out these bits. This mask will be kept up to
date if other bits are added to the capabilities list; clients MUST
therefore use SR_CONF_MASK for this.

Some keys don't have capability bits added, such as the informative
device type keys (SR_CONF_MULTIMETER, SR_CONF_OSCILLOSCOPE, ...) and
SR_CONF_CONTINUOUS.

Scan options do not have capabilities bits.

9 years agobeaglelogic: Add missing scan options, and cleanup.
Bert Vermeulen [Tue, 16 Sep 2014 21:51:38 +0000 (23:51 +0200)]
beaglelogic: Add missing scan options, and cleanup.

9 years agoConsistently use 'scanopts' variable across all drivers.
Bert Vermeulen [Tue, 16 Sep 2014 20:19:02 +0000 (22:19 +0200)]
Consistently use 'scanopts' variable across all drivers.

9 years agoConsistently use 'devopts' variable across all drivers.
Bert Vermeulen [Tue, 16 Sep 2014 20:11:39 +0000 (22:11 +0200)]
Consistently use 'devopts' variable across all drivers.

9 years agoChange type of SR_CONF keys to uint32_t.
Bert Vermeulen [Tue, 16 Sep 2014 15:49:20 +0000 (17:49 +0200)]
Change type of SR_CONF keys to uint32_t.

9 years agoC++: Make hardware device instances user owned.
Martin Ling [Sun, 14 Sep 2014 04:33:24 +0000 (05:33 +0100)]
C++: Make hardware device instances user owned.

9 years agobindings: Make documentation script work under python 3.x.
Martin Ling [Sun, 14 Sep 2014 04:32:00 +0000 (05:32 +0100)]
bindings: Make documentation script work under python 3.x.

9 years agopython: fix conversion to string variants.
Martin Ling [Sun, 14 Sep 2014 03:53:06 +0000 (04:53 +0100)]
python: fix conversion to string variants.

9 years agohwdriver: Validate types of GVariants passed by user.
Martin Ling [Sun, 14 Sep 2014 03:47:12 +0000 (04:47 +0100)]
hwdriver: Validate types of GVariants passed by user.

9 years agoUse AM_PATH_PYTHON macro to find Python binary.
Martin Ling [Sun, 14 Sep 2014 01:31:10 +0000 (02:31 +0100)]
Use AM_PATH_PYTHON macro to find Python binary.

A specific interpreter can now be passed to configure e.g:

./configure PYTHON=python3

9 years agoC++: use constructors for default argument declarations.
Martin Ling [Sat, 13 Sep 2014 19:23:46 +0000 (20:23 +0100)]
C++: use constructors for default argument declarations.

9 years agoC++: include <cmath> for NAN.
Martin Ling [Sat, 13 Sep 2014 19:23:23 +0000 (20:23 +0100)]
C++: include <cmath> for NAN.

9 years agobindings: Remove 'get_' prefix from all accessors.
Martin Ling [Thu, 11 Sep 2014 20:25:52 +0000 (21:25 +0100)]
bindings: Remove 'get_' prefix from all accessors.

9 years agoscpi: Remove trailing carriage returns.
Martin Ling [Thu, 11 Sep 2014 15:16:04 +0000 (16:16 +0100)]
scpi: Remove trailing carriage returns.

9 years agotests: Fix binary input test.
Uwe Hermann [Wed, 10 Sep 2014 21:55:15 +0000 (23:55 +0200)]
tests: Fix binary input test.

9 years agoinput: Add debug output.
Bert Vermeulen [Wed, 10 Sep 2014 20:55:50 +0000 (22:55 +0200)]
input: Add debug output.

9 years agoinput/binary: Fix broken I/O loop.
Bert Vermeulen [Wed, 10 Sep 2014 20:53:28 +0000 (22:53 +0200)]
input/binary: Fix broken I/O loop.

9 years agoDon't start session with 0-channel devices.
Bert Vermeulen [Wed, 10 Sep 2014 16:21:51 +0000 (18:21 +0200)]
Don't start session with 0-channel devices.

Drivers aren't really able to deal with that in some cases, and it
denotes a frontend bug.

9 years agoscpi: Don't return NULL device from unsuccessful scan.
Bert Vermeulen [Tue, 9 Sep 2014 17:53:55 +0000 (19:53 +0200)]
scpi: Don't return NULL device from unsuccessful scan.

9 years agoscpi-pps: Clean up HP 6632B profile.
Bert Vermeulen [Tue, 9 Sep 2014 11:22:24 +0000 (13:22 +0200)]
scpi-pps: Clean up HP 6632B profile.

9 years agoconfigure.ac: Add and use DRIVER2() to shorten file.
Uwe Hermann [Mon, 8 Sep 2014 21:23:51 +0000 (23:23 +0200)]
configure.ac: Add and use DRIVER2() to shorten file.

9 years agoconfigure.ac: Shorten per-driver lines a bit.
Uwe Hermann [Mon, 8 Sep 2014 21:13:12 +0000 (23:13 +0200)]
configure.ac: Shorten per-driver lines a bit.

9 years agoconfigure.ac: Don't duplicate driver name.
Uwe Hermann [Mon, 8 Sep 2014 21:09:05 +0000 (23:09 +0200)]
configure.ac: Don't duplicate driver name.

The AC_DEFINEs don't need any driver names really, those only end up
as code comments in config.h and are otherwise useless. Thus, don't
duplicate them, we already have the driver names in DRIVER().

9 years agoscpi-pps: Fix compile warning.
Bert Vermeulen [Mon, 8 Sep 2014 21:31:54 +0000 (23:31 +0200)]
scpi-pps: Fix compile warning.

9 years agoscpi-pps: Fix config_set checks.
Bert Vermeulen [Mon, 8 Sep 2014 21:30:21 +0000 (23:30 +0200)]
scpi-pps: Fix config_set checks.

9 years agoconfigure.ac: Show SCPI backends that'll be compiled.
Uwe Hermann [Mon, 8 Sep 2014 20:58:14 +0000 (22:58 +0200)]
configure.ac: Show SCPI backends that'll be compiled.

9 years agoconfigure.ac: Whitespace, cosmetics, sorting, etc.
Uwe Hermann [Mon, 8 Sep 2014 20:30:53 +0000 (22:30 +0200)]
configure.ac: Whitespace, cosmetics, sorting, etc.

9 years agoC++: Whitespace fix.
Martin Ling [Sat, 6 Sep 2014 16:28:27 +0000 (17:28 +0100)]
C++: Whitespace fix.

9 years agoC++: Add SessionDevice class for devices owned by loaded sessions.
Martin Ling [Sat, 6 Sep 2014 15:06:00 +0000 (16:06 +0100)]
C++: Add SessionDevice class for devices owned by loaded sessions.

9 years agoC++: Preserve original channel ordering.
Martin Ling [Sat, 6 Sep 2014 13:56:20 +0000 (14:56 +0100)]
C++: Preserve original channel ordering.

9 years agoC++: Add Configurable::config_check() method.
Martin Ling [Sat, 6 Sep 2014 12:53:09 +0000 (13:53 +0100)]
C++: Add Configurable::config_check() method.