Martin Ling
bf505eed6b
serial_readline: Implement using sp_blocking_read.
2014-09-24 23:18:20 +02:00
Martin Ling
18e4d5bc45
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.
2014-09-24 23:18:20 +02:00
Soeren Apel
2fe6210af6
Add serial_num and connection_id fields to sr_dev_inst
2014-09-24 00:40:03 +02:00
Soeren Apel
db156e5409
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.
2014-09-24 00:40:03 +02:00
Bert Vermeulen
f12d997948
demo: Fix pattern mode and amplitude option publishing.
2014-09-23 22:40:47 +02:00
Bert Vermeulen
9a10ce65d6
colead-slm: Properly check acquisition sample limit.
2014-09-23 22:27:34 +02:00
Bert Vermeulen
79f92686c6
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.
2014-09-22 00:47:22 +02:00
Bert Vermeulen
04c2f202f2
input/chronovu_la8: Fix broken I/O loop.
2014-09-22 00:47:22 +02:00
Uwe Hermann
af945a6625
Typos and consistency fixes.
2014-09-19 01:03:32 +02:00
Bert Vermeulen
d4ccb6bd8f
yokogawa-dlm: Don't implement dummy scan options.
2014-09-17 17:41:41 +02:00
Bert Vermeulen
5827f61b64
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.
2014-09-17 15:36:11 +02:00
Bert Vermeulen
138589b02e
beaglelogic: Add missing scan options, and cleanup.
2014-09-16 23:51:38 +02:00
Bert Vermeulen
a0e0bb4149
Consistently use 'scanopts' variable across all drivers.
2014-09-16 22:19:02 +02:00
Bert Vermeulen
f254bc4bba
Consistently use 'devopts' variable across all drivers.
2014-09-16 22:11:39 +02:00
Bert Vermeulen
584560f142
Change type of SR_CONF keys to uint32_t.
2014-09-16 21:22:41 +02:00
Martin Ling
13fef1ed24
hwdriver: Validate types of GVariants passed by user.
2014-09-14 04:47:12 +01:00
Martin Ling
edbd09250b
scpi: Remove trailing carriage returns.
2014-09-11 17:20:28 +02:00
Bert Vermeulen
25f20faf0d
input: Add debug output.
2014-09-10 22:55:50 +02:00
Bert Vermeulen
88189019ac
input/binary: Fix broken I/O loop.
2014-09-10 22:53:28 +02:00
Bert Vermeulen
013ec84b83
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.
2014-09-10 18:21:51 +02:00
Bert Vermeulen
cfd8ec53ab
scpi: Don't return NULL device from unsuccessful scan.
2014-09-09 19:53:55 +02:00
Bert Vermeulen
bfc8679937
scpi-pps: Clean up HP 6632B profile.
2014-09-09 13:24:30 +02:00
Bert Vermeulen
331f56543a
scpi-pps: Fix compile warning.
2014-09-08 23:31:54 +02:00
Bert Vermeulen
fdedbfcdef
scpi-pps: Fix config_set checks.
2014-09-08 23:30:21 +02:00
Aurelien Jacobs
effb9dd1c2
rigol-ds: replace some magic numbers by appropriate constant or variable
...
This fixes bug #406 .
2014-09-08 12:58:30 +02:00
Bert Vermeulen
bc4a2a46ed
Add support for HP 6632B.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
01b0257aef
scpi-pps: Create one channel per MQ/output combination.
...
This allows frontends to trivially select which MQs on which channels
they want to see; others won't even be fetched.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
379d260965
Add private storage pointer to struct sr_channel.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
478c8d923e
scpi-pps: Simplify SCPI command handling.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
3222ee103d
scpi-pps: Add support for Rigol DP831A/DP832A.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
58b77c41ff
scpi-pps: Use regex to match model names.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
22c18b0370
scpi-pps: Generalize vendor name cleanup.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
d4eabea847
scpi-pps: Add support for Rigol DP832.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
9e45cd41fd
scpi-pps: Add basic cross-vendor PPS functionality.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
a1eaa9e066
Revamp PPS-related config keys.
2014-09-08 12:45:21 +02:00
Bert Vermeulen
ca1a7cb56f
scpi-pps: Initial driver skeleton.
2014-09-08 12:45:21 +02:00
Aurelien Jacobs
af1e487e3f
brymen-bm86x: Add current loop sensor support.
2014-09-06 17:22:03 +02:00
Bert Vermeulen
7343ad1ec7
scpi/gpib: Rename backend to scpi_libgpib.
...
libgpib is the userspace component to linux-gpib's kernel modules that
implement low-level interface drivers.
When libsigrok gets userspace GPIB interface drivers, that backend will
be the "official" scpi_gpib.
2014-09-05 18:33:48 +02:00
Martin Ling
bb2a4ed407
Add GPIB SCPI backend using linux-gpib and libgpib.
2014-09-05 10:34:04 +01:00
Bert Vermeulen
e8779db70c
input/wav: Now really correctly check supported sample size.
2014-09-02 22:09:17 +02:00
Bert Vermeulen
110fe1b4a2
agilent-dmm: U124xx/U125xx: Add current loop sensor support.
...
Also fixes frequency support.
2014-09-02 21:55:52 +02:00
Bert Vermeulen
e82d34a9c2
scpi/usbtmc: Minor debug output changes.
2014-09-02 21:27:16 +02:00
Bert Vermeulen
73145219c0
input/wav: Correctly check supported sample size.
2014-09-02 21:26:15 +02:00
Marcus Comstedt
28d9df7292
input/wav: Fix broken handling of float32 samples on big endian
...
Also, make sure that floats are 32 bit even in the case of an
extensible header.
2014-09-02 19:14:25 +02:00
Bert Vermeulen
c7f5219e62
agilent-dmm: Add temperature regex to U125xx parser.
2014-09-02 01:01:56 +02:00
Bert Vermeulen
a965748ae2
agilent-dmm: U124xx/U125xx: support 5 more modes.
...
This adds support for resistance, capacitance, frequency, continuity,
and temperature.
2014-09-02 00:55:41 +02:00
Matthias Heidbrink
5791bdf604
gmc-mh-1x-2x-rs232: Completed energy measurement ranges (V, A, W) for Metrahit 29S.
2014-09-01 23:14:56 +02:00
Bert Vermeulen
ee2bcdfc44
agilent-dmm: U124x/U125x fixes.
2014-09-01 21:44:37 +02:00
Uwe Hermann
129d5bc961
error.c: Add missing entries.
2014-09-01 00:08:53 +02:00
Soeren Apel
ac10a927b5
yokogawa-dlm: Replace g_try_malloc() calls and fix coding style
2014-08-31 00:42:10 +02:00