Uwe Hermann
e2b2382101
Make struct sr_session opaque.
...
The fields of this structure should not be used directly by frontends
(and none of the current ones do). Thus, make the struct opaque and hide
its contents from the API.
2013-11-22 15:02:12 +01:00
Matthias Heidbrink
f57924179d
gmc_mh_1x_2x: Completed driver for Metrahit 1x/2x
...
This driver supports devices with “RS232“ interface (Metrahit 16I,
18S, Siemens B1105 tested, 29S incomplete).
2013-11-22 02:42:04 +01:00
Matthias Heidbrink
367983a744
Added SR_MQ_TIME and SR_MQFLAG_DURATION.
2013-11-22 02:31:17 +01:00
Matthias Heidbrink
a970522b6d
serial: Allow 5 and 6 data bits.
2013-11-22 02:31:17 +01:00
Matthias Heidbrink
7b4edcb654
gmc_mh_1x_2x: Inital driver skeleton.
2013-11-22 02:31:17 +01:00
Martin Ling
13cd8197eb
Update for libserialport v0.1 API.
2013-11-22 02:14:16 +01:00
Bert Vermeulen
c4650aca12
Suppress compile warning
2013-11-20 22:06:01 +01:00
poljar (Damir Jelić)
8c273ac57c
output/text: Fix memory leak of internal state buffers.
...
The text output module keeps buffers for internal state, upon receiving a DF_END
packet it frees the internal context but the buffers are never freed.
This adds a text_cleanup() helper function and registers it as the cleanup
function within all the text output modules.
2013-11-20 22:03:02 +01:00
Uwe Hermann
61bab807f4
DT4000ZC/TP4000ZC: Force DTR=1 on the serial port.
...
This fixes the driver e.g. on NetBSD.
2013-11-20 00:42:08 +01:00
Uwe Hermann
4403c39fe4
ols: Always open serial port in nonblocking mode.
...
The scan() function was opening the port in non-blocking mode, the dev_open()
function however was not using the SERIAL_NONBLOCK flag. This led to hangs
in certain situations.
This fixes the OLS e.g. on NetBSD.
2013-11-19 23:22:46 +01:00
Uwe Hermann
1a54044299
serial.c: Minor cosmetic fix.
2013-11-19 20:09:59 +01:00
Martin Ling
a82635f252
Use new sp_port_config fields.
2013-11-19 14:26:18 +01:00
Martin Ling
e385e2ed90
serial: Use new sp_set_config instead of sp_set_params.
2013-11-19 14:26:18 +01:00
poljar (Damir Jelić)
066d42b1c8
serial: Fix leak in serial_open.
...
A new sp_port is created every time we call serial_open (sp_get_port_by_name
implicitly creates one for us), so free it every time we call serial_close.
2013-11-19 10:29:24 +01:00
poljar (Damir Jelić)
90c7f4e92d
device: Fix leak if probe groups are created.
2013-11-19 10:29:14 +01:00
poljar (Damir Jelić)
1130e4229b
rigol-ds1xx2: Send a SR_DF_END packet before acquisition stop.
...
Without a SR_DF_END samples could be cached in the internal buffer of an output
module and never flushed, therefore they would be missing in the final output.
By sending a SR_DF_END packet we force the output to be flushed.
2013-11-15 17:00:07 +01:00
Uwe Hermann
449cc16bb2
serial.c: Temporary quickfix until a libserialport fix is done.
2013-11-15 12:23:09 +01:00
Uwe Hermann
dc99135322
libsigrok-internal.h: Fix libserialport.h name.
2013-11-15 09:48:34 +01:00
Uwe Hermann
26e0361cc6
uni-t-dmm: Drop unused packet_request callback.
2013-11-15 09:36:51 +01:00
Uwe Hermann
c4f2dfd0f0
configure.ac: libserialport is optional.
...
Disable drivers that need serial port support if libserialport is not found.
Also, disable building various other serial port related code in that case.
2013-11-15 09:36:51 +01:00
Uwe Hermann
0dcb0c981e
README: Document new libserialport requirement.
2013-11-14 23:48:29 +01:00
Uwe Hermann
6a76efebc1
serial.c: Fix a few return values.
2013-11-14 23:48:28 +01:00
Uwe Hermann
a0dfaa6c4c
serial.c: Cosmetics, coding-style.
2013-11-14 23:48:28 +01:00
Martin Ling
0d4405ce5e
Update for renamed libserialport header file.
2013-11-14 23:48:16 +01:00
Martin Ling
f2b830f71d
Fix silly copy-paste error.
2013-11-14 23:48:16 +01:00
Martin Ling
c9bc57b6bc
Update to new libserialport API.
2013-11-14 23:48:16 +01:00
Martin Ling
a9bce5a561
Use libserialport for serial port access.
2013-11-14 23:48:16 +01:00
Uwe Hermann
3220827c57
error.c: Add SR_ERR_PROBE_GROUP handling.
2013-11-11 07:53:52 +01:00
Uwe Hermann
a0dc461d7b
doxygen: Fix/improve 'struct sr_probe_group' documentation.
2013-11-11 07:42:51 +01:00
Uwe Hermann
57d0a2e195
unittests: Update for probe-groups changes.
2013-11-10 23:22:18 +01:00
Bert Vermeulen
58f4336963
rigol-ds1xx2: Unbreak listing of _VDIV and _COUPLING
2013-11-08 01:03:19 +01:00
Bert Vermeulen
5f77dffc02
rigol-ds1xx2: Unbreak listing of SR_CONF_DEVICE_OPTIONS
2013-11-08 01:03:19 +01:00
Bert Vermeulen
be60a9e4a9
rigol-ds1xx2: Better error reporting when probe groups are required
2013-11-08 01:03:19 +01:00
Bert Vermeulen
78bcc55afa
rigol-ds1xx2: Minor coding style fixes
2013-11-08 01:03:19 +01:00
Bert Vermeulen
bdc955bc06
Add SR_ERR_PROBE_GROUP, denoting a probe group requirement
2013-11-08 01:03:18 +01:00
Bert Vermeulen
d3c74a6fb0
probe_groups: API changes required to implement probe groups.
2013-11-08 01:03:18 +01:00
Bert Vermeulen
ba358ffd83
rigol-ds1xx2: fix bitrot in device cleanup code
2013-11-08 01:03:18 +01:00
Bert Vermeulen
e43fdd8d4f
rigol-ds1xx2: Don't assume valid sdi
2013-11-08 01:03:18 +01:00
Bert Vermeulen
57ecdbd742
Update API documentation
2013-11-08 01:03:18 +01:00
Bert Vermeulen
45311368de
rigol-ds1xx2: Skip obsolete fields
2013-11-08 01:03:18 +01:00
Martin Ling
af54bac90a
python: Map probe group configuration to ProbeGroup attributes.
2013-11-08 01:03:17 +01:00
Martin Ling
417e9f3ab4
python: Add classes for probes and probe groups.
2013-11-08 01:03:17 +01:00
Martin Ling
f48e0249b4
rigol-ds1xx2: implement probe group specific options.
2013-11-08 01:03:17 +01:00
Martin Ling
3d3a601e80
rigol-ds1xx2: create probe groups.
2013-11-08 01:03:17 +01:00
Martin Ling
5150ef336b
probe_groups: Add a name field to sr_probe_group.
2013-11-08 01:03:17 +01:00
Martin Ling
909cc050bf
probe_groups: initialise sdi->probe_groups to NULL.
2013-11-08 01:03:17 +01:00
Martin Ling
54e7a3d0d7
probe_groups: Update Python bindings for API change.
2013-11-08 01:03:16 +01:00
Bert Vermeulen
5daed4bc6d
Use priv for consistency
2013-11-08 01:03:16 +01:00
Martin Ling
8f996b8948
probe_groups: API changes required to implement probe groups.
2013-11-08 01:03:16 +01:00
Dan Horák
8dce54f7aa
update udev rules
...
With usbtmc driver being classified under usbmisc in newer kernels the udev rules
need an update.
2013-11-04 10:56:19 +01:00