]> sigrok.org Git - libsigrok.git/log
libsigrok.git
13 years agoAdd doxygen config files for both libs.
Uwe Hermann [Tue, 8 Feb 2011 22:00:49 +0000 (23:00 +0100)]
Add doxygen config files for both libs.

13 years agoRename probe_find() to sr_device_probe_find().
Uwe Hermann [Tue, 8 Feb 2011 20:50:27 +0000 (21:50 +0100)]
Rename probe_find() to sr_device_probe_find().

13 years agostrutil.c: Fix typo, add some (API) docs/comments.
Uwe Hermann [Tue, 8 Feb 2011 20:47:50 +0000 (21:47 +0100)]
strutil.c: Fix typo, add some (API) docs/comments.

13 years agoAdd sr_ prefix for datastore API functions.
Uwe Hermann [Tue, 8 Feb 2011 20:22:10 +0000 (21:22 +0100)]
Add sr_ prefix for datastore API functions.

13 years agoAdd sr_ prefix for device related API functions.
Uwe Hermann [Tue, 8 Feb 2011 17:19:38 +0000 (18:19 +0100)]
Add sr_ prefix for device related API functions.

13 years agoAdd sr_ prefix to 'struct samplerates'.
Uwe Hermann [Tue, 8 Feb 2011 17:07:19 +0000 (18:07 +0100)]
Add sr_ prefix to 'struct samplerates'.

13 years agoAdd sr_ prefix to session related API functions.
Uwe Hermann [Tue, 8 Feb 2011 17:00:49 +0000 (18:00 +0100)]
Add sr_ prefix to session related API functions.

13 years agoAdd sr_ prefix for 'struct session'.
Uwe Hermann [Tue, 8 Feb 2011 16:50:29 +0000 (17:50 +0100)]
Add sr_ prefix for 'struct session'.

13 years agoAdd sr_ prefix for 'struct probe'.
Uwe Hermann [Tue, 8 Feb 2011 16:47:38 +0000 (17:47 +0100)]
Add sr_ prefix for 'struct probe'.

13 years agoFix warnings: g_fopen() needs <glib/gstdio.h>.
Uwe Hermann [Sun, 6 Feb 2011 01:14:57 +0000 (02:14 +0100)]
Fix warnings: g_fopen() needs <glib/gstdio.h>.

13 years agoUse glib's g_fopen() instead of fopen().
Uwe Hermann [Sat, 5 Feb 2011 19:03:17 +0000 (20:03 +0100)]
Use glib's g_fopen() instead of fopen().

13 years agoMinGW: Use "b" in all fopen() calls.
Uwe Hermann [Fri, 4 Feb 2011 22:52:16 +0000 (23:52 +0100)]
MinGW: Use "b" in all fopen() calls.

This is required for proper operation on Windows/MinGW, and doesn't
affect other OSes, most POSIX systems simply ignore the "b".

13 years agoRevert FIRMWARE_DIR / DECODERS_DIR method for now.
Uwe Hermann [Fri, 4 Feb 2011 19:11:17 +0000 (20:11 +0100)]
Revert FIRMWARE_DIR / DECODERS_DIR method for now.

There were several issues with the other method, revert for now.

13 years agodemo: support setting sample rate
Bert Vermeulen [Fri, 4 Feb 2011 05:28:49 +0000 (06:28 +0100)]
demo: support setting sample rate

13 years agools: default to 200KHz samplerate
Bert Vermeulen [Tue, 1 Feb 2011 17:27:12 +0000 (18:27 +0100)]
ols: default to 200KHz samplerate

13 years agoMinGW: Build fixes.
Uwe Hermann [Wed, 2 Feb 2011 12:13:13 +0000 (13:13 +0100)]
MinGW: Build fixes.

13 years agoFix build when no libusb-LA is compiled.
Uwe Hermann [Wed, 2 Feb 2011 09:25:52 +0000 (10:25 +0100)]
Fix build when no libusb-LA is compiled.

