Commit Graph

34 Commits

Author SHA1 Message Date
Uwe Hermann d494a4aa9d input/output formats: Explicit struct member names.
This makes it immediately clear what an entry is supposed to be, no
need to look it up in some header file.
2011-04-10 23:03:33 +02:00
Uwe Hermann 120b259ea8 Drop obsolete vcd_header. 2011-03-03 20:24:25 +01:00
Uwe Hermann d078d2e5f3 Make some more items 'static'. 2011-03-03 20:24:25 +01:00
Uwe Hermann 59df0c77e2 Add SR_ prefix to the KHZ/MHZ/GHZ macros. 2011-03-03 20:24:24 +01:00
Uwe Hermann 54ac5277c5 Constify some more 'char *' parameters. 2011-02-20 21:16:26 +01:00
Uwe Hermann 2bf4aca64a Add sr_ prefix for device related API functions. 2011-02-08 22:28:02 +01:00
Uwe Hermann 1afe89897c Add sr_ prefix for 'struct probe'. 2011-02-08 22:27:58 +01:00
Bert Vermeulen 3a28509817 don't just assume a device has a samplerate setting 2011-02-01 02:33:54 +01:00
Uwe Hermann 5a2326a71b SR_ prefix for all public enums. 2011-01-30 18:32:59 +01:00
Uwe Hermann a00ba01228 Change all sigrok_ prefixes to sr_. 2011-01-30 18:32:55 +01:00
Uwe Hermann f50f3f40d9 Add sr_ prefix to input/output structs. 2011-01-30 18:32:54 +01:00
Uwe Hermann e46b8fb154 Change SIGROK_ prefix to SR_. 2011-01-30 18:32:53 +01:00
Håvard Espeland 32c0551ba6 output_vcd: Make timestamp work on 32-bit machine. 2011-01-18 23:17:55 +01:00
Håvard Espeland b33e7d7058 output_vcd: Emit timestamps as time, not sample num. 2011-01-16 17:55:51 +01:00
Håvard Espeland 08b488b848 output_vcd: Remember samples between packets.
Fixes two bugs in vcd output:
1) Waveform did not match original input when viewed in gtkwave.
2) No vcd output when using 1 MHz sampling on Sigma.
2011-01-16 17:34:49 +01:00
Bert Vermeulen fbf1ff5d22 clean up output_vcd module
use self-expanding strings, better standards conformance
2011-01-16 04:34:45 +01:00
Bert Vermeulen 9ab95e5408 make output modules a bit more crashproof
the event handler in output modules is now optional.
2011-01-13 07:55:35 +01:00
Bert Vermeulen f0411b1d17 output modules now register the DF type they can use 2011-01-09 23:23:56 +01:00
Uwe Hermann 757b8c628a Cosmetics, whitespace, simplifications.
Reduce code nesting a bit, constify some strings.
2011-01-08 01:49:47 +01:00
Uwe Hermann fbe2f7945d VCD: Optimizations and fixes. 2010-05-09 22:06:30 +02:00
Uwe Hermann 086eac7c7b VCD/Gnuplot: Fix incorrect sample counter. 2010-05-09 22:06:30 +02:00
Uwe Hermann 5cca9adbf2 VCD/Gnuplot: Store time/date in output. 2010-05-09 22:06:28 +02:00
Uwe Hermann 607b58de58 VCD/Gnuplot: Cosmetics, code simplifications. 2010-05-09 22:06:27 +02:00
Uwe Hermann 6b5e3ceefc VCD: Improve error handling/checking.
Check malloc()/calloc() return values and so on. Also, add missing
free() calls and some TODOs. Simplify some code.
2010-05-09 22:06:26 +02:00
Bert Vermeulen 7aae74622e output: if device has no plugin, don't report samplerate 2010-05-07 23:52:48 +02:00
Håvard Espeland e273a9040e Output: Fix invalid pointer dereferencing in vcd and gnuplot. 2010-05-04 19:44:39 +02:00
Uwe Hermann 99c1fc59ed output: Coding style fixes. 2010-04-15 20:36:04 +02:00
Uwe Hermann afc8e4deb6 Fix all warnings and re-enable -Wextra. 2010-04-09 22:18:46 +02:00
Uwe Hermann 25e7d9b115 Factor out common sigrok_samplerate_string(). 2010-04-07 20:13:57 +02:00
Uwe Hermann bc010c054b VCD output: Handle disabled probes correctly. 2010-04-06 16:54:39 +02:00
Uwe Hermann e31b636df6 Start unification of libsigrok return codes.
We have SIGROK_OK for functions calls where no errors occured. All
error code names start with SIGROK_ERR and are globally unique,
negative values.

The value SIGROK_ERR is a generic/unspecified error code, all others,
such as SIGROK_ERR_MALLOC, refer to a specific error condition.

This commit renames the old SIGROK_NOK etc.
2010-04-05 18:30:14 +02:00
Uwe Hermann 5a8fda158b Allow output_format.init() to return errors. 2010-04-05 18:30:08 +02:00
Uwe Hermann 4c100f3244 More consistent spelling of "samplerate". 2010-04-05 18:30:02 +02:00
Uwe Hermann 4c9ffa83cf Initial Value Change Dump (VCD) output support. 2010-04-04 13:19:20 +02:00