Bert Vermeulen
64591be2f2
sr: add continuity MQ
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
a56f148094
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.
2012-08-05 15:53:04 +02:00
Bert Vermeulen
15cb43d67c
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.
2012-08-05 03:18:07 +02:00
Bert Vermeulen
3cf91809a5
sr: rename sr_hw_hwcap_get() to sr_devopt_get()
2012-08-04 14:35:40 +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
d3cff734e5
sr: properly free probes when freeing their device instance
2012-08-04 12:03:05 +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
2cbeb2b7fb
sr: drivers should remove their sources from the 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
c259726a16
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.
2012-08-03 11:29:00 +02:00
Bert Vermeulen
ef2345bc29
sr: build: hantek-dso driver requires libusb as well
2012-08-03 11:29:00 +02:00
Bert Vermeulen
e8d3d6c843
sr: properly initialize and check on device instance driver field
2012-08-03 11:29:00 +02:00
Bert Vermeulen
aee878fa2e
sr: fix initialization for output from driverless devices
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
48a486cd3e
sr: code organization cleanup
...
Device-specific functions (public and private) go in device.c,
more general driver-related code in hwdriver.c
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
d6a8df467d
sr: remove obsolete sr_dev_inst_get() call
2012-08-03 11:29:00 +02:00
Bert Vermeulen
47a98b6e2c
sr: remove obsolete driver API call dev_info_get()
2012-08-03 11:28:59 +02:00
Bert Vermeulen
a2e464604c
sr: cosmetic changes
2012-08-03 11:28:59 +02:00
Bert Vermeulen
c1864d5589
sr: better file version check
...
Still not really used though.
2012-08-03 11:28:59 +02:00
Bert Vermeulen
056be0719f
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.
2012-08-03 11:28:59 +02:00
Bert Vermeulen
fb381e4d71
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.
2012-08-03 11:28:59 +02:00
Bert Vermeulen
31fc1fbce3
sr: fix sr_parse_triggerstring() to use probe numbers starting from 0
2012-08-03 11:28:59 +02:00
Bert Vermeulen
1907d2c928
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.
2012-08-03 11:28:59 +02:00
Bert Vermeulen
a5f2e70712
sr: comments/docs
2012-08-03 11:28:59 +02:00
Bert Vermeulen
37e8b4c4f7
sr: change sr_dev_probe_name_set() to use sdi
2012-08-03 11:28:59 +02:00
Bert Vermeulen
a10ddf9ba0
sr: remove dead/obsolete code
2012-08-03 11:28:59 +02:00
Bert Vermeulen
2ac2e629fc
sr: cosmetic changes
2012-08-03 11:28:59 +02:00
Bert Vermeulen
de4d3f99d9
sr: change session API/code to use sdi
2012-08-03 11:28:59 +02:00
Bert Vermeulen
c06b0d13b5
sr: remove obsolete dev_status_get() API call from session driver
2012-08-03 11:27:31 +02:00