sigrok:sigrok.git
5 years agogeneric-dmm: cosmetics
Bert Vermeulen [Sun, 2 Sep 2012 13:39:56 +0000 (15:39 +0200)]
generic-dmm: cosmetics

5 years agogenericdmm/victor-70c: warn if detaching kernel driver fails
Bert Vermeulen [Sun, 2 Sep 2012 13:13:00 +0000 (15:13 +0200)]
genericdmm/victor-70c: warn if detaching kernel driver fails

5 years agosr: mostly finished Agilent DMM driver
Bert Vermeulen [Sun, 2 Sep 2012 13:11:52 +0000 (15:11 +0200)]
sr: mostly finished Agilent DMM driver

5 years agoserial: add serial_set_paramstr()
Bert Vermeulen [Sun, 2 Sep 2012 13:02:24 +0000 (15:02 +0200)]
serial: add serial_set_paramstr()

5 years agoserial: fix flow control setting
Bert Vermeulen [Sun, 2 Sep 2012 13:01:23 +0000 (15:01 +0200)]
serial: fix flow control setting

5 years agoserial: set speed in both directions
Bert Vermeulen [Sun, 2 Sep 2012 13:00:02 +0000 (15:00 +0200)]
serial: set speed in both directions

5 years agosr: add new agilent-dmm driver (Agilent U12xxA multimeters)
Bert Vermeulen [Sun, 2 Sep 2012 09:58:29 +0000 (11:58 +0200)]
sr: add new agilent-dmm driver (Agilent U12xxA multimeters)

5 years agosrd: uart: Fix regression.
Uwe Hermann [Fri, 31 Aug 2012 09:34:46 +0000 (11:34 +0200)]
srd: uart: Fix regression.

Thanks Iztok Jeras <iztok.jeras@gmail.com> for the report.

5 years agoAdd initial SD card (SPI mode) decoder.
Uwe Hermann [Tue, 31 Jul 2012 21:48:13 +0000 (23:48 +0200)]
Add initial SD card (SPI mode) decoder.

This is work in progress, but it already works partially, and can be used
for actual decodes of some commands.

This PD stacks on top of the SPI protocol decoder.

5 years agogenericdmm: Victor 70C multimeter support
Bert Vermeulen [Sat, 18 Aug 2012 14:22:36 +0000 (16:22 +0200)]
genericdmm: Victor 70C multimeter support

5 years agogenericdmm: finish basic USB support
Bert Vermeulen [Sat, 18 Aug 2012 14:21:21 +0000 (16:21 +0200)]
genericdmm: finish basic USB support

5 years agosr: corrected VID for Victor 70C
Bert Vermeulen [Sat, 18 Aug 2012 12:34:29 +0000 (14:34 +0200)]
sr: corrected VID for Victor 70C

5 years agosr: added mqflags field to sr_datafeed_analog
Bert Vermeulen [Sat, 18 Aug 2012 12:33:51 +0000 (14:33 +0200)]
sr: added mqflags field to sr_datafeed_analog

5 years agosr: add fahrenheit and boolean MQ units
Bert Vermeulen [Sat, 18 Aug 2012 12:26:43 +0000 (14:26 +0200)]
sr: add fahrenheit and boolean MQ units

5 years agosr: add continuity MQ
Bert Vermeulen [Sat, 18 Aug 2012 12:25:21 +0000 (14:25 +0200)]
sr: add continuity MQ

5 years agoqt: Remove another sr_session_stop().
Uwe Hermann [Mon, 6 Aug 2012 21:07:49 +0000 (23:07 +0200)]
qt: Remove another sr_session_stop().

This caused a segfault with recent libsigrok versions.

5 years agoqt: Use new sr_dev_config_set() API call.
Uwe Hermann [Mon, 6 Aug 2012 20:49:57 +0000 (22:49 +0200)]
qt: Use new sr_dev_config_set() API call.

5 years agoqt: UIs shouldn't call sr_session_stop() upon SR_DF_END.
Uwe Hermann [Mon, 6 Aug 2012 20:48:18 +0000 (22:48 +0200)]
qt: UIs shouldn't call sr_session_stop() upon SR_DF_END.

5 years agoqt: SR_HWCAP_PROBECONFIG is obsolete now.
Uwe Hermann [Mon, 6 Aug 2012 20:47:55 +0000 (22:47 +0200)]
qt: SR_HWCAP_PROBECONFIG is obsolete now.