Until now the build would break if the user doesn't enable at least one
of the libusb1.0-based LAs. I.e., you could not compile only OLS, or
only the demo driver.

13 years agodemo: stored-pattern generator now keeps state
Bert Vermeulen [Tue, 1 Feb 2011 05:51:34 +0000 (06:51 +0100)]
demo: stored-pattern generator now keeps state

13 years agooutput_ols: now fully compliant with spec
Bert Vermeulen [Tue, 1 Feb 2011 05:13:32 +0000 (06:13 +0100)]
output_ols: now fully compliant with spec

13 years agodon't just assume a device has a samplerate setting
Bert Vermeulen [Tue, 1 Feb 2011 01:33:54 +0000 (02:33 +0100)]
don't just assume a device has a samplerate setting

13 years agodon't force .sigrok extension when saving session file
Bert Vermeulen [Tue, 1 Feb 2011 00:41:33 +0000 (01:41 +0100)]
don't force .sigrok extension when saving session file

13 years agosession_driver: remove unneeded callbacks
Bert Vermeulen [Mon, 31 Jan 2011 23:06:32 +0000 (00:06 +0100)]
session_driver: remove unneeded callbacks

13 years agofix device probe adding
Bert Vermeulen [Mon, 31 Jan 2011 22:44:18 +0000 (23:44 +0100)]
fix device probe adding

13 years agoimplement session loading based on a virtual device driver
Bert Vermeulen [Mon, 31 Jan 2011 21:34:14 +0000 (22:34 +0100)]
implement session loading based on a virtual device driver

13 years agomove samplerate/period printers and parsers into libsigrok
Bert Vermeulen [Mon, 31 Jan 2011 21:29:40 +0000 (22:29 +0100)]
move samplerate/period printers and parsers into libsigrok

13 years agoremove dead code
Bert Vermeulen [Sun, 30 Jan 2011 20:57:45 +0000 (21:57 +0100)]
remove dead code

13 years agoMinGW: Build fix.
Uwe Hermann [Mon, 31 Jan 2011 13:14:28 +0000 (14:14 +0100)]
MinGW: Build fix.

13 years agoConsistently use _exit prefix for functions.
Uwe Hermann [Sun, 30 Jan 2011 18:22:13 +0000 (19:22 +0100)]
Consistently use _exit prefix for functions.

13 years agoSR_ prefix for all public enums.
Uwe Hermann [Sun, 30 Jan 2011 16:58:41 +0000 (17:58 +0100)]
SR_ prefix for all public enums.

13 years agoPrefixes for *_device_instance.
Uwe Hermann [Sun, 30 Jan 2011 15:44:26 +0000 (16:44 +0100)]
Prefixes for *_device_instance.

13 years agoPrefix device structs with sr_.
Uwe Hermann [Sun, 30 Jan 2011 15:19:42 +0000 (16:19 +0100)]
Prefix device structs with sr_.

13 years agoAdd a field for the full name of a device.
Uwe Hermann [Sat, 29 Jan 2011 16:10:24 +0000 (17:10 +0100)]
Add a field for the full name of a device.

Also, show this long/full name in 'sigrok-cli -V'.

13 years agoPrefix datafeed structs with sr_.
Uwe Hermann [Sat, 29 Jan 2011 16:03:26 +0000 (17:03 +0100)]
Prefix datafeed structs with sr_.

13 years agoget_sr_device_instance() -> sr_get_device_instance().
Uwe Hermann [Sat, 29 Jan 2011 15:57:35 +0000 (16:57 +0100)]
get_sr_device_instance() -> sr_get_device_instance().

13 years agoChange all sigrok_ prefixes to sr_.
Uwe Hermann [Sat, 29 Jan 2011 15:43:45 +0000 (16:43 +0100)]
Change all sigrok_ prefixes to sr_.

