Uwe Hermann
695dc859c1
dev_acquisition_{start,stop}(): Drop duplicate 'cb_data' parameter.
...
These are always 'sdi', which is passed in already.
2016-04-29 19:20:53 +02:00
Uwe Hermann
1c47e0da8f
Drop unneeded std_session_send_df_header() comments.
2016-04-29 18:08:15 +02:00
Uwe Hermann
3be42bc22f
Factor out std_session_send_df_end() helper.
...
This makes the code shorter, simpler and more consistent, and also
ensures that the (same) debug messages are always emitted and the
packet.payload field is consistently set to NULL always, etc.
2016-04-29 18:08:15 +02:00
Stefan Brüns
e3abd15d08
hameg-hmo: fix "invalid argument" exception when setting trigger edges
...
The hameg-hmo driver uses the values from the trigger_slopes array.
2016-04-17 14:50:42 +02:00
Stefan Brüns
da1726cc4c
hameg-hmo: Add Rohde&Schwarz HMO 1002
...
Hameg is a R&S measurement instruments subsidiary. The HMO 1002 is an
entry level scope, compatible with the SCPI commands of the larger models.
2016-04-17 14:50:42 +02:00
Uwe Hermann
0a1f7b09b3
Prefer postfix-increment for consistency across the code-base.
...
Only when there are technical reasons use prefix-increment.
2015-12-26 14:37:33 +01:00
Martin Ling
a00106b7f8
scpi: Move closing of discovered devices to sr_scpi_scan_resource().
2015-10-25 22:40:35 +01:00
Daniel Elstner
6ec6c43b47
Build: Include <config.h> first in all source files
...
Since Autoconf places some important feature flags only into the
configuration header, it is necessary to include it globally to
guarantee a consistent build.
2015-09-13 18:54:46 +02:00
Bert Vermeulen
5a1afc0907
scpi: Move SCPI-related definitions to separate header file.
2015-08-25 19:13:16 +02:00
Soeren Apel
41812aca43
Fix #442 by renaming sr_dev_driver.priv to .context
2015-07-10 01:22:15 +02:00
Uwe Hermann
b1f8310376
Don't check g_free() arguments for NULL.
...
The g_free() call is guaranteed to not segfault when NULL is passed.
2015-04-01 00:23:25 +02:00
Uwe Hermann
329733d92c
Constify a few arrays and variables.
2015-03-21 20:30:53 +01:00
Martin Ling
4f840ce965
Pass driver struct pointer to driver callbacks.
...
This lays the groundwork for subdrivers to share callbacks without
needing a separate wrapper function for each subdriver.
2015-03-21 13:09:40 +01:00
Martin Ling
bf622e6d00
Rename SR_CONF_NUM_TIMEBASE to SR_CONF_NUM_HDIV.
2015-03-02 12:24:12 +01:00
Uwe Hermann
f57d8ffe66
Consistently use g_malloc0() for allocating devc.
...
We assume the allocation will always succeed, hence no need for
checking the returned value.
2014-11-21 12:09:01 +01:00
Uwe Hermann
aac29cc192
Eliminate sr_dev_inst_new().
2014-11-21 02:01:36 +01:00
Aurelien Jacobs
6ec3ef9b92
hameg-hmo: Publish driver options.
2014-11-19 23:52:51 +01:00
Uwe Hermann
0af636bed9
Change sr_dev_inst_new() to take no parameters.
...
Change all callers to set the fields manually as needed.
2014-11-12 17:18:46 +01:00
Soeren Apel
b33db61c48
hameg-hmo: Populate sdi->serial_num
2014-10-17 03:02:52 +02:00
Soeren Apel
aed4ad0bea
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
2014-09-30 01:42:58 +02:00
Bert Vermeulen
f254bc4bba
Consistently use 'devopts' variable across all drivers.
2014-09-16 22:11:39 +02:00
Bert Vermeulen
584560f142
Change type of SR_CONF keys to uint32_t.
2014-09-16 21:22:41 +02:00
Soeren Apel
562b7ae513
hameg-hmo / rigol-ds: Restore compatibility with std_dev_clear()
2014-08-24 16:54:38 +02:00
Soeren Apel
db81fbb582
hameg-hmo: Make sure the enabled_channels list is empty before populating it
...
Previous runs of dev_acquisition_start() keep the enabled_channels list
populated if they fail. This means that once an invalid channel
configuration was detected, it will be detected again even if the channel
configuration was changed. With this change, the list will be cleared
before being populated so that any stale entries are removed.
2014-08-14 22:43:57 +02:00
Bert Vermeulen
226363c4e8
hameg-hmo: Implement SR_CONF_SCAN_OPTIONS.
2014-08-03 14:00:07 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00