5 years agoqt: Update to sr_filter_probes() API changes.
Uwe Hermann [Mon, 6 Aug 2012 20:45:36 +0000 (22:45 +0200)]
qt: Update to sr_filter_probes() API changes.

The sr_filter_probes() function now expects the 'probelist' argument to
be terminated with -1.

5 years agocli: use --show for PD detail
Bert Vermeulen [Mon, 6 Aug 2012 10:23:52 +0000 (12:23 +0200)]
cli: use --show for PD detail

5 years agosr/drivers: add API calls sr_dev_inst_list() and sr_dev_inst_clear()
Bert Vermeulen [Sun, 5 Aug 2012 22:59:25 +0000 (00:59 +0200)]
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.

5 years agocli: obsolete SR_HWCAP_PROBECONFIG
Bert Vermeulen [Sun, 5 Aug 2012 22:23:29 +0000 (00:23 +0200)]
cli: obsolete SR_HWCAP_PROBECONFIG

5 years agosr/drivers: obsolete SR_HWCAP_PROBECONFIG
Bert Vermeulen [Sun, 5 Aug 2012 16:56:12 +0000 (18:56 +0200)]
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.

5 years agocli: use new sr_dev_config_set() API call
Bert Vermeulen [Sun, 5 Aug 2012 13:54:43 +0000 (15:54 +0200)]
cli: use new sr_dev_config_set() API call

5 years agosr: new API call sr_dev_config_set()
Bert Vermeulen [Sun, 5 Aug 2012 13:53:04 +0000 (15:53 +0200)]
sr: new API call sr_dev_config_set()

This is a wrapper around the driver dev_config_set() call, to avoid
frontends needing visibility into drivers.

5 years agocli: don't try to set device options before opening it
Bert Vermeulen [Sun, 5 Aug 2012 01:33:58 +0000 (03:33 +0200)]
cli: don't try to set device options before opening it

5 years agocli: use new API calls instead of static option data
Bert Vermeulen [Sun, 5 Aug 2012 01:31:45 +0000 (03:31 +0200)]
cli: use new API calls instead of static option data

5 years agosr: replace published static option data with API calls
Bert Vermeulen [Sun, 5 Aug 2012 01:18:07 +0000 (03:18 +0200)]
sr: replace published static option data with API calls

To find a driver or device option by name,  the sr_drvopt_name_get() and
sr_devopt_name_get() calls are now available. This was the only reason the
driver and device struct sr_hwcap_option arrays were published.

5 years agocli: rename sr_hw_hwcap_get() to sr_devopt_get()
Bert Vermeulen [Sat, 4 Aug 2012 12:36:09 +0000 (14:36 +0200)]
cli: rename sr_hw_hwcap_get() to sr_devopt_get()

5 years agosr: rename sr_hw_hwcap_get() to sr_devopt_get()
Bert Vermeulen [Sat, 4 Aug 2012 12:35:40 +0000 (14:35 +0200)]
sr: rename sr_hw_hwcap_get() to sr_devopt_get()

5 years agosr: drivers using sr_usb_dev_inst_new() must free it properly as well
Bert Vermeulen [Sat, 4 Aug 2012 10:21:02 +0000 (12:21 +0200)]
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.

5 years agosr: properly free probes when freeing their device instance
Bert Vermeulen [Sat, 4 Aug 2012 10:03:05 +0000 (12:03 +0200)]
sr: properly free probes when freeing their device instance

5 years agoasix-sigma: fix double free
Bert Vermeulen [Fri, 3 Aug 2012 12:19:00 +0000 (14:19 +0200)]
asix-sigma: fix double free

5 years agochronovu-la8: fix double free
Bert Vermeulen [Fri, 3 Aug 2012 12:18:02 +0000 (14:18 +0200)]
chronovu-la8: fix double free

5 years agochronovu-la8: code cleanup
Bert Vermeulen [Fri, 3 Aug 2012 11:50:31 +0000 (13:50 +0200)]
chronovu-la8: code cleanup

5 years agocli: use new generic arg parser API
Bert Vermeulen [Fri, 3 Aug 2012 09:48:41 +0000 (11:48 +0200)]
cli: use new generic arg parser API

5 years agochronovu-la8: remove session source when done
Bert Vermeulen [Fri, 3 Aug 2012 08:17:31 +0000 (10:17 +0200)]
chronovu-la8: remove session source when done

5 years agoasix-sigma: remove session source when done
Bert Vermeulen [Fri, 3 Aug 2012 08:12:54 +0000 (10:12 +0200)]
asix-sigma: remove session source when done