13 years agoAdd sr_ prefix to input/output structs.
Uwe Hermann [Sat, 29 Jan 2011 15:36:57 +0000 (16:36 +0100)]
Add sr_ prefix to input/output structs.

13 years agoChange SIGROK_ prefix to SR_.
Uwe Hermann [Sat, 29 Jan 2011 15:23:12 +0000 (16:23 +0100)]
Change SIGROK_ prefix to SR_.

13 years agomove session main loop stuff into libsigrok (session_run)
Bert Vermeulen [Sun, 30 Jan 2011 01:40:55 +0000 (02:40 +0100)]
move session main loop stuff into libsigrok (session_run)

13 years agoFix some compiler warnings.
Uwe Hermann [Thu, 27 Jan 2011 22:17:47 +0000 (23:17 +0100)]
Fix some compiler warnings.

13 years agofix session saving and input file loading
Bert Vermeulen [Mon, 24 Jan 2011 06:46:16 +0000 (07:46 +0100)]
fix session saving and input file loading

cli: -i option now properly takes the -o option into account,
so sigrok can now be used for protocol conversion with just
those two options.

13 years agocli: don't initialize and scan for hardware unless needed
Bert Vermeulen [Mon, 24 Jan 2011 01:49:14 +0000 (02:49 +0100)]
cli: don't initialize and scan for hardware unless needed

If the -d <plugin> option is used, only initialize the specified plugin.

13 years agoIntroduce proper libtool versioning for the libs.
Uwe Hermann [Sun, 23 Jan 2011 18:53:50 +0000 (19:53 +0100)]
Introduce proper libtool versioning for the libs.

13 years agoBuild fix.
Uwe Hermann [Sun, 23 Jan 2011 17:21:58 +0000 (18:21 +0100)]
Build fix.

13 years agofix compile warning on 32-bit platforms
Bert Vermeulen [Sun, 23 Jan 2011 04:32:37 +0000 (05:32 +0100)]
fix compile warning on 32-bit platforms

13 years agorestore demo driver to working state
Bert Vermeulen [Sun, 23 Jan 2011 04:32:13 +0000 (05:32 +0100)]
restore demo driver to working state

13 years agocli: revamp option syntax
Bert Vermeulen [Sun, 23 Jan 2011 03:58:32 +0000 (04:58 +0100)]
cli: revamp option syntax

for device (-d) and format (-f), the syntax is:

  <thing>:key=value:key2=value2

13 years agoalsa: hide a few compiler warnings
Daniel Ribeiro [Sat, 22 Jan 2011 14:23:34 +0000 (12:23 -0200)]
alsa: hide a few compiler warnings

13 years agofinish alsa driver implementation
Daniel Ribeiro [Sat, 22 Jan 2011 14:21:04 +0000 (12:21 -0200)]
finish alsa driver implementation

Yes, it works now.

13 years agoRevert "re-enable filter and datastore for DF_LOGIC"
Bert Vermeulen [Sat, 22 Jan 2011 13:18:31 +0000 (14:18 +0100)]
Revert "re-enable filter and datastore for DF_LOGIC"

This reverts commit 23da86dfc0a89c7ab951fea31a318a493830eb69.

13 years agosplit output_text into more manageable pieces
Bert Vermeulen [Fri, 21 Jan 2011 21:59:18 +0000 (22:59 +0100)]
split output_text into more manageable pieces

13 years agofix copynpaste glitch
Daniel Ribeiro [Sat, 22 Jan 2011 03:01:53 +0000 (01:01 -0200)]
fix copynpaste glitch

13 years agoinitial version of alsa plugin.
Daniel Ribeiro [Sat, 22 Jan 2011 02:57:27 +0000 (00:57 -0200)]
initial version of alsa plugin.

It does NOT work yet.

13 years agoalphabetical order
Daniel Ribeiro [Sat, 22 Jan 2011 00:02:32 +0000 (22:02 -0200)]
alphabetical order

