Uwe Hermann
063e7aef6d
Factor out common hw_init() driver code.
...
Most drivers do pretty much the same things in their hw_init()
right now, so factor out that code to std_hw_init() in std.c.
2013-01-29 12:56:02 +01:00
Uwe Hermann
4b97c74e0b
sr_driver_scan(): Improve checks.
...
Check the relevant arguments for != NULL before calling the actual
driver-specific function, so that the driver can safely assume those
arguments are non-NULL. This removes the need to duplicate these
checks in every driver.
Also, do some minor whitespace and consistency improvements.
2013-01-29 12:56:02 +01:00
Bert Vermeulen
6a4710fac2
drivers: Trim unused config_get() calls
...
None of the driver config_get/set/list calls are required.
2013-01-25 16:05:48 +01:00
Bert Vermeulen
0d485e30c6
Deprecate SR_DI_HWOPTS.
...
This is replaced by SR_CONF_SCAN_OPTIONS.
2013-01-25 15:09:20 +01:00
Bert Vermeulen
9a6517d14b
Deprecate SR_DI_HWCAPS.
...
This is replaced by SR_CONF_DEVICE_OPTIONS.
2013-01-25 15:01:49 +01:00
Bert Vermeulen
a1c743fc51
drivers: implement config_list()
2013-01-25 02:37:26 +01:00
Bert Vermeulen
035a1078fd
drivers: rename and reorganize config get/set
...
The driver API calls info_get() and dev_config_set() have been renamed
to config_get() and config_set(), respectively.
2013-01-24 19:19:09 +01:00
Bert Vermeulen
69e19dd769
Always interleave analog data with all enabled probes.
...
The new "probes" field in sr_datafeed_analog contains a copy
of all enabled struct sr_probe.
2013-01-23 03:40:44 +01:00
Bert Vermeulen
1953564a96
Rename SR_HWOPT_* and SR_HWCAP_* to SR_CONF_*
2013-01-21 23:32:50 +01:00
Bert Vermeulen
1987b8d63e
drivers: use new sr_config struct
...
Sending an SR_DF_META packet at the start of every stream is not
mandatory; the frontend should ask for what it needs, and any extra
information the driver wants to send will come in due time.
2013-01-21 23:32:49 +01:00
Uwe Hermann
4ebd48b352
Remove non-error hw_info_get() messages.
...
Currently hw_info_get() can receive requests for entries (info_id) that
the specific driver doesn't support. That is (right now) a valid
use-case and not an error (might change later, though).
Thus, for now, don't output messages for such requests at all (certainly
not as sr_err() where they show up in e.g. sigrok-cli output per default).
2013-01-20 18:48:02 +01:00
Bert Vermeulen
6b8d6f93bb
Get rid of obsolete SR_DI_NUM_PROBES and SR_DI_PROBE_NAMES.
...
Frontends should use the probe list in the device's sr_dev_inst
to get this information.
2013-01-15 17:42:23 +01:00
Uwe Hermann
7869340103
Shorten probe_names[] arrays everywhere.
...
Also, NULL-terminate all of them.
2012-12-26 00:16:07 +01:00
Bert Vermeulen
6aed917b13
lascar-el-usb: fix sample limit parameter
2012-12-16 23:06:15 +01:00
Bert Vermeulen
6787f4049a
lascar-el-usb: support for EL-USB-2*
2012-12-16 18:48:20 +01:00
Bert Vermeulen
7f00750ca4
lascar-el-usb: properly submit CO concentration as a PPM value
2012-12-15 22:49:40 +01:00
Bert Vermeulen
b0c95747e1
lascar-el-usb: add config saver
2012-12-15 22:34:40 +01:00
Bert Vermeulen
b6506d5e03
lascar-el-usb: EL-USB-CO300 support
...
Works the same way as the EL-USB-CO, but with the more sensitive sensor,
so should work out of the box.
2012-12-15 11:15:30 +01:00
Bert Vermeulen
4f3bd685e6
add MQ/units for carbon monoxide concentration
2012-12-15 10:50:22 +01:00
Bert Vermeulen
6aa1eb4ea3
lascar-el-usb: generic EL-USB support + EL-USB-CO support
2012-12-15 04:07:25 +01:00
Bert Vermeulen
851d5b2274
lascar-el-usb: add scanning functionality
2012-12-04 23:58:26 +01:00
Bert Vermeulen
46697e38b2
lascar-el-usb: Initial driver skeleton.
2012-12-03 03:53:44 +01:00