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
Bert Vermeulen
c7ee3ddb94
sr: cosmetic changes
2012-08-03 11:27:31 +02:00
Bert Vermeulen
ff14f01b20
sr: change sr_datafeed_callback_t to use sdi
2012-08-03 11:27:31 +02:00
Bert Vermeulen
a5b35a167a
sr: convert sr_dev_has_hwcap() to use sdi
2012-08-03 11:27:31 +02:00
Bert Vermeulen
92ae798483
sr: convert sr_parse_triggerstring() to use sdi
2012-08-03 11:27:31 +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
be5bf44d28
sr: add sr_dev_probe_enable(), abstraction wrapper around device probes
2012-08-03 11:27:31 +02:00
Bert Vermeulen
4d68442739
sr: convert session load/save code to use sr_dev_inst
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
58453e5876
sr: change sr_dev_trigger_set() to use sdi
2012-08-03 11:27:31 +02:00
Bert Vermeulen
5c3c1241d2
sr: change input/output modules to use struct sr_dev_inst *
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
387014de63
sr: use new info_get API call in session driver
2012-08-03 10:27:39 +02:00