13 years agoRemove duplicate FIRMWARE_DIR includes.
Uwe Hermann [Fri, 21 Jan 2011 20:04:01 +0000 (21:04 +0100)]
Remove duplicate FIRMWARE_DIR includes.

We use AC_DEFINE_UNQUOTED in configure.ac now to put the FIRMWARE_DIR #define
in the config.h file, which is included where we need the #define.

13 years agore-enable filter and datastore for DF_LOGIC
Daniel Ribeiro [Fri, 21 Jan 2011 20:04:09 +0000 (18:04 -0200)]
re-enable filter and datastore for DF_LOGIC

This definitely isn't the proper fix, but it should allow DF_LOGIC
and DF_ANALOG to coexist.

13 years agoadd incomplete DF_ANALOG support to output_gnuplot.c
Daniel Ribeiro [Fri, 21 Jan 2011 18:11:44 +0000 (16:11 -0200)]
add incomplete DF_ANALOG support to output_gnuplot.c

RAW->Voltage conversion is not implemented yet, its hardcoded for
signed 16bit conversion.

13 years agoadd a sine wave to demo.c
Daniel Ribeiro [Fri, 21 Jan 2011 14:52:12 +0000 (12:52 -0200)]
add a sine wave to demo.c

13 years agoreduce analog_sample sizes.
Daniel Ribeiro [Fri, 21 Jan 2011 13:25:50 +0000 (11:25 -0200)]
reduce analog_sample sizes.

To save resources, reduce the max ADC resolution and max probes
per device. Just increase when needed.

Soft limit: 256 probes, 16bit adc
Hard limit: 2^64 probes, 64 bit adc

13 years agochange demo.c to output analog packets
Daniel Ribeiro [Fri, 21 Jan 2011 03:30:56 +0000 (01:30 -0200)]
change demo.c to output analog packets

You need to #define DEMO_ANALOG to generate DF_ANALOG packets.

13 years agochange output_text.c to support analog
Daniel Ribeiro [Fri, 21 Jan 2011 03:19:50 +0000 (01:19 -0200)]
change output_text.c to support analog

Only the "bits" output format was converted.
Analog values, are scaled down to A-Z letters.

13 years agointroduce analog_sample datafeed packet
Daniel Ribeiro [Fri, 21 Jan 2011 03:14:53 +0000 (01:14 -0200)]
introduce analog_sample datafeed packet

These structs define the packet format used to exchange data using
the DF_ANALOG packet type.

13 years agomake output_analog.c = output_text.c
Daniel Ribeiro [Thu, 20 Jan 2011 22:10:43 +0000 (20:10 -0200)]
make output_analog.c = output_text.c

13 years agoInstall an empty firmware/ directory.
Uwe Hermann [Thu, 20 Jan 2011 22:23:06 +0000 (23:23 +0100)]
Install an empty firmware/ directory.

This reduces the hassle for the users (and distro packages) a bit, you
only need to copy files into there now.

13 years agolib headers: Add 'extern "C"' for C++ usage.
Uwe Hermann [Thu, 20 Jan 2011 22:00:59 +0000 (23:00 +0100)]
lib headers: Add 'extern "C"' for C++ usage.

13 years agoRe-enable stuff we temporarily disabled for 0.1.
Uwe Hermann [Wed, 19 Jan 2011 23:39:59 +0000 (00:39 +0100)]
Re-enable stuff we temporarily disabled for 0.1.

13 years agoDisable Link Instruments MSO-19 for 0.1.
Uwe Hermann [Wed, 19 Jan 2011 22:55:03 +0000 (23:55 +0100)]
Disable Link Instruments MSO-19 for 0.1.

13 years agodemo: Small indentation fix.
Uwe Hermann [Wed, 19 Jan 2011 22:47:21 +0000 (23:47 +0100)]
demo: Small indentation fix.

13 years agoDemo: Obery samplerate and fix race condition.
Håvard Espeland [Wed, 19 Jan 2011 22:14:17 +0000 (23:14 +0100)]
Demo: Obery samplerate and fix race condition.

