]> sigrok.org Git - libsigrok.git/log
libsigrok.git
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.

13 years agoadded example code for generating a stored pattern
Bert Vermeulen [Sat, 15 Jan 2011 13:28:03 +0000 (14:28 +0100)]
added example code for generating a stored pattern

13 years agoSigma: Check state in hw_closedev
Håvard Espeland [Sat, 15 Jan 2011 13:03:08 +0000 (14:03 +0100)]
Sigma: Check state in hw_closedev

If the device is closed without previously running hw_openedev
the driver crashes (happens in cleanup). This patch checks
if the device has been opened.

13 years agodemo: Cosmetics, constify.
Uwe Hermann [Sat, 15 Jan 2011 12:06:04 +0000 (13:06 +0100)]
demo: Cosmetics, constify.

13 years agocleaned up demo driver
Bert Vermeulen [Sat, 15 Jan 2011 04:12:41 +0000 (05:12 +0100)]
cleaned up demo driver

removed unused samplerate
added patternmode (random and incremental)

13 years agoadd new HWCAP patternmode
Bert Vermeulen [Sat, 15 Jan 2011 04:11:40 +0000 (05:11 +0100)]
add new HWCAP patternmode

13 years agoCosmetics for the -D output.
Uwe Hermann [Sat, 15 Jan 2011 02:44:19 +0000 (03:44 +0100)]
Cosmetics for the -D output.

13 years agoWhitespace and consistency fixes.
Uwe Hermann [Thu, 13 Jan 2011 22:50:34 +0000 (23:50 +0100)]
Whitespace and consistency fixes.

Also, drop a <poll.h> #include. It's unused anyway, and breaks the build
on MinGW/Windows as there is no poll.h there.

13 years agomake output modules a bit more crashproof
Bert Vermeulen [Thu, 13 Jan 2011 01:05:39 +0000 (02:05 +0100)]
make output modules a bit more crashproof

the event handler in output modules is now optional.

