Bert Vermeulen
4d15e5c907
Rename sr_dev_has_hwcap() to sr_dev_has_option().
2013-01-25 16:20:40 +01:00
Bert Vermeulen
123e131383
Deprecate SR_DI_CUR_SAMPLERATE.
...
This is replaced by SR_CONF_SAMPLERATE.
2013-01-25 03:17:36 +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
Joel Holdsworth
bf53457d1d
Pass sr_datafeed_packets and payloads with const pointers
...
This patch marks packet structures and their payloads as const.
This indicates to packet receivers that modifications to these are
not allowed. In general all pointers should be marked const unless
modification of the referenced data is explicitly allowed.
2012-12-20 07:51:21 +00:00
Bert Vermeulen
7249d7833b
analog: support ppm output
2012-12-15 22:50:33 +01:00
Uwe Hermann
a0a23863da
output/gnuplot: Drop obsolete code.
2012-11-11 18:14:17 +01:00
Uwe Hermann
a944a84b17
Output modules: Use message logging helpers.
2012-11-11 18:14:17 +01:00
Uwe Hermann
64d33dc28e
All drivers: Drop unneeded comments.
2012-11-11 18:09:11 +01:00
Bert Vermeulen
258eeb77b8
output/analog: add support for sound pressure level
2012-11-02 15:24:30 +01:00
Bert Vermeulen
bde4f4296d
analog: if no MQ unit was set of recognized, just print the value
2012-11-02 15:24:30 +01:00
Uwe Hermann
db7d0626c9
Remove 'float' output module.
...
This has been replaced by the 'analog' output module.
2012-10-30 20:30:25 +01:00
Uwe Hermann
886a52b6fb
Return SR_ERR_MALLOC upon allocation errors.
...
Add some TODOs.
2012-10-30 20:25:54 +01:00
Uwe Hermann
545f978639
config.h usage cleanups.
...
- Drop config.h #include from files that don't actually use any of
its contents (at the moment).
- Add comment for those that do need it.
2012-10-24 00:41:21 +02:00
Uwe Hermann
393fb9cb18
Doxygen: Add @file items for the relevant files.
...
These short descriptions are shown in the "Files" section of the
Doxygen output.
2012-10-22 11:56:18 +02:00
Uwe Hermann
7b870c38e3
Doxygen: Initial groups and topic short descriptions.
2012-10-22 11:56:18 +02:00
Uwe Hermann
b4bd70889f
Doxygen: Mark non-public stuff for exclusion.
...
- /** @private */ can be used for functions, and /** @cond PRIVATE */ and
/** @endcond */ for variables or #defines.
- Document the above in HACKING.
2012-10-22 11:56:17 +02:00
Bert Vermeulen
796a79eb75
analog: add pretty-printer for dBu and dBV
2012-10-16 23:33:54 +02:00
Bert Vermeulen
d713e56181
analog: sane printing of very small and negative values
2012-10-16 23:33:54 +02:00
Uwe Hermann
6aff0d16df
Build fix for Windows/MinGW.
...
On Window/MinGW 'recv' seems to be already defined in some headers.
Use 'receive' instead, for now.
2012-10-16 12:19:36 +02:00
Bert Vermeulen
2b98e0aaab
analog: support AC+DC unit modifier
2012-10-15 11:32:36 +02:00
Bert Vermeulen
96b3b3d568
sr: add support for conductance measurements in Siemens
2012-09-25 19:53:05 +02:00
Bert Vermeulen
aa839a5c4f
sr: add support for pulse width measurements
2012-09-25 19:53:05 +02:00
Bert Vermeulen
161a8a2726
sr: add new analog output module
...
This outputs text representation of SR_DF_ANALOG packets. Unlike the
float module however, it also outputs the standard abbreviations of
SI units corresponding to the packet's MQ and unit.
It also makes an effort to multiply or divide the floating point value
as needed to the nearest multiple or fraction, and inserts the
appropriate SI prefix to match.
2012-09-08 13:24:48 +02:00
Bert Vermeulen
40578aa487
sr: output up to 12 significant digits for floats
2012-09-02 15:42:56 +02:00
Bert Vermeulen
aee878fa2e
sr: fix initialization for output from driverless devices
2012-08-03 11:29:00 +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
45c59c8bdd
sr: moved sigrok.h so libsigrok/libsigrok.h
...
All frontends will have to include <libsigrok/libsigrok.h> from now on.
This header includes proto.h and version.h, both installed from the
distribution into $INCLUDE/libsigrok/ as well.
The only dynamically changed header is now version.h, which has both
libsigrok and libtool compile-time versions in it.
2012-07-05 01:17:28 +02:00
Bert Vermeulen
d27e406e13
sr: new output format 'float', just floating point values
...
Also outputs FRAME-BEGIN and FRAME-END, if present in the stream.
2012-06-19 02:05:28 +02:00
Bert Vermeulen
cdea754ae5
sr: remove unused code
2012-06-19 02:04:18 +02:00
Uwe Hermann
054e670906
sr: out: Use uint8_t (not char) for buffers.
2012-03-31 11:33:43 +02:00
Uwe Hermann
2e7cb0040a
cli: Fix -V/-h output a bit.
...
Options and their defaults should not be documented there, but rather in
the manpage or such.
2012-03-21 23:20:09 +01:00
Uwe Hermann
8ec95d2282
sr/srd: Small fixes, constifications, doc updates.
2012-03-21 23:20:09 +01:00
Uwe Hermann
c09f0b578c
sr/cli/gtk/qt/: s/plugin/driver/.
2012-02-28 23:52:30 +01:00
Bert Vermeulen
2285cf9bc5
sr: code cleanup
2012-02-28 17:47:02 +01:00
Uwe Hermann
5097b0d091
sr/cli/gtk/qt: s/get_dev_info/dev_info_get/.
2012-02-18 11:41:21 +01:00
Uwe Hermann
bb7ef79377
sr/cli/gtk/qt: s/device/dev/ in many places.
...
Also, a few s/instance/inst/ occurences.
2012-02-17 23:47:00 +01:00
Uwe Hermann
44dae53925
sr: Random cosmetics, fix/amend Doxygen comments.
2012-02-17 22:40:51 +01:00
Uwe Hermann
7b48d6e104
sr: Prefix log messages with subsystem string.
2012-02-17 22:40:51 +01:00
Bert Vermeulen
c73d2ea421
sr: adjust copyright year
2012-02-13 14:31:51 +01:00
Bert Vermeulen
031685005b
sr: rename all sr_device_* functions to sr_dev_*
2012-02-13 14:00:47 +01:00
Uwe Hermann
133a37bfba
Use g_try_malloc/g_free/g_strdup consistently.
...
Avoid plain malloc()/free() in sr/srd, especially in the API calls.
Also avoid g_malloc*() in favor of g_try_malloc*().
Use g_strdup() instead of strdup() so that we can use g_free()
consistently everywhere.
Exceptions: Stuff that is allocated via other libs (not using glib),
should also be properly free'd using the respective free-ing function
(instead of g_free()). Examples: Stuff allocated by libusb, libftdi, etc.
Also, use sr_err() instead of sr_warn() for actual errors. sr_warn() is
meant for non-fatal/uncritical warnings.
2012-02-11 22:34:16 +01:00
Uwe Hermann
7c1d391c8b
sr: input/output: Mark more symbols with SR_PRIV.
2012-02-05 15:05:13 +01:00
Uwe Hermann
0f8522bf74
Project-wide consistent naming for #include guards.
...
Document the naming scheme in HACKING.
2012-02-05 15:05:13 +01:00
Uwe Hermann
1a081ca67d
sr: Mark API functions with SR_API/SR_PRIV.
...
Use SR_API to mark public API symbols, and SR_PRIV for private symbols.
Variables and functions marked 'static' are private already and don't
need SR_PRIV. However, functions which are not static (because they need
to be used in other libsigrok-internal files) but are also not meant to
be part of the public libsigrok API, must use SR_PRIV.
This uses the 'visibility' feature of gcc (requires gcc >= 4.0).
Details: http://gcc.gnu.org/wiki/Visibility
2012-02-02 00:03:17 +01:00
Uwe Hermann
66410a8617
sr: g_free()/g_string_free() can handle NULL input.
2012-01-19 00:32:02 +01:00
Uwe Hermann
0da5b6a9f5
sr: Remove useless filename prefixes.
2012-01-03 20:01:02 +01:00
Uwe Hermann
cd315a80d8
sr/srd: Fix left-over #includes.
...
The libs themselves should use #include "sigrok.h" etc., while the
frontends must use #include <sigrok.h> and so on.
2012-01-03 19:56:01 +01:00
Uwe Hermann
db8ae7b941
sr/srd: Remove/fix non-applicable autotools stuff.
2011-12-30 11:14:24 +01:00