13 years agodisable MSO-19 specific stuff for 0.1 release
Bert Vermeulen [Wed, 19 Jan 2011 21:47:55 +0000 (22:47 +0100)]
disable MSO-19 specific stuff for 0.1 release

13 years agoDon't install libs and headers in the 0.1 release.
Uwe Hermann [Wed, 19 Jan 2011 18:20:44 +0000 (19:20 +0100)]
Don't install libs and headers in the 0.1 release.

The library APIs are not yet usable or finalized, so don't expose the
libs for now. Instead, only install sigrok-cli, the manpages, and
the decoders.

13 years agoMove more non-public headers to sigrok-internal.h.
Uwe Hermann [Wed, 19 Jan 2011 00:16:19 +0000 (01:16 +0100)]
Move more non-public headers to sigrok-internal.h.

13 years agoFix compiler warning.
Uwe Hermann [Mon, 17 Jan 2011 23:08:11 +0000 (00:08 +0100)]
Fix compiler warning.

13 years agooutput_vcd: Make timestamp work on 32-bit machine.
Håvard Espeland [Tue, 18 Jan 2011 22:17:55 +0000 (23:17 +0100)]
output_vcd: Make timestamp work on 32-bit machine.

13 years agoSigma: Update set_configuration to reflect API.
Håvard Espeland [Tue, 18 Jan 2011 22:12:57 +0000 (23:12 +0100)]
Sigma: Update set_configuration to reflect API.

13 years agoSigma: Set default samplerate to 200 KHz.
Håvard Espeland [Tue, 18 Jan 2011 21:39:46 +0000 (22:39 +0100)]
Sigma: Set default samplerate to 200 KHz.

13 years agoSigma: Only send trigger packet if enabled.
Håvard Espeland [Tue, 18 Jan 2011 21:24:23 +0000 (22:24 +0100)]
Sigma: Only send trigger packet if enabled.

The Sigma hardware emits a default trigger event.

13 years agoSigma: Never send empty packets.
Håvard Espeland [Tue, 18 Jan 2011 21:17:43 +0000 (22:17 +0100)]
Sigma: Never send empty packets.

13 years agooutput_text: Mark trigger at correct position.
Håvard Espeland [Tue, 18 Jan 2011 21:14:36 +0000 (22:14 +0100)]
output_text: Mark trigger at correct position.

ASCII output does not separate groups of samples with
and must be handled separately.

13 years agooutput_text: Fix ASCII edge case.
Håvard Espeland [Tue, 18 Jan 2011 21:13:50 +0000 (22:13 +0100)]
output_text: Fix ASCII edge case.

13 years agooutput_text: Add ASCII output.
Håvard Espeland [Mon, 17 Jan 2011 21:56:14 +0000 (22:56 +0100)]
output_text: Add ASCII output.

13 years agodemo driver: support time limit
Bert Vermeulen [Mon, 17 Jan 2011 01:20:52 +0000 (02:20 +0100)]
demo driver: support time limit

