Bert Vermeulen
5a1afc0907
scpi: Move SCPI-related definitions to separate header file.
2015-08-25 19:13:16 +02:00
Daniel Elstner
c1aae90038
Build: Set local include directories in Makefile.am
...
Move the include flags for files in the source tree from
configure.ac to Makefile.am where they belong. Also use
AM_CPPFLAGS instead of CFLAGS/CXXFLAGS to make sure the
files in the build/source tree are always picked up first.
Also, remove the include/libsigrok sub-directory from the
search path, thereby making the <libsigrok/> prefix mandatory
when building libsigrok itself. This matches the convention
already imposed on users of the library.
2015-08-16 18:28:12 +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
a93086528e
yokogawa-dlm: Minor cosmetics, consistency fixes, typos.
2015-06-23 00:46:45 +02:00
Soeren Apel
49f49cb55e
yokogawa-dlm: Return correct value for SR_CONF_HDIV
2015-06-23 00:15:56 +02:00
Soeren Apel
2dcf82e9cb
yokogawa-dlm: Remove dlm_setup_channels()
2015-06-23 00:15:56 +02:00
Soeren Apel
c65a021c05
yokogawa-dlm: Introduce config_channel_set()
2015-06-23 00:15:56 +02:00
Soeren Apel
f3c60fb6af
yokogawa-dlm: Config get/set/list handler updates
2015-06-23 00:15:56 +02:00
Soeren Apel
f77afcf0aa
yokogawa-dlm: Fix number of digital groups
2015-06-23 00:15:56 +02:00
Soeren Apel
6fd78a9fd0
yokogawa-dlm: Prevent duplicate channel index
2015-06-23 00:15:56 +02:00
Soeren Apel
7048bb1f35
yokogawa-dlm: Add support for the DL9000 series
2015-06-23 00:15:56 +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
1a46cc62e2
Improve readability and clarity of some numbers.
2015-03-24 19:30:16 +01:00
Uwe Hermann
f3f19d1131
Fix a bunch of typos.
2015-03-24 18:01:18 +01:00
Uwe Hermann
329733d92c
Constify a few arrays and variables.
2015-03-21 20:30:53 +01:00
Uwe Hermann
1beccaed46
Various minor whitespace fixes.
2015-03-21 19:28:54 +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
5e23fcab88
Simplify channel creation.
...
We always follow sr_channel_new() with a call to add the channel to the sdi.
Tidy up a bit by adding this functionality to sr_channel_new() instead.
2015-03-19 21:37:33 +00:00
Martin Ling
bf622e6d00
Rename SR_CONF_NUM_TIMEBASE to SR_CONF_NUM_HDIV.
2015-03-02 12:24:12 +01:00
Uwe Hermann
c368e6f3d2
Don't check sr_channel_new() return value (always succeeds).
...
We now use g_malloc0() for the allocation and assume the allocation
will always succeed, thus sr_channel_new() will always return a
valid new channel.
2014-11-21 12:10:05 +01:00
Uwe Hermann
aac29cc192
Eliminate sr_dev_inst_new().
2014-11-21 02:01:36 +01:00
Aurelien Jacobs
cf0280fa1b
yokogawa-dlm: Publish driver options.
2014-11-19 23:54:01 +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
d1314831e4
yokogawa-dlm: Populate sdi->serial_num and sdi->version
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
Uwe Hermann
af945a6625
Typos and consistency fixes.
2014-09-19 01:03:32 +02:00
Bert Vermeulen
d4ccb6bd8f
yokogawa-dlm: Don't implement dummy scan options.
2014-09-17 17:41:41 +02:00
Bert Vermeulen
5827f61b64
Publish config key capabilities.
...
Every driver now publishes its device option config keys, i.e. the
list fetched with sr_config_list(SR_CONF_DEVICE_OPTIONS), with a
set of flags indicating which methods are implemented by the driver
for that key.
The config keys are OR'ed with any combination of SR_CONF_GET,
SR_CONF_SET and SR_CONF_LIST. These are defined as the high bits
of the uint32_t config key. Clients can OR config keys with
SR_CONF_MASK to strip out these bits. This mask will be kept up to
date if other bits are added to the capabilities list; clients MUST
therefore use SR_CONF_MASK for this.
Some keys don't have capability bits added, such as the informative
device type keys (SR_CONF_MULTIMETER, SR_CONF_OSCILLOSCOPE, ...) and
SR_CONF_CONTINUOUS.
Scan options do not have capabilities bits.
2014-09-17 15:36:11 +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
ac10a927b5
yokogawa-dlm: Replace g_try_malloc() calls and fix coding style
2014-08-31 00:42:10 +02:00
Soeren Apel
0028d5a1ee
yokogawa-dlm: Lower timeout to increase throughput and fix data acq bug
2014-08-31 00:42:10 +02:00
Soeren Apel
af3487ec28
yokogawa-dlm: Do not block when receiving and save frame length in scope state
2014-08-31 00:42:10 +02:00
Soeren Apel
8ab929d614
yokogawa-dlm: Flesh out driver with current state of development
2014-08-31 00:42:10 +02:00
Soeren Apel
107639373d
yokogawa-dlm: Integrate driver skeleton
2014-08-31 00:42:10 +02:00