Uwe Hermann
5ddb0cc7d4
serial: Don't hardcode parity and stop bits on Windows.
2012-12-02 14:10:27 +01:00
Uwe Hermann
5ae35c29a7
serial: Full baudrate support on Windows/MinGW.
2012-12-02 13:56:13 +01:00
Uwe Hermann
39e5d79826
serial: RTS/DTR support on Windows/MinGW.
2012-12-02 13:41:49 +01:00
Uwe Hermann
a54dd31e38
serial: Use OS-independent flags for serial port opening.
...
Add SERIAL_RDWR, SERIAL_RDONLY, and SERIAL_NONBLOCK (for now), which are
mapped to the respective OS-specific mechanism in serial_open().
2012-12-02 12:45:54 +01:00
Uwe Hermann
0f84cda05d
serial: Fix Windows build.
2012-12-01 22:34:53 +01:00
Alexandru Gagniuc
c216d62307
demo: Properly stop acquisition after reaching our sample quota
...
The demo driver was using sr_session_source_add_channel() to add
a poll source, but was relying on sr_session_run_poll() to call
sr_session_source_remove(). This, coupled with the design of the
driver caused errors once the samples were collected.
The error stream was most likely related to failing to properly close
one of the channels.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-01 22:00:16 +01:00
Alexandru Gagniuc
49145a63c7
demo: Be more verbose about starting/stopping acquisition
...
This is the first step in fixing the demo driver: figuring out what is
being called and what is not _and_ have it show up in the logs.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-01 22:00:15 +01:00
Bert Vermeulen
71caaad46b
serial: allow for extra rts and dtr options in conn string
...
Options in addition to the usual "9600/8n1" syntax start with a
slash, and take the form of key=value, where different options are
also separated by slashes. For example:
"9600/8n1/rts=0/dtr=1"
This sets RTS low and DTR high.
2012-11-27 00:55:08 +01:00
Uwe Hermann
700dcd5caa
serial: Initial code for setting DTR/RTS.
...
Currently disabled until option parsing is in place.
2012-11-26 17:01:15 +01:00
Alexandru Gagniuc
9047358761
radioshack-dmm: Be more verbose with packet checks
...
Add sr_spew() messages to state why the packet was found to be invalid.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-21 19:33:55 -06:00
Alexandru Gagniuc
2ecc5d432f
radioshack-dmm: Check for valid mode before calculating checksum
...
The packet mode byte is akin to a signature. If that is invalid, there's
no point in calculating the checksum, so check the mode first.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-21 19:30:26 -06:00
Alexandru Gagniuc
54be7c005e
radioshack-dmm: Improve serial detection
...
For device detection, use serial_stream_detect() instead of
serial_readline() + custom logic.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-21 19:19:58 -06:00
Alexandru Gagniuc
551c3d8ce3
serial.c: Sanitize serial_stream_detect
...
Print the timeout in miliseconds, not microseconds.
Only calculate elapsed time once oer loop.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-21 19:18:21 -06:00
Uwe Hermann
ac913e5c35
Add Metex 14-byte ASCII protocol parser.
2012-11-17 22:27:54 +01:00
Bert Vermeulen
90165efe55
ols: if no serial port specified, this driver is not used.
2012-11-16 15:26:47 +01:00
Uwe Hermann
766456be1c
Move serial_stream_detect() to serial.c.
2012-11-14 18:40:07 +01:00
Uwe Hermann
4da1a800df
serial: Compile-fix for Windows/MinGW.
2012-11-14 18:20:13 +01:00
Uwe Hermann
6bef68a7e1
tekpower-dmm: Cosmetics.
2012-11-14 18:13:56 +01:00
Alexandru Gagniuc
2546b05c80
tekpower-dmm: Improve serial detection.
...
Serial detection was using serial_readline, which stripped carriage
return from the packets. This made for a very unreliable detection
mechanism.
Switch to a timeout-based detection mechanism that parses the data
as it comes in. This also allows us to stop parsing once we found
our first valid packet.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-14 18:13:56 +01:00
Uwe Hermann
bda8fc98b1
Drop obsolete genericdmm driver.
2012-11-14 15:26:11 +01:00
Bert Vermeulen
d35afa87c9
tekpower-dmm: use new serial API
2012-11-12 12:50:42 +01:00
Bert Vermeulen
401476daaf
radioshack-dmm: use new serial API
2012-11-12 12:41:10 +01:00
Bert Vermeulen
19ee7dff78
tondaj-sl-814: use new serial API
2012-11-12 03:00:32 +01:00
Bert Vermeulen
f306ca61f6
colead-slm: use new serial API
2012-11-12 02:54:10 +01:00
Bert Vermeulen
109a3ba413
agilent-dmm: use new serial API
2012-11-12 02:25:37 +01:00
Bert Vermeulen
58d03f034f
fluke-dmm: use new serial API
2012-11-12 02:25:17 +01:00
Bert Vermeulen
530f201eb8
ols: use new serial API
2012-11-12 02:24:47 +01:00
Bert Vermeulen
299bdb249e
serial: revamp internal API
...
The only thing to get passed around now is the struct sr_serial_dev_inst
pointer. This should make things more portable as well.
2012-11-12 00:27:17 +01:00
Uwe Hermann
de6e0eca95
sigma/la8/demo: s/SR_PROBE_ANALOG/SR_PROBE_LOGIC/.
2012-11-11 19:40:14 +01:00
Uwe Hermann
472bbb464b
alsa: Use message logging helpers.
2012-11-11 18:14:17 +01:00
Uwe Hermann
64d33dc28e
All drivers: Drop unneeded comments.
2012-11-11 18:09:11 +01:00
Uwe Hermann
fa7730623a
victor-dmm: Cosmetics.
2012-11-11 18:09:11 +01:00
Bert Vermeulen
5df7b20156
serial: avoid Cyrillic conversion specifiers
2012-11-11 03:27:51 +01:00
Bert Vermeulen
fe1c50fba6
ols: fix device discovery
2012-11-11 03:12:10 +01:00
Alexandru Gagniuc
a99e0d2a0c
ols: Do not randomly probe serial ports
...
ols driver used to probe a series of available serial ports obtained
by regexp matching of common serial port names.
There are a number of problems with this approach:
1. It will probe all serial devices, including devices that do not
like to be probed, potentially causing them to act up.
2. It will try to probe serial ports which may already be opened in
other applications for other purposes.
3. It assumes the naming of the serial ports is set in stone, and
creates an unnecessary OS-specific list.
4. It produces unnecessary debug output even when an OLS device is
not connected.
5. etc...
Do not implicitly probe serial ports. Only probe the port specified
by the frontend, if any; otherwise, just quit.
Also get rid of all functionality in serial.c which was designed
specifically for random probing.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-11 03:12:10 +01:00
Uwe Hermann
56eb9f95ba
link-mso19: Use message logging helpers.
2012-11-10 19:42:37 +01:00
Uwe Hermann
92bcedf6e8
demo: Use message logging helpers.
2012-11-10 19:42:37 +01:00
Uwe Hermann
e98b7f1be0
hantek-dso: Use message logging helpers.
2012-11-10 19:42:37 +01:00
Uwe Hermann
47f4f073e0
asix-sigma: Use message logging helpers.
2012-11-10 19:42:37 +01:00
Uwe Hermann
936e27f197
radioshack-dmm: Use new file naming conventions.
2012-11-10 19:42:37 +01:00
Uwe Hermann
4e172b8f8d
radioshack-dmm: Move some stuff out of .h file.
...
Most of the enums and #defines are not needed in multiple files, just
put them in the respective .c file where they're used.
2012-11-10 19:42:37 +01:00
Uwe Hermann
ba6383f855
radioshack-dmm: Cosmetics, coding-style, cleanups.
...
Also, drop some uneeded code and simplify some parts.
2012-11-10 19:41:21 +01:00
Uwe Hermann
302c4b5ab5
serial: Deduplicate log messages a bit.
2012-11-10 01:45:51 +01:00
Uwe Hermann
c073af80f8
Add initial Tondaj SL-814 protocol handling.
2012-11-10 01:45:51 +01:00
Uwe Hermann
aa2af32432
tondaj-sl-814: Initial driver skeleton.
2012-11-10 01:01:28 +01:00
Bert Vermeulen
63f7cb9791
agilent-dmm: use standard serial_readline()
2012-11-07 01:25:10 +01:00
Bert Vermeulen
318dd53c70
serial_readline() now terminates on and strips CR and/or LF
2012-11-07 01:24:23 +01:00
Bert Vermeulen
b87f8504dc
g_get_monotonic_time() takes a signed int64
2012-11-07 01:23:24 +01:00
Bert Vermeulen
74ac7d7f73
agilent-dmm: no need to specify a serialcomm scan parameter
...
It's always 9600/8n1 anyway.
2012-11-07 00:46:30 +01:00
Bert Vermeulen
33e8a3c525
chronovu-la8: not a bug if an unused driver gets asked to clean up
2012-11-07 00:39:46 +01:00
Bert Vermeulen
ff94568366
victor-dmm: add protocol decoder
2012-11-06 19:37:33 +01:00
Bert Vermeulen
642e9d623c
more deconstifying sr_dev_inst for dev_acquisition_stop()
2012-11-06 19:32:53 +01:00
Bert Vermeulen
7a36037546
victor-dmm: add basic USB driver skeleton
2012-11-06 15:16:22 +01:00
Bert Vermeulen
69b07d14db
allow for intermediate stage in stopping acquisition
...
In the case of USB drivers, a driver's dev_acquisition_stop() cannot
simply remove its fd sources from the session and close its devices:
a USB transfer might still be underway, and it needs to be finished
(and its memory freed) properly.
An sr_dev_inst->status value is added: SR_ST_STOPPING, which should
be set when the driver's dev_acquisition_stop() is called, and acts
as a marker for the USB event handler to wind up its operations.
In order for dev_acquisition_stop() to be able to set the sdi status,
however, it needs to be unconstified.
2012-11-06 15:16:22 +01:00
Bert Vermeulen
ac3898d2d0
victor-dmm: Initial driver skeleton.
2012-11-06 15:16:22 +01:00
Toshiaki Yoshida
0ab0cb942f
zeroplus-logic-cube: Fix samplerate and trigger
...
- Default to 1MHz.
The default sample rate is the lowest frequency (100Hz),
but it takes a very long time until 128K memory is full.
- Fix the 1MHz setting.
- Use samplerate list.
- Fix 10MHz frequency.
- Fix trigger.
- Change the size of memory according to the number of samples.
- Add pre-trigger (capture ratio) setting.
- Fix the first acquisition after power on.
2012-11-05 11:46:58 +01:00
Uwe Hermann
41d9427f27
uni-t-dmm: Use new USB helper functions.
2012-11-03 00:03:01 +01:00
Uwe Hermann
0c632d36be
genericdmm: Factor out USB functions.
...
Move sr_usb_connect() and sr_usb_open() to hardware/common/usb.c in a
slightly more generic form and add more error checks and logging.
Let genericdmm use the new/moved functions.
2012-11-03 00:02:56 +01:00
Bert Vermeulen
538ac9a91e
colead-slm: fix sloppy driver context handling
2012-11-02 20:44:34 +01:00
Uwe Hermann
83e3c368c6
serial: Output successful open and the FD.
2012-11-02 18:49:00 +01:00
Uwe Hermann
20af610683
serial: Fix two segfaults.
2012-11-02 18:45:37 +01:00
Uwe Hermann
c485db908a
serial: Fix some sr_err() items.
2012-11-02 18:35:30 +01:00
Uwe Hermann
43d8eaf601
genericdmm: Drop left-over entry.
2012-11-02 18:16:58 +01:00
Uwe Hermann
441b80035e
genericdmm: Drop some dead code.
2012-11-02 18:05:18 +01:00
Uwe Hermann
b19f4622b6
serial: More error-checking & logging, add baudrates.
...
This mostly affects the non-Windows code so far, the rest will follow.
2012-11-02 18:02:20 +01:00
Uwe Hermann
d7c776b9ff
serial: Add missing "break"s.
...
This would otherwise cause bugs when e.g. asking for 2 stopbits.
2012-11-02 15:57:21 +01:00
Bert Vermeulen
a8d09e1326
colead-slm: SL-5868P support
2012-11-02 15:24:30 +01:00
Bert Vermeulen
4d729ddcaf
colead-slm: Initial driver skeleton.
2012-11-02 15:24:30 +01:00
Uwe Hermann
8c1adf3738
Rework FS9721 parser.
...
Merge parts of the tekpower-dmm code (the chip of the TekPower
TP4000ZC seems to be an FS9721_LP3 too) and rework parts of the functions.
Adapt the tekpower-dmm and uni-t-dmm code accordingly.
2012-11-02 01:09:58 +01:00
Alexandru Gagniuc
be5c1d3b52
tekpower-dmm: Use generic fs9721 parser
...
Replace the parser with the fs9721 parser, which is just an adapted
version of this parser.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-11-02 00:50:56 +01:00
Uwe Hermann
886a52b6fb
Return SR_ERR_MALLOC upon allocation errors.
...
Add some TODOs.
2012-10-30 20:25:54 +01:00
Uwe Hermann
6f22a8ef2c
Factor out serial_readline() to serial.c.
...
Only one (slightly different) variant remains in agilent-dmm, this will
be merged soon too, though.
2012-10-30 19:59:21 +01:00
Uwe Hermann
2980cc2494
genericdmm/victor-dmm: Use message logging helpers.
2012-10-30 19:43:46 +01:00
Uwe Hermann
dccbd0ede0
radioshack-dmm: Use message logging helpers.
2012-10-30 19:43:45 +01:00
Uwe Hermann
38d326e879
agilent-dmm: Use message logging helpers.
2012-10-30 19:35:35 +01:00
Uwe Hermann
31d84da3a2
fluke-dmm: Use message logging helpers.
2012-10-30 19:28:37 +01:00
Uwe Hermann
6ac5f8922e
uni-t-dmm: Simplify subdriver setup.
...
So far, it seems we can make this work with just hw_init() needing to
be subdriver-specific (it will point 'di' to the respective per-subdriver
entry), the rest of the API functions can then use a strcmp() on di->name to
learn which subdriver they belong to.
2012-10-30 14:23:05 +01:00
Uwe Hermann
fdbcb86dba
Draft: Make UT61D and VC-820 "first-class" drivers.
...
The 'uni-t-dmm' driver/directory will not appear as a "driver" to
frontends anymore, it's just an internal thing.
The frontends will see a uni-t-ut61d and voltcraft-vc820 driver now,
with the correct names and parsers etc. attached to them.
This is not fully finished yet, but it's a start (and works mostly):
$ sigrok-cli -D
The following devices were found:
UNI-T UT61D with 1 probe: P1
Voltcraft VC-820 with 1 probe: P1
$ sigrok-cli --driver voltcraft-vc820 -D
The following devices were found:
Voltcraft VC-820 with 1 probe: P1
$ sigrok-cli --driver uni-t-ut61d -D
The following devices were found:
UNI-T UT61D with 1 probe: P1
# Now attaching a UNI-T UT61D device via USB.
$ sigrok-cli --driver uni-t-ut61d --samples 3 -O analog
P1: -0.017800 V DC
P1: -0.017600 V DC
P1: -0.017700 V DC
# Now attaching a Voltcraft VC-820 device via USB instead.
$ sigrok-cli --driver voltcraft-vc820 --samples 3 -O analog
P1: -0.319200 V DC
P1: -0.319300 V DC
P1: -0.319300 V DC
2012-10-30 13:11:27 +01:00
Bert Vermeulen
4ca378df88
don't use deprecated g_thread_init/_create
2012-10-29 22:10:05 +01:00
Uwe Hermann
015f1508ad
uni-t-dmm: Voltcraft VC-820 draft support.
...
This is commented out so far, will be implemented properly soon.
2012-10-29 15:20:17 +01:00
Uwe Hermann
6c701476ad
Add protocol parser for FS9721_LP3/FS9721B.
...
The Fortune Semiconductor FS9721_LP3 and FS9721B/Q100 DMM chips are very
similar and the protocol looks identical.
Tested on a Voltcraft VC-820 (FS9721_LP3) with the uni-t-dmm driver
(needs some small changes, tbd).
2012-10-29 15:17:17 +01:00
Bert Vermeulen
a28dac0a73
fluke-dmm: code cleanup
2012-10-29 11:54:20 +01:00
Bert Vermeulen
2c04dede20
Fluke 287/289: support for dBu/dBV measurement units
2012-10-29 11:50:34 +01:00
Uwe Hermann
79081ec80c
Initial support for UNI-T DMMs.
...
This is not yet fully finished, but works for most use-cases.
Tested with a UNI-T UT61D using the UT-D04 USB/HID cable (new version).
2012-10-27 23:17:30 +02:00
Uwe Hermann
45e080b60b
la8: Rename driver.[ch] to protocol.[ch].
2012-10-27 22:36:34 +02:00
Uwe Hermann
f3a35908ef
la8: Adapt to new driver conventions.
2012-10-27 22:36:19 +02:00
Uwe Hermann
bbabddbd64
tekpower-dmm: Cosmetics, coding-style, consistency fixes.
2012-10-27 22:25:04 +02:00
Alexandru Gagniuc
7dc55d930f
Add support for the TekPower TP4000ZC DMM.
...
Also known as Digitek DT4000ZC.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-10-27 22:25:04 +02:00
Uwe Hermann
545f978639
config.h usage cleanups.
...
- Drop config.h #include from files that don't actually use any of
its contents (at the moment).
- Add comment for those that do need it.
2012-10-24 00:41:21 +02:00
Bert Vermeulen
589a10135a
clean up autoconf/autobuild scripts
2012-10-22 01:48:39 +02:00
Alexandru Gagniuc
7c41dc4774
radioshack-dmm: Implement support for "LOGIC" mode
...
LOGIC mode sends the following data:
V < 0 : actual voltage
0 <= V < 1 : LOW
1 <= V < 2 : actual voltage
2 <= V : HIGH
We follow the same idea, and set our unit to BOOLEAN for the crazy
case (HIGH or LOW).
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-10-20 23:03:51 +02:00
Alexandru Gagniuc
0f70830194
libsigrok: (Trivial) Add support for 2400 baud
...
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-10-20 23:02:14 +02:00
Bert Vermeulen
fe31f8b9f9
fluke-dmm: add support for Fluke 187
2012-10-16 23:33:54 +02:00
Alexandru Gagniuc
be8dbf3ab2
radioshack-dmm: (Trivial) Convenience fixes
...
While testing the new radioshack-dmm driver with pulseview, I found
a few inconvenients.
1. Print an info message when a port is probed, and when a device is
found. This makes it easy to tell if and where the driver is looking.
2. num_samples was not reset after the first aquisition, so the
second aquisition would quit right away. Reset num_samples at start
of a new aquisition.
3. There's no need to open the serial port RW, so change O_RDWR to
O_RDONLY when opening the port.
These changes are too trivial to split into different patches.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-10-16 11:16:41 +02:00
Bert Vermeulen
7b0a85c81c
radioshack-dmm: build fixes
2012-10-15 18:25:48 +02:00
Alexandru Gagniuc
d375b3c3ec
radioshack-dmm: Add support for Radioshack 22-812 DMM
...
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-10-15 17:32:58 +02:00
Alexandru Gagniuc
e8e9dcdd70
serial: (Trivial) add support for 4800 baud
...
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-10-15 17:32:58 +02:00
Uwe Hermann
a2e222d24f
sr: struct drv_context is global now.
2012-09-27 23:29:33 +02:00
Bert Vermeulen
d38d2ef0ce
fluke-dmm: support for all basic 287 functionality
2012-09-25 19:53:05 +02:00
Bert Vermeulen
f46a36ad80
fluke-dmm: definitely use CR as line terminator
2012-09-25 19:53:05 +02:00
Bert Vermeulen
acd29accb3
fluke-dmm: add Fluke 287 to supported list
2012-09-25 19:53:05 +02:00
Bert Vermeulen
fb9d3bf9cc
sr: always turn off ICRNL on serial ports
...
It does rather screw with protocols that use CR.
2012-09-25 19:53:05 +02:00
Bert Vermeulen
d3f8f1415c
fluke-dmm: flesh out the driver API
2012-09-25 19:53:05 +02:00
Bert Vermeulen
4129832014
fluke-dmm: auto-discover serial bitrate if not provided
2012-09-25 19:53:05 +02:00
Bert Vermeulen
bc41e012e6
fluke-dmm: don't log anything if no conn params given
2012-09-25 19:53:05 +02:00
Bert Vermeulen
fb480d578e
fluke-dmm: fix discovery
2012-09-25 19:53:05 +02:00
Bert Vermeulen
5c51e09868
sr: turn off canonical mode and echo ion serial ports by default
2012-09-25 19:53:05 +02:00
Bert Vermeulen
e7edd64f45
fluke-dmm: build fixes
2012-09-25 19:53:05 +02:00
Bert Vermeulen
4f958423d1
fluke-dmm: basic scan functionality
2012-09-25 19:53:05 +02:00
Bert Vermeulen
883a2e9e71
fluke-dmm: initial driver skeleton
2012-09-25 19:53:05 +02:00
Bert Vermeulen
c2016fa0eb
agilent-dmm: don't log anything if no conn params given
2012-09-17 00:00:27 +02:00
Bert Vermeulen
e9022f596d
sr: make struct drv_context global
2012-09-11 21:27:26 +02:00
Bert Vermeulen
f5cfe894ec
fx2lafw: use default libusb context
2012-09-11 21:20:50 +02:00
Bert Vermeulen
19b0cce312
hantek-dso: use default libusb context
2012-09-11 21:16:16 +02:00
Bert Vermeulen
b186aa78b8
agilent-dmm: fix model identifiers
2012-09-10 21:27:50 +02:00
Bert Vermeulen
8c0152f29b
agilent-dmm: tentative support for all U123x and U125x models
...
Only tested on U1233A, but it just might work.
The U125x protocol decoding only supports voltage, current, resistance,
capacitance and diode measurements for now.
2012-09-10 01:00:48 +02:00
Bert Vermeulen
a4394fb3d9
agilent-dmm: code cleanup
...
This should make it easier to support other Agilent U12xx models
2012-09-10 00:13:26 +02:00
Bert Vermeulen
e066c32a25
agilent-dmm: fix AC/DC mode detection
2012-09-09 22:49:07 +02:00
Bert Vermeulen
f2e86bbfa6
agilent-dmm: make parser deal with input better
2012-09-09 22:48:22 +02:00
Bert Vermeulen
81599cc55b
agilent-dmm: remove IDN check at 1Hz, we just don't need it.
...
Some debug message cleanup.
2012-09-08 14:53:49 +02:00
Bert Vermeulen
e6b021f377
agilent-dmm: support for submodes
2012-09-08 03:06:45 +02:00
Bert Vermeulen
69a7402490
genericdmm/victor-70c: fix resistance and frequency measurements
2012-09-08 02:28:41 +02:00
Bert Vermeulen
c0d93341cb
generic-dmm: cosmetics
2012-09-02 15:42:56 +02:00
Bert Vermeulen
f6b8ffa6c0
genericdmm/victor-70c: warn if detaching kernel driver fails
2012-09-02 15:42:56 +02:00
Bert Vermeulen
e93cdf428c
sr: mostly finished Agilent DMM driver
2012-09-02 15:42:56 +02:00
Bert Vermeulen
792fc68658
serial: add serial_set_paramstr()
2012-09-02 15:42:56 +02:00
Bert Vermeulen
f38b9763fa
serial: fix flow control setting
2012-09-02 15:42:56 +02:00
Bert Vermeulen
6a6e23abf5
serial: set speed in both directions
2012-09-02 15:42:56 +02:00
Bert Vermeulen
6ac0db19f3
sr: add new agilent-dmm driver (Agilent U12xxA multimeters)
2012-09-02 15:42:56 +02:00
Bert Vermeulen
b84c13d700
genericdmm: Victor 70C multimeter support
2012-08-18 16:23:08 +02:00
Bert Vermeulen
3c6ce226de
genericdmm: finish basic USB support
2012-08-18 16:23:08 +02:00
Bert Vermeulen
811deee4af
sr/drivers: add API calls sr_dev_inst_list() and sr_dev_inst_clear()
...
These are used to list the device instances currently known to the driver,
and clear that list.
Drivers that don't necessarily clear their list of instances on every scan,
such as genericdmm, need to provide these to the frontend to keep instance
management sane.
2012-08-06 00:59:25 +02:00
Bert Vermeulen
014359e329
sr/drivers: obsolete SR_HWCAP_PROBECONFIG
...
Since probes now live in a struct sr_dev_inst owned by the driver, it
already knows about them. Instead of a frontend telling the driver to
configure probes, all driver now do this just before starting acquisition.
2012-08-05 18:56:12 +02:00
Bert Vermeulen
fabe59b326
sr: drivers using sr_usb_dev_inst_new() must free it properly as well
...
sr_usb_dev_inst_free() doesn't really do anything, but it might one
day.
2012-08-04 12:21:02 +02:00
Bert Vermeulen
228b2cccaf
asix-sigma: fix double free
2012-08-03 14:19:00 +02:00
Bert Vermeulen
8012ae1e3b
chronovu-la8: fix double free
2012-08-03 14:18:02 +02:00
Bert Vermeulen
afc8831938
chronovu-la8: code cleanup
2012-08-03 14:06:52 +02:00
Bert Vermeulen
7021f98596
chronovu-la8: remove session source when done
2012-08-03 11:29:01 +02:00
Bert Vermeulen
503c4afbb4
asix-sigma: remove session source when done
2012-08-03 11:29:01 +02:00
Bert Vermeulen
7fd3e85961
demo: remove sources from session when done
2012-08-03 11:29:01 +02:00
Bert Vermeulen
a3508e33f9
hantek-dso: remove sources from session when done
2012-08-03 11:29:01 +02:00
Bert Vermeulen
26bf9d56c0
ols: remove serial source from session when done
2012-08-03 11:29:01 +02:00
Bert Vermeulen
310e9e9be4
zeroplus: use driver-private storage for instances
2012-08-03 11:29:00 +02:00
Bert Vermeulen
fefc4b858e
ols: use driver-private storage for instances
2012-08-03 11:29:00 +02:00
Bert Vermeulen
301a5e4c4a
genericdmm: use driver-private storage for instances
2012-08-03 11:29:00 +02:00
Bert Vermeulen
b4750a3a93
demo: use driver-private storage for instances
2012-08-03 11:29:00 +02:00
Bert Vermeulen
b9636cf4dc
fx2lafw: minor cleanup
2012-08-03 11:29:00 +02:00
Bert Vermeulen
cf1ebd5446
chronovu-la8: don't try to clean up unless we've initialized
2012-08-03 11:29:00 +02:00
Bert Vermeulen
b32503cccd
asix-sigma: properly init driver-private storage
2012-08-03 11:29:00 +02:00
Bert Vermeulen
1644fb2473
chronovu-la8: use driver-private storage for instances
2012-08-03 11:29:00 +02:00
Bert Vermeulen
0e1357e896
asix-sigma: use driver-private storage for instances
2012-08-03 11:29:00 +02:00
Bert Vermeulen
dc9dbe949a
fx2lafw: use driver-private storage for instances and libusb_context
2012-08-03 11:29:00 +02:00
Bert Vermeulen
269971ddce
hantek-dso: use driver-private storage for instances and libusb_context
2012-08-03 11:29:00 +02:00
Bert Vermeulen
6f57fd9694
sr: remove obsolete SR_DI_INST
2012-08-03 11:29:00 +02:00
Bert Vermeulen
87ca93c504
sr/drivers: add proper probe list to instances of all drivers
2012-08-03 11:29:00 +02:00
Bert Vermeulen
b35c829306
sr/drivers: fix off-by-one if frontend-initiated probe configuration
2012-08-03 11:29:00 +02:00
Bert Vermeulen
9e90dcba9c
sr/drivers: remove driver API call dev_status_get()
...
It's obsolete: no frontend ever used it, and neither did libsigrok.
The sdi->status field is only used internally by some drivers, and
should probably be moved to the driver-specific context structs.
2012-08-03 11:27:31 +02:00
Bert Vermeulen
5d9ed643e9
ols: change driver dev_acquisition_start/_stop calls to use sdi
...
...yeah, forgot OLS.
2012-08-03 11:27:31 +02:00
Bert Vermeulen
c4a1de59f8
genericdmm: cosmetic change
2012-08-03 11:27:31 +02:00
Bert Vermeulen
3f848bb7a9
zeroplus: comment out 32-probe models for now
2012-08-03 11:27:31 +02:00
Bert Vermeulen
428edbe13d
zeroplus-logic-cube: fix scan to correctly find model
2012-08-03 11:27:31 +02:00
Bert Vermeulen
3ffb6964a1
sr/drivers: change driver dev_acquisition_start/_stop calls to use sdi
2012-08-03 11:27:31 +02:00
Bert Vermeulen
25a0f108f4
sr/drivers: change driver dev_open/dev_close calls to use sdi
2012-08-03 11:27:31 +02:00
Bert Vermeulen
6f4b1868e8
sr/drivers: use sr_dev_inst instead of device index for dev_config_set()
...
All driver API calls using device index as a parameter will instead use a
const struct sr_dev_inst.
2012-08-03 10:27:39 +02:00
Bert Vermeulen
9c4311c524
chronovu-la8: adjust to multi-vid/pid patch
2012-08-03 10:27:39 +02:00
Bert Vermeulen
444adea232
zeroplus-logic-cube: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
2ca4465b3d
ols: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
2ce9f04629
hantek-dso: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
cbd798f400
fx2lafw: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
46c7a4daa7
demo: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
7566601c21
chronovu-la8: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
b2b5445c30
asix-sigma: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:39 +02:00
Bert Vermeulen
2efc5948b6
ols: scan fix
2012-08-03 10:27:39 +02:00
Bert Vermeulen
b0c8d7ac7f
hantek-dso: scan/info_get fixes
2012-08-03 10:27:39 +02:00
Bert Vermeulen
7dfcf010a0
demo: scan/info_get fixes
2012-08-03 10:27:39 +02:00
Bert Vermeulen
cfe8a84dd7
chronovu-la8: scan/info_get fixes
2012-08-03 10:27:39 +02:00
Bert Vermeulen
d7bbecfdb9
asix-sigma: scan/info_get fixes
2012-08-03 10:27:39 +02:00
Bert Vermeulen
626409abfb
zeroplus-logic-cube: use new driver info_get() API call
2012-08-03 10:27:38 +02:00
Bert Vermeulen
dddfb3dbf0
ols: use new driver info_get() API call
2012-08-03 10:27:38 +02:00
Bert Vermeulen
0b79bcbb9d
hantek-dso: use new driver info_get() API call
2012-08-03 10:27:38 +02:00
Bert Vermeulen
dfb0fa1a66
demo: use new driver info_get() API call
2012-08-03 10:27:38 +02:00
Bert Vermeulen
6a2761fd99
chronovu-la8: use new driver info_get() API call
2012-08-03 10:27:38 +02:00
Bert Vermeulen
4147960558
asix-sigma: use new driver info_get() API call
2012-08-03 10:27:38 +02:00
Bert Vermeulen
eec944c5b8
asix-sigma: don't attempt to free static struct
...
Added more debugging as well.
2012-08-03 10:27:38 +02:00
Bert Vermeulen
067d07166b
demo: use new scan API
2012-08-03 10:27:38 +02:00
Bert Vermeulen
7da6f9d54a
zeroplus-logic-cube: init and scan fixes
...
libusb context needs to be initialized only once, not ever scan.
Every scan invalidates the last one, so clean up any previous run's
results first.
2012-08-03 10:27:38 +02:00
Bert Vermeulen
4ca3898445
zeroplus-logic-cube: use new scan API
2012-08-03 10:27:38 +02:00
Bert Vermeulen
39cfdd75f9
hantek-dso: use new scan API
2012-08-03 10:27:38 +02:00
Bert Vermeulen
0448d11097
asix-sigma: use new scan API + fixes
...
Now freeing FTDI context and driver-private context.
2012-08-03 10:27:38 +02:00
Bert Vermeulen
c4f3ed4bb0
chronovu-la8: use new scan API + fixes
...
Now freeing FTDI context and driver-private context.
2012-08-03 10:27:38 +02:00
Bert Vermeulen
f8c617cf4c
hantek-dso: instance list fix
2012-08-03 10:27:38 +02:00
Bert Vermeulen
10e5cbede8
ols: use new scan API
2012-08-03 10:27:38 +02:00
Bert Vermeulen
ed300b9f6a
asix-sigma: use driver struct-based device instance list
2012-08-03 10:27:38 +02:00
Bert Vermeulen
765ef2f725
chronovu-la8: use driver struct-based device instance list
2012-08-03 10:27:38 +02:00
Bert Vermeulen
dcf03d6dbd
demo: use driver struct-based device instance list
2012-08-03 10:27:38 +02:00
Bert Vermeulen
3275654708
zeroplus-logic-cube: use driver struct-based device instance list
2012-08-03 10:27:38 +02:00
Bert Vermeulen
982947f7a2
hantek-dso: use driver struct-based device instance list
2012-08-03 10:27:38 +02:00
Bert Vermeulen
e5e81856b4
ols: use driver struct-based device instance list
2012-08-03 10:27:38 +02:00
Bert Vermeulen
d6db79a48c
genericdmm: device scan fixes
2012-08-03 10:27:38 +02:00
Bert Vermeulen
f1a14ea7ab
genericdmm: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:37 +02:00