5 years agodemo: remove sources from session when done
Bert Vermeulen [Fri, 3 Aug 2012 08:09:02 +0000 (10:09 +0200)]
demo: remove sources from session when done

5 years agocli: don't call sr_session_stop() when SR_DF_END is seen
Bert Vermeulen [Thu, 2 Aug 2012 23:05:59 +0000 (01:05 +0200)]
cli: don't call sr_session_stop() when SR_DF_END is seen

This was effectively an infinite loop in some cases.

5 years agohantek-dso: remove sources from session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:05:40 +0000 (01:05 +0200)]
hantek-dso: remove sources from session when done

5 years agools: remove serial source from session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:05:01 +0000 (01:05 +0200)]
ols: remove serial source from session when done

5 years agosr: drivers should remove their sources from the session when done
Bert Vermeulen [Thu, 2 Aug 2012 23:04:05 +0000 (01:04 +0200)]
sr: drivers should remove their sources from the session when done

5 years agozeroplus: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 23:01:38 +0000 (01:01 +0200)]
zeroplus: use driver-private storage for instances

5 years agools: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 22:09:33 +0000 (00:09 +0200)]
ols: use driver-private storage for instances

5 years agogenericdmm: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 21:54:11 +0000 (23:54 +0200)]
genericdmm: use driver-private storage for instances

5 years agodemo: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 21:53:31 +0000 (23:53 +0200)]
demo: use driver-private storage for instances

5 years agofx2lafw: minor cleanup
Bert Vermeulen [Thu, 2 Aug 2012 21:51:47 +0000 (23:51 +0200)]
fx2lafw: minor cleanup

5 years agochronovu-la8: don't try to clean up unless we've initialized
Bert Vermeulen [Thu, 2 Aug 2012 19:54:21 +0000 (21:54 +0200)]
chronovu-la8: don't try to clean up unless we've initialized

5 years agoasix-sigma: properly init driver-private storage
Bert Vermeulen [Thu, 2 Aug 2012 19:42:37 +0000 (21:42 +0200)]
asix-sigma: properly init driver-private storage

5 years agochronovu-la8: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 19:35:25 +0000 (21:35 +0200)]
chronovu-la8: use driver-private storage for instances

5 years agoasix-sigma: use driver-private storage for instances
Bert Vermeulen [Thu, 2 Aug 2012 19:20:41 +0000 (21:20 +0200)]
asix-sigma: use driver-private storage for instances

5 years agofx2lafw: use driver-private storage for instances and libusb_context
Bert Vermeulen [Tue, 31 Jul 2012 22:42:19 +0000 (00:42 +0200)]
fx2lafw: use driver-private storage for instances and libusb_context

5 years agohantek-dso: use driver-private storage for instances and libusb_context
Bert Vermeulen [Sun, 29 Jul 2012 22:24:26 +0000 (00:24 +0200)]
hantek-dso: use driver-private storage for instances and libusb_context

5 years agosr: driver struct gets a more generic *priv instead of GSList *instances
Bert Vermeulen [Sun, 29 Jul 2012 22:22:26 +0000 (00:22 +0200)]
sr: driver struct gets a more generic *priv instead of GSList *instances

It's up to the driver to keep its GSList of struct sr_dev_inst * in there.
Anything else the driver wants to keep driver-global should also go in
there, such as libusb_context.

5 years agosr: build: hantek-dso driver requires libusb as well
Bert Vermeulen [Sun, 29 Jul 2012 13:21:08 +0000 (15:21 +0200)]
sr: build: hantek-dso driver requires libusb as well

5 years agosr: properly initialize and check on device instance driver field
Bert Vermeulen [Sun, 29 Jul 2012 01:01:57 +0000 (03:01 +0200)]
sr: properly initialize and check on device instance driver field

5 years agosr: fix initialization for output from driverless devices
Bert Vermeulen [Sun, 29 Jul 2012 01:01:02 +0000 (03:01 +0200)]
sr: fix initialization for output from driverless devices

5 years agosr: remove obsolete SR_DI_INST
Bert Vermeulen [Tue, 24 Jul 2012 22:33:38 +0000 (00:33 +0200)]
sr: remove obsolete SR_DI_INST

5 years agosr: code organization cleanup
Bert Vermeulen [Tue, 24 Jul 2012 22:20:06 +0000 (00:20 +0200)]
sr: code organization cleanup

Device-specific functions (public and private) go in device.c,
more general driver-related code in hwdriver.c

