Bert Vermeulen
3453970079
output/csv: Fix wrong cast.
2013-11-26 22:23:37 +01:00
poljar (Damir Jelić)
8c273ac57c
output/text: Fix memory leak of internal state buffers.
...
The text output module keeps buffers for internal state, upon receiving a DF_END
packet it frees the internal context but the buffers are never freed.
This adds a text_cleanup() helper function and registers it as the cleanup
function within all the text output modules.
2013-11-20 22:03:02 +01:00
Bert Vermeulen
d3c74a6fb0
probe_groups: API changes required to implement probe groups.
2013-11-08 01:03:18 +01:00
Martin Ling
8f996b8948
probe_groups: API changes required to implement probe groups.
2013-11-08 01:03:16 +01:00
Uwe Hermann
d69d26429f
output/analog: SR_UNIT_REVOLUTIONS_PER_MINUTE: Add missing break.
2013-11-04 01:14:57 +01:00
Aurelien Jacobs
45315d0460
add energy meter device type and related units
2013-10-24 15:41:11 +01:00
Aurelien Jacobs
87532f23a4
output/analog: add revolutions per minute unit
2013-10-07 00:36:18 +02:00
Uwe Hermann
e6523173cf
output/analog: Support all known MQFLAGs.
2013-08-30 16:11:33 +02:00
Uwe Hermann
adf33ecce5
csv output: Fix incorrect ordering of the probes.
...
The comment for the CSV output module says probes are ordered e.g.
0,1,2,3, but the actual values were in the 3,2,1,0 order.
We're fixing this by making the order of the probe values 0,1,2,3 too
for now, but this will become a configurable option later on.
Thanks Patrick Servello <patrick.servello@gmail.com> for the patch.
2013-05-22 14:58:09 +02:00
Uwe Hermann
29a27196a1
s/DRIVER_LOG_DOMAIN/LOG_PREFIX/.
...
This is more correct anyway, and also a bit shorter and more readable.
2013-05-03 21:59:32 +02:00
Uwe Hermann
06c45a66f7
Minor whitespace fixes.
2013-05-03 14:03:49 +02:00
Bert Vermeulen
af51a7718e
output: Use sr_config_get() wrapper
...
This obviates the need for a valid driver, and thus makes converting
from any (non-sr) input format to any output format possible; the only
thing missing is the samplerate.
Fixes bug 105.
2013-04-30 16:03:37 +02:00
Bert Vermeulen
17f63de642
Fix output API receive() function
...
This changes the new output API's recv() to receive(), and has it
return an integer status code. The output of the function, if any,
is stored in a new parameter as a pointer to a newly allocated GString.
All output modules using this API have been adjusted.
2013-04-27 17:29:46 +02:00
Martin Ling
a1be7b6c3f
vcd output: Replace fixed length array of indices with GArray.
2013-04-27 15:49:50 +02:00
Martin Ling
d601c0e9b3
vcd output: Eliminate unnecessary array of probe names.
2013-04-27 15:49:50 +02:00
Martin Ling
90f680ff00
gnuplot: Eliminate fixed-size header buffer based on max probes.
2013-04-27 15:49:50 +02:00
Martin Ling
deb0908338
gnuplot: Remove unnecessary array of probe names.
2013-04-27 15:49:50 +02:00
Martin Ling
1c5b099a13
csv: Remove unnecessary array of probe names.
2013-04-27 15:49:50 +02:00
Martin Ling
91a44f50f0
chronovu-l8: remove unused array of probe names.
2013-04-27 15:49:50 +02:00
Martin Ling
d53e4e8d92
text: Use a GSList of enabled probe names, not an array.
2013-04-27 15:49:50 +02:00
Martin Ling
b050fc481b
vcd output: fix for big-endian architectures.
2013-04-27 15:49:49 +02:00
Martin Ling
9c178ffa50
gnuplot: fix for big-endian architectures.
2013-04-27 15:49:49 +02:00
Bert Vermeulen
3292535c87
output/ols: Use new API
...
This now properly supports samplerate changes coming in from
SR_DF_META packets, and also fixes bug 99.
2013-04-27 15:49:49 +02:00
Martin Ling
3a581560f1
ascii: fix for big-endian architectures.
2013-04-26 22:56:16 +02:00
Martin Ling
ddb292571d
bits: Remove unused code.
2013-04-26 22:56:16 +02:00
Martin Ling
9275d23208
hex: fix for big-endian architectures.
2013-04-26 22:56:16 +02:00
Martin Ling
542dbd185b
bits: fix for big-endian architectures.
2013-04-26 22:56:16 +02:00
Uwe Hermann
50985c2019
GPL headers: Use correct project name.
2013-04-23 22:24:30 +02:00
Bert Vermeulen
ba6568c5ad
output/vcd: Use selected probes, not lowest-numbered ones
...
Thanks to Andrew Bardsley for the patch.
2013-04-11 18:49:24 +02:00
Bert Vermeulen
ec4063b83c
input/output modules: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:06 +02:00
Bert Vermeulen
13d8e03c4f
Bump copyright year
2013-04-11 18:32:06 +02:00
Uwe Hermann
bbe6e336b3
vcd output: Build fix for Windows/MinGW.
...
On Windows/MinGW 'recv' seems to be already defined in windows.h/winsock2.h.
Use 'receive' instead, for now, otherwise we get an error:
vcd.c:147:17: error: conflicting types for 'recv'
2013-04-09 18:57:20 +02:00
Bert Vermeulen
d5585e32dd
output/vcd: use new API
2013-03-06 23:14:00 +01:00
Uwe Hermann
07e1aad5c4
doxygen: Add more output format docs.
...
This is largely taken from the respective wiki page (with some updates
and improvements), which will be removed in favor of the doxygen docs.
2013-02-24 14:31:15 +01:00
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