13 years agouse us instead of µs in periods (VCD can't handle it)
Bert Vermeulen [Thu, 13 Jan 2011 00:26:23 +0000 (01:26 +0100)]
use us instead of µs in periods (VCD can't handle it)

13 years agoMinGW/Windows: Serial port portability fixes.
Uwe Hermann [Tue, 11 Jan 2011 23:43:00 +0000 (00:43 +0100)]
MinGW/Windows: Serial port portability fixes.

Add serial_read()/serial_write() which have different implementations on
MinGW/Windows.

Add some more error code handling and documentation.

13 years agoadd ontinuous mode for demo driver
Olivier Fauchon [Tue, 11 Jan 2011 23:25:15 +0000 (00:25 +0100)]
add ontinuous mode for demo driver

13 years agofully implement input_binary module
Bert Vermeulen [Tue, 11 Jan 2011 22:58:41 +0000 (23:58 +0100)]
fully implement input_binary module

13 years agocode cleanup
Bert Vermeulen [Tue, 11 Jan 2011 22:49:32 +0000 (23:49 +0100)]
code cleanup

13 years agoconfigure: Add --enable-demo option.
Uwe Hermann [Tue, 11 Jan 2011 21:17:33 +0000 (22:17 +0100)]
configure: Add --enable-demo option.

13 years agoMinGW: Quickfix to make serial.c/ols.c compile.
Uwe Hermann [Tue, 11 Jan 2011 00:25:10 +0000 (01:25 +0100)]
MinGW: Quickfix to make serial.c/ols.c compile.

Note: It does NOT actually work, yet, it only compiles!

13 years agocli: support --continuous option for continuous sampling
Bert Vermeulen [Mon, 10 Jan 2011 21:17:52 +0000 (22:17 +0100)]
cli: support --continuous option for continuous sampling

13 years agoCosmetics, whitespace, consistency fixes.
Uwe Hermann [Mon, 10 Jan 2011 22:20:37 +0000 (23:20 +0100)]
Cosmetics, whitespace, consistency fixes.

13 years agodemo: Add missing copyright line.
Uwe Hermann [Mon, 10 Jan 2011 21:49:38 +0000 (22:49 +0100)]
demo: Add missing copyright line.

13 years agoMerge branch 'master' of git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
Daniel Ribeiro [Mon, 10 Jan 2011 17:58:05 +0000 (15:58 -0200)]
Merge branch 'master' of git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok

13 years agoAdd incomplete mso-19 plugin
Daniel Ribeiro [Mon, 10 Jan 2011 17:15:51 +0000 (15:15 -0200)]
Add incomplete mso-19 plugin

* Both Analog and Logic capture works.
* Analog values are raw ADC, still useless.
* Triggers aren't implemented.
* Pattern Generator not implemented.
* Everything is broken. :)

13 years agoAdd HZ_TO_NS macro
Daniel Ribeiro [Mon, 10 Jan 2011 17:14:26 +0000 (15:14 -0200)]
Add HZ_TO_NS macro

13 years agoupdate plugins and cli to use new DF_HEADER
Daniel Ribeiro [Mon, 10 Jan 2011 17:12:38 +0000 (15:12 -0200)]
update plugins and cli to use new DF_HEADER

13 years agoSupport for analog probes
Daniel Ribeiro [Mon, 10 Jan 2011 17:08:43 +0000 (15:08 -0200)]
Support for analog probes

Add a field to the probe struct to store the probe type.
Change DF_HEADER to report the quantity of each type of probe.

13 years agoserial.c: fix parity != none
Daniel Ribeiro [Mon, 10 Jan 2011 17:05:14 +0000 (15:05 -0200)]
serial.c: fix parity != none

The flag write was wrong

13 years agofinish split of sigrok.h
Bert Vermeulen [Mon, 10 Jan 2011 12:47:24 +0000 (13:47 +0100)]
finish split of sigrok.h

13 years agosplit off prototypes into their own header file
Bert Vermeulen [Mon, 10 Jan 2011 12:44:11 +0000 (13:44 +0100)]
split off prototypes into their own header file

13 years agocli: new option to list output modules
Bert Vermeulen [Mon, 10 Jan 2011 11:39:53 +0000 (12:39 +0100)]
cli: new option to list output modules

13 years agoMerge branch 'master' of git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
Daniel Ribeiro [Mon, 10 Jan 2011 04:36:50 +0000 (02:36 -0200)]
Merge branch 'master' of git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok

13 years agoFinish serial_set_params implementation
Daniel Ribeiro [Mon, 10 Jan 2011 04:21:07 +0000 (02:21 -0200)]
Finish serial_set_params implementation

Adds the most common baud rates and support bits, parity, stopbits
and flocontrol settings.

13 years agoMerge branch 'master' of git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
Daniel Ribeiro [Mon, 10 Jan 2011 04:28:59 +0000 (02:28 -0200)]
Merge branch 'master' of git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok

13 years agooutput_analog: allow samples per line arg (default analog10)
Bert Vermeulen [Mon, 10 Jan 2011 04:27:22 +0000 (05:27 +0100)]
output_analog: allow samples per line arg (default analog10)

13 years agoFinish serial_set_params implementation
Daniel Ribeiro [Mon, 10 Jan 2011 04:21:07 +0000 (02:21 -0200)]
Finish serial_set_params implementation

Adds the most common baud rates and support bits, parity, stopbits
and flocontrol settings.

13 years agoadd DF_ANALOG, and an analog output module
Bert Vermeulen [Mon, 10 Jan 2011 04:13:46 +0000 (05:13 +0100)]
add DF_ANALOG, and an analog output module

Samples in DF_ANALOG packets are fixed in length to sizeof(double).

13 years agooutput modules now register the DF type they can use
Bert Vermeulen [Sun, 9 Jan 2011 22:22:48 +0000 (23:22 +0100)]
output modules now register the DF type they can use

13 years agoAdd a per-instance pointer storage for hardware plugins.
Daniel Ribeiro [Sun, 9 Jan 2011 05:50:45 +0000 (03:50 -0200)]
Add a per-instance pointer storage for hardware plugins.

We need this to properly support more than one device connected
at the same time.

13 years agoAdd ARRAY_AND_SIZE macro
Daniel Ribeiro [Sun, 9 Jan 2011 05:48:39 +0000 (03:48 -0200)]
Add ARRAY_AND_SIZE macro

Just a handy macro

13 years agochange all DF_LOGIC* to a single DF_LOGIC type
Bert Vermeulen [Sun, 9 Jan 2011 05:32:38 +0000 (06:32 +0100)]
change all DF_LOGIC* to a single DF_LOGIC type

The datafeed packet has a new field 'unitsize' to denote the number of
bytes per sample in the payload.

13 years agoOnly build specific source files if needed.
Uwe Hermann [Sat, 8 Jan 2011 19:06:32 +0000 (20:06 +0100)]
Only build specific source files if needed.

13 years agoOnly build hardware drivers if they're enabled.
Uwe Hermann [Sat, 8 Jan 2011 18:15:39 +0000 (19:15 +0100)]
Only build hardware drivers if they're enabled.

13 years agodemo driver: Small cleanups, error handling.
Uwe Hermann [Sat, 8 Jan 2011 18:01:07 +0000 (19:01 +0100)]
demo driver: Small cleanups, error handling.