5 years agosr/drivers: add proper probe list to instances of all drivers
Bert Vermeulen [Tue, 24 Jul 2012 17:10:09 +0000 (19:10 +0200)]
sr/drivers: add proper probe list to instances of all drivers

5 years agosr/drivers: fix off-by-one if frontend-initiated probe configuration
Bert Vermeulen [Tue, 24 Jul 2012 15:13:25 +0000 (17:13 +0200)]
sr/drivers: fix off-by-one if frontend-initiated probe configuration

5 years agosr: remove obsolete sr_dev_inst_get() call
Bert Vermeulen [Tue, 24 Jul 2012 13:42:51 +0000 (15:42 +0200)]
sr: remove obsolete sr_dev_inst_get() call

5 years agoqt: initial port to new libsigrok API
Bert Vermeulen [Tue, 24 Jul 2012 13:30:23 +0000 (15:30 +0200)]
qt: initial port to new libsigrok API

This does the scanning properly according to the new way, and saves the
discovered devices to a GSList stored in the MainWindow instance. The
rest of the code should use the MainWindow::getDevices() getter to
retrieve these, and use the data (which is struct sr_dev_inst *) to
call libsigrok API functions.

5 years agosr: remove obsolete driver API call dev_info_get()
Bert Vermeulen [Tue, 24 Jul 2012 11:06:15 +0000 (13:06 +0200)]
sr: remove obsolete driver API call dev_info_get()

5 years agocli: fix session saving
Bert Vermeulen [Mon, 23 Jul 2012 14:20:23 +0000 (16:20 +0200)]
cli: fix session saving

5 years agosr: cosmetic changes
Bert Vermeulen [Mon, 23 Jul 2012 13:09:19 +0000 (15:09 +0200)]
sr: cosmetic changes

5 years agosr: better file version check
Bert Vermeulen [Mon, 23 Jul 2012 13:08:44 +0000 (15:08 +0200)]
sr: better file version check

Still not really used though.

5 years agosr: sr_session_save() now takes sdi and datastore parameters
Bert Vermeulen [Mon, 23 Jul 2012 13:06:49 +0000 (15:06 +0200)]
sr: sr_session_save() now takes sdi and datastore parameters

This means it's restricted to saving one device's capture per file, for
now.

5 years agosr: fix session loading for 0-numbered probes
Bert Vermeulen [Mon, 23 Jul 2012 12:55:43 +0000 (14:55 +0200)]
sr: fix session loading for 0-numbered probes

They're still numbered starting from 1 in the current version (1)
of the sigrok file format, we just work around that for now.

5 years agocli: code cleanup
Bert Vermeulen [Mon, 23 Jul 2012 01:06:47 +0000 (03:06 +0200)]
cli: code cleanup

5 years agocli: use probe numbers starting from 0
Bert Vermeulen [Mon, 23 Jul 2012 01:03:07 +0000 (03:03 +0200)]
cli: use probe numbers starting from 0

5 years agosr: fix sr_parse_triggerstring() to use probe numbers starting from 0
Bert Vermeulen [Mon, 23 Jul 2012 00:58:56 +0000 (02:58 +0200)]
sr: fix sr_parse_triggerstring() to use probe numbers starting from 0

5 years agosr: fix sr_filter_probes() to use probe numbers starting from 0
Bert Vermeulen [Mon, 23 Jul 2012 00:57:17 +0000 (02:57 +0200)]
sr: fix sr_filter_probes() to use probe numbers starting from 0

The probelist parameter is now terminated with -1, since 0 is a valid
probe number.

5 years agocli: change to new struct sr_dev_inst based libsigrok API
Bert Vermeulen [Sun, 22 Jul 2012 18:16:46 +0000 (20:16 +0200)]
cli: change to new struct sr_dev_inst based libsigrok API

5 years agosr: comments/docs
Bert Vermeulen [Sun, 22 Jul 2012 18:06:13 +0000 (20:06 +0200)]
sr: comments/docs

5 years agosr: change sr_dev_probe_name_set() to use sdi
Bert Vermeulen [Sun, 22 Jul 2012 18:05:36 +0000 (20:05 +0200)]
sr: change sr_dev_probe_name_set() to use sdi

5 years agosr: remove dead/obsolete code
Bert Vermeulen [Sun, 22 Jul 2012 17:44:20 +0000 (19:44 +0200)]
sr: remove dead/obsolete code

5 years agocli: remove dead code
Bert Vermeulen [Sun, 22 Jul 2012 14:55:26 +0000 (16:55 +0200)]
cli: remove dead code

