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
Bert Vermeulen
6910bf6bf6
genericdmm: use new driver info_get() API call
2012-08-03 10:27:37 +02:00
Bert Vermeulen
a27999e657
fx2lafw: don't use deprecated hwcap_get_all() driver API call
2012-08-03 10:27:37 +02:00
Bert Vermeulen
c5e82ca5e3
fx2lafw: device scan fixes
2012-08-03 10:27:37 +02:00
Bert Vermeulen
f69b47f0f8
fx2lafw: a device scan always invalidates any previous scans
2012-08-03 10:27:37 +02:00
Bert Vermeulen
6e9339aae2
fx2lafw: use new driver info_get() API call
2012-08-03 10:27:37 +02:00
Bert Vermeulen
3a0fe4023d
genericdmm: use new scan API
2012-08-03 10:27:37 +02:00
Bert Vermeulen
bbb40871c8
genericdmm: more flexible device discovery
2012-08-03 10:27:37 +02:00
Bert Vermeulen
75337758d8
genericdmm: use driver struct-based device instance list
2012-08-03 10:27:37 +02:00
Bert Vermeulen
a8cc8e44b9
fx2lafw: use driver struct-based device instance list
2012-08-03 10:27:37 +02:00
Bert Vermeulen
06717a8a60
fx2lafw: use new instance-based probe list
2012-08-03 10:27:37 +02:00
Bert Vermeulen
3a7a22cb07
fx2lafw: use new init/scan API
2012-08-03 10:27:37 +02:00
Bert Vermeulen
633b2fac75
genericdmm: better subdriver API arguments
2012-08-03 10:27:37 +02:00
Bert Vermeulen
1ef445b3d6
genericdmm/fs9922: no initialization needed
2012-08-03 10:27:36 +02:00
Bert Vermeulen
7fc754a0db
genericdmm: allow for default options in DMM profiles
...
Much better than the special-cased USB vid.pid
2012-08-03 10:27:36 +02:00
Bert Vermeulen
7356a55db8
genericdmm: use vid.pid as USB conn spec
...
: is just too hard for the CLI
2012-08-03 10:27:36 +02:00
Bert Vermeulen
db1352007d
genericdmm: fix header guard
2012-08-03 10:27:36 +02:00
Bert Vermeulen
61136ea603
sr: add new driver API call: scan()
...
This changes the semantics of the init() call as well. That now only
initializes the driver -- an administrative affair, no hardware gets
touched during this call. It returns a standard SR_OK or SR_ERR* code.
The scan() call does a discovery run for devices it knows, and returns
the number found. It can be called at any time.
2012-08-03 10:27:36 +02:00
Bert Vermeulen
40dda2c3a5
sr: remove unused argument from hardware driver function init()
...
It was actually used in one way: the session file loaded abused it for
passing in the filename -- something it definitely wasn't intended for.
This now uses the proper way to pass arguments to a driver: the new
SR_HWCAP_SESSIONFILE.
The OLS driver could also use it as an indication of the serial port to
use instead of actively probing all serial ports on the system, but there
wasn't any frontend code that passed in such a parameter, making it
entirely useless. That will soon be handled differently with the new
scan() API call, regardless.
2012-08-03 10:27:36 +02:00
Ivan Fedorov
0e8d0e24d0
sr: fx2lafw: Add 16bit support for USBee DX and clones
...
gnuplot script support only 8 channels
2012-08-03 00:25:37 +02:00
Ivan Fedorov
c9166745f2
sr: fx2lafw: Add basic support for USBee DX and clones
2012-08-01 00:12:00 +04:00
Bert Vermeulen
d67b663e21
sr: chronovu-la8: fix segfault on discovery
...
If the uninitialized value didn't happen to contain 0, and there
is no Chronovu LA8 connected, the la8_close() causes a segfault
in libftdi.
2012-07-24 00:53:01 +02:00
Uwe Hermann
74e5f12d3d
sr: la8: Support for newer USB VID/PID of the device.
...
Thanks to Jerry Jacobs for the patch!
2012-07-15 00:34:27 +02:00
Uwe Hermann
43be303c84
sr: la8: Drop useless cast.
2012-07-12 23:23:13 +02:00
Uwe Hermann
615183ea16
sr: Drop mastech-va18b, code will be in genericdmm.
2012-07-11 12:57:15 +02:00
Bert Vermeulen
28b9dd1861
sr: fix conditional build for ezusb and serial helpers
2012-07-11 12:36:49 +02:00
Lars-Peter Clausen
e6e8f8e053
sr: demodevice: Make read channel non-blocking
...
Both pipe channels are currently configured as blocking. We read from the pipe
in receive_data. Since the channel is configured as blocking we'll block in
receive_data until all data has been received. receive_data will be called from
the mainloop, so as consequence the mainloop will be blocked until the demo
device has finished sampling. This is not so much of a problem if we are
sampling in blocking mode (using sr_session_run()) and the demo device is the
only device in the session, but it will fail badly for all other configurations
(e.g. multiple devices or async sampling).
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2012-07-10 20:13:31 +02:00