13 years agorefuse to set sample limit under 4 (protocol can't handle it)
Bert Vermeulen [Mon, 17 Jan 2011 01:18:02 +0000 (02:18 +0100)]
refuse to set sample limit under 4 (protocol can't handle it)

also a bit of whitespace mangling.

13 years agooutput_vcd: Emit timestamps as time, not sample num.
Håvard Espeland [Sun, 16 Jan 2011 16:55:51 +0000 (17:55 +0100)]
output_vcd: Emit timestamps as time, not sample num.

13 years agooutput_vcd: Remember samples between packets.
Håvard Espeland [Sun, 16 Jan 2011 16:34:49 +0000 (17:34 +0100)]
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.

13 years agoSigma: Support for decoding partial chunks.
Håvard Espeland [Sun, 16 Jan 2011 16:03:25 +0000 (17:03 +0100)]
Sigma: Support for decoding partial chunks.

Samples are stored in chunks and the last samples do not fill up
a complete chunk. This patch adds support for decoding partial
chunks.

13 years agoFix warnings.
Uwe Hermann [Sun, 16 Jan 2011 13:18:26 +0000 (14:18 +0100)]
Fix warnings.

13 years agodemo: Use GIOChannels, makes it work on MinGW.
Uwe Hermann [Sun, 16 Jan 2011 13:12:52 +0000 (14:12 +0100)]
demo: Use GIOChannels, makes it work on MinGW.

13 years agoclean up output_vcd module
Bert Vermeulen [Sun, 16 Jan 2011 03:34:45 +0000 (04:34 +0100)]
clean up output_vcd module

use self-expanding strings, better standards conformance

13 years agoSigma: Limit number of edge triggers to 1.
Håvard Espeland [Sat, 15 Jan 2011 19:01:00 +0000 (20:01 +0100)]
Sigma: Limit number of edge triggers to 1.

Actually, Sigma supports 2 rising/falling triggers,
but they are ORed and the current trigger syntax
does not permit ORed triggers.

13 years agoSigma: Download samples from partial chunks.
Håvard Espeland [Sat, 15 Jan 2011 18:19:49 +0000 (19:19 +0100)]
Sigma: Download samples from partial chunks.

13 years agoInitial support for the OLS output format.
Uwe Hermann [Sat, 15 Jan 2011 17:18:09 +0000 (18:18 +0100)]
Initial support for the OLS output format.

This is the file format for the OpenBench Logic Sniffer "Alternative" client.
Details: https://github.com/jawi/ols/wiki/OLS-data-file-format

This is work-in-progress.
Currently the number of samples is hardcoded to 10000. Also, this will
require a real logic analyzer as input at the moment, and will not yet
work with the "demo" driver.

13 years agooutput_text: Allocate more memory for output
Håvard Espeland [Sat, 15 Jan 2011 17:24:01 +0000 (18:24 +0100)]
output_text: Allocate more memory for output

The trigger line was forgotten. Allocate 512 bytes extra.

13 years agoSigma: Move sigma state to device specific struct
Håvard Espeland [Sat, 15 Jan 2011 16:02:18 +0000 (17:02 +0100)]
Sigma: Move sigma state to device specific struct

Thanks to Daniel Ribeiro for contributing this patch. Some
modifications were done.

Not tested on multiple Sigmas, because of lack of hardware.

13 years agooutput_text: Allocate enough memory for output
Håvard Espeland [Sat, 15 Jan 2011 15:10:57 +0000 (16:10 +0100)]
output_text: Allocate enough memory for output

13 years agoDrop unused debug.c.
Uwe Hermann [Sat, 15 Jan 2011 14:44:21 +0000 (15:44 +0100)]
Drop unused debug.c.

Even if we'd use it, it probably belongs into the frontend, not libsigrok.

13 years agoCosmetics.
Uwe Hermann [Sat, 15 Jan 2011 14:43:25 +0000 (15:43 +0100)]
Cosmetics.

13 years agosigrok-proto.h: Sort the prototypes, fix comments.
Uwe Hermann [Sat, 15 Jan 2011 14:43:03 +0000 (15:43 +0100)]
sigrok-proto.h: Sort the prototypes, fix comments.

13 years agoStart moving private stuff to sigrok-internal.h.
Uwe Hermann [Sat, 15 Jan 2011 14:06:58 +0000 (15:06 +0100)]
Start moving private stuff to sigrok-internal.h.

This is work-in-progress, unfinished.

13 years agofix hex output
Bert Vermeulen [Sat, 15 Jan 2011 14:21:54 +0000 (15:21 +0100)]
fix hex output

13 years agoSlightly more consistent #include-guard naming.
Uwe Hermann [Sat, 15 Jan 2011 13:41:57 +0000 (14:41 +0100)]
Slightly more consistent #include-guard naming.