5 years agosr: cosmetic changes
Bert Vermeulen [Sun, 22 Jul 2012 13:32:35 +0000 (15:32 +0200)]
sr: cosmetic changes

5 years agosr: change session API/code to use sdi
Bert Vermeulen [Sun, 22 Jul 2012 13:31:56 +0000 (15:31 +0200)]
sr: change session API/code to use sdi

5 years agosr: remove obsolete dev_status_get() API call from session driver
Bert Vermeulen [Sun, 22 Jul 2012 13:19:53 +0000 (15:19 +0200)]
sr: remove obsolete dev_status_get() API call from session driver

5 years agosr: cosmetic changes
Bert Vermeulen [Sun, 22 Jul 2012 13:15:26 +0000 (15:15 +0200)]
sr: cosmetic changes

5 years agosr: change sr_datafeed_callback_t to use sdi
Bert Vermeulen [Sun, 22 Jul 2012 13:05:47 +0000 (15:05 +0200)]
sr: change sr_datafeed_callback_t to use sdi

5 years agosr: convert sr_dev_has_hwcap() to use sdi
Bert Vermeulen [Sun, 22 Jul 2012 12:33:28 +0000 (14:33 +0200)]
sr: convert sr_dev_has_hwcap() to use sdi

5 years agosr: convert sr_parse_triggerstring() to use sdi
Bert Vermeulen [Sun, 22 Jul 2012 12:28:40 +0000 (14:28 +0200)]
sr: convert sr_parse_triggerstring() to use sdi

5 years agosr/drivers: remove driver API call dev_status_get()
Bert Vermeulen [Sun, 22 Jul 2012 10:37:59 +0000 (12:37 +0200)]
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.

5 years agools: change driver dev_acquisition_start/_stop calls to use sdi
Bert Vermeulen [Sun, 22 Jul 2012 10:35:57 +0000 (12:35 +0200)]
ols: change driver dev_acquisition_start/_stop calls to use sdi

...yeah, forgot OLS.

5 years agosr: add sr_dev_probe_enable(), abstraction wrapper around device probes
Bert Vermeulen [Sun, 22 Jul 2012 10:23:59 +0000 (12:23 +0200)]
sr: add sr_dev_probe_enable(), abstraction wrapper around device probes

5 years agosr: convert session load/save code to use sr_dev_inst
Bert Vermeulen [Sun, 22 Jul 2012 10:18:34 +0000 (12:18 +0200)]
sr: convert session load/save code to use sr_dev_inst

5 years agogenericdmm: cosmetic change
Bert Vermeulen [Sun, 22 Jul 2012 09:49:00 +0000 (11:49 +0200)]
genericdmm: cosmetic change

5 years agozeroplus: comment out 32-probe models for now
Bert Vermeulen [Sun, 22 Jul 2012 00:09:58 +0000 (02:09 +0200)]
zeroplus: comment out 32-probe models for now

5 years agozeroplus-logic-cube: fix scan to correctly find model
Bert Vermeulen [Sun, 22 Jul 2012 00:08:59 +0000 (02:08 +0200)]
zeroplus-logic-cube: fix scan to correctly find model

5 years agosr/drivers: change driver dev_acquisition_start/_stop calls to use sdi
Bert Vermeulen [Sat, 21 Jul 2012 20:41:58 +0000 (22:41 +0200)]
sr/drivers: change driver dev_acquisition_start/_stop calls to use sdi

5 years agosr/drivers: change driver dev_open/dev_close calls to use sdi
Bert Vermeulen [Sat, 21 Jul 2012 20:04:47 +0000 (22:04 +0200)]
sr/drivers: change driver dev_open/dev_close calls to use sdi

5 years agosr: change sr_dev_trigger_set() to use sdi
Bert Vermeulen [Sat, 21 Jul 2012 17:11:49 +0000 (19:11 +0200)]
sr: change sr_dev_trigger_set() to use sdi

5 years agosr: change input/output modules to use struct sr_dev_inst *
Bert Vermeulen [Fri, 20 Jul 2012 19:37:36 +0000 (21:37 +0200)]
sr: change input/output modules to use struct sr_dev_inst *

5 years agosr/drivers: use sr_dev_inst instead of device index for dev_config_set()
Bert Vermeulen [Mon, 16 Jul 2012 01:52:14 +0000 (03:52 +0200)]
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.

5 years agocli: add --show option, and switch to new info_get driver API
Bert Vermeulen [Mon, 16 Jul 2012 01:12:27 +0000 (03:12 +0200)]
cli: add --show option, and switch to new info_get driver API