]>
sigrok.org Git - libsigrok.git/log
Uwe Hermann [Sun, 23 Jan 2011 17:21:58 +0000 (18:21 +0100)]
Build fix.
Bert Vermeulen [Sun, 23 Jan 2011 04:32:37 +0000 (05:32 +0100)]
fix compile warning on 32-bit platforms
Bert Vermeulen [Sun, 23 Jan 2011 04:32:13 +0000 (05:32 +0100)]
restore demo driver to working state
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
Daniel Ribeiro [Sat, 22 Jan 2011 14:23:34 +0000 (12:23 -0200)]
alsa: hide a few compiler warnings
Daniel Ribeiro [Sat, 22 Jan 2011 14:21:04 +0000 (12:21 -0200)]
finish alsa driver implementation
Yes, it works now.
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 .
Bert Vermeulen [Fri, 21 Jan 2011 21:59:18 +0000 (22:59 +0100)]
split output_text into more manageable pieces
Daniel Ribeiro [Sat, 22 Jan 2011 03:01:53 +0000 (01:01 -0200)]
fix copynpaste glitch
Daniel Ribeiro [Sat, 22 Jan 2011 02:57:27 +0000 (00:57 -0200)]
initial version of alsa plugin.
It does NOT work yet.
Daniel Ribeiro [Sat, 22 Jan 2011 00:02:32 +0000 (22:02 -0200)]
alphabetical order
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.
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.
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.
Daniel Ribeiro [Fri, 21 Jan 2011 14:52:12 +0000 (12:52 -0200)]
add a sine wave to demo.c
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
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.
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.
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.
Daniel Ribeiro [Thu, 20 Jan 2011 22:10:43 +0000 (20:10 -0200)]
make output_analog.c = output_text.c
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.
Uwe Hermann [Thu, 20 Jan 2011 22:00:59 +0000 (23:00 +0100)]
lib headers: Add 'extern "C"' for C++ usage.
Uwe Hermann [Wed, 19 Jan 2011 23:39:59 +0000 (00:39 +0100)]
Re-enable stuff we temporarily disabled for 0.1.
Uwe Hermann [Wed, 19 Jan 2011 22:55:03 +0000 (23:55 +0100)]
Disable Link Instruments MSO-19 for 0.1.
Uwe Hermann [Wed, 19 Jan 2011 22:47:21 +0000 (23:47 +0100)]
demo: Small indentation fix.
Håvard Espeland [Wed, 19 Jan 2011 22:14:17 +0000 (23:14 +0100)]
Demo: Obery samplerate and fix race condition.
Bert Vermeulen [Wed, 19 Jan 2011 21:47:55 +0000 (22:47 +0100)]
disable MSO-19 specific stuff for 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.
Uwe Hermann [Wed, 19 Jan 2011 00:16:19 +0000 (01:16 +0100)]
Move more non-public headers to sigrok-internal.h.
Uwe Hermann [Mon, 17 Jan 2011 23:08:11 +0000 (00:08 +0100)]
Fix compiler warning.
Håvard Espeland [Tue, 18 Jan 2011 22:17:55 +0000 (23:17 +0100)]
output_vcd: Make timestamp work on 32-bit machine.
Håvard Espeland [Tue, 18 Jan 2011 22:12:57 +0000 (23:12 +0100)]
Sigma: Update set_configuration to reflect API.
Håvard Espeland [Tue, 18 Jan 2011 21:39:46 +0000 (22:39 +0100)]
Sigma: Set default samplerate to 200 KHz.
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.
Håvard Espeland [Tue, 18 Jan 2011 21:17:43 +0000 (22:17 +0100)]
Sigma: Never send empty packets.
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.
Håvard Espeland [Tue, 18 Jan 2011 21:13:50 +0000 (22:13 +0100)]
output_text: Fix ASCII edge case.
Håvard Espeland [Mon, 17 Jan 2011 21:56:14 +0000 (22:56 +0100)]
output_text: Add ASCII output.
Bert Vermeulen [Mon, 17 Jan 2011 01:20:52 +0000 (02:20 +0100)]
demo driver: support time limit
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.
Håvard Espeland [Sun, 16 Jan 2011 16:55:51 +0000 (17:55 +0100)]
output_vcd: Emit timestamps as time, not sample num.
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.
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.
Uwe Hermann [Sun, 16 Jan 2011 13:18:26 +0000 (14:18 +0100)]
Fix warnings.
Uwe Hermann [Sun, 16 Jan 2011 13:12:52 +0000 (14:12 +0100)]
demo: Use GIOChannels, makes it work on MinGW.
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
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.
Håvard Espeland [Sat, 15 Jan 2011 18:19:49 +0000 (19:19 +0100)]
Sigma: Download samples from partial chunks.
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.
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.
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.
Håvard Espeland [Sat, 15 Jan 2011 15:10:57 +0000 (16:10 +0100)]
output_text: Allocate enough memory for output
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.
Uwe Hermann [Sat, 15 Jan 2011 14:43:25 +0000 (15:43 +0100)]
Cosmetics.
Uwe Hermann [Sat, 15 Jan 2011 14:43:03 +0000 (15:43 +0100)]
sigrok-proto.h: Sort the prototypes, fix comments.
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.
Bert Vermeulen [Sat, 15 Jan 2011 14:21:54 +0000 (15:21 +0100)]
fix hex output
Uwe Hermann [Sat, 15 Jan 2011 13:41:57 +0000 (14:41 +0100)]
Slightly more consistent #include-guard naming.
Bert Vermeulen [Sat, 15 Jan 2011 13:28:03 +0000 (14:28 +0100)]
added example code for generating a stored pattern
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.
Uwe Hermann [Sat, 15 Jan 2011 12:06:04 +0000 (13:06 +0100)]
demo: Cosmetics, constify.
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)
Bert Vermeulen [Sat, 15 Jan 2011 04:11:40 +0000 (05:11 +0100)]
add new HWCAP patternmode
Uwe Hermann [Sat, 15 Jan 2011 02:44:19 +0000 (03:44 +0100)]
Cosmetics for the -D output.
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.
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.
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)
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.
Olivier Fauchon [Tue, 11 Jan 2011 23:25:15 +0000 (00:25 +0100)]
add ontinuous mode for demo driver
Bert Vermeulen [Tue, 11 Jan 2011 22:58:41 +0000 (23:58 +0100)]
fully implement input_binary module
Bert Vermeulen [Tue, 11 Jan 2011 22:49:32 +0000 (23:49 +0100)]
code cleanup
Uwe Hermann [Tue, 11 Jan 2011 21:17:33 +0000 (22:17 +0100)]
configure: Add --enable-demo option.
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!
Bert Vermeulen [Mon, 10 Jan 2011 21:17:52 +0000 (22:17 +0100)]
cli: support --continuous option for continuous sampling
Uwe Hermann [Mon, 10 Jan 2011 22:20:37 +0000 (23:20 +0100)]
Cosmetics, whitespace, consistency fixes.
Uwe Hermann [Mon, 10 Jan 2011 21:49:38 +0000 (22:49 +0100)]
demo: Add missing copyright line.
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
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. :)
Daniel Ribeiro [Mon, 10 Jan 2011 17:14:26 +0000 (15:14 -0200)]
Add HZ_TO_NS macro
Daniel Ribeiro [Mon, 10 Jan 2011 17:12:38 +0000 (15:12 -0200)]
update plugins and cli to use new DF_HEADER
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.
Daniel Ribeiro [Mon, 10 Jan 2011 17:05:14 +0000 (15:05 -0200)]
serial.c: fix parity != none
The flag write was wrong
Bert Vermeulen [Mon, 10 Jan 2011 12:47:24 +0000 (13:47 +0100)]
finish split of sigrok.h
Bert Vermeulen [Mon, 10 Jan 2011 12:44:11 +0000 (13:44 +0100)]
split off prototypes into their own header file
Bert Vermeulen [Mon, 10 Jan 2011 11:39:53 +0000 (12:39 +0100)]
cli: new option to list output modules
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
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.
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
Bert Vermeulen [Mon, 10 Jan 2011 04:27:22 +0000 (05:27 +0100)]
output_analog: allow samples per line arg (default analog10)
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.
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).
Bert Vermeulen [Sun, 9 Jan 2011 22:22:48 +0000 (23:22 +0100)]
output modules now register the DF type they can use
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.
Daniel Ribeiro [Sun, 9 Jan 2011 05:48:39 +0000 (03:48 -0200)]
Add ARRAY_AND_SIZE macro
Just a handy macro
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.
Uwe Hermann [Sat, 8 Jan 2011 19:06:32 +0000 (20:06 +0100)]
Only build specific source files if needed.
Uwe Hermann [Sat, 8 Jan 2011 18:15:39 +0000 (19:15 +0100)]
Only build hardware drivers if they're enabled.
Uwe Hermann [Sat, 8 Jan 2011 18:01:07 +0000 (19:01 +0100)]
demo driver: Small cleanups, error handling.
Uwe Hermann [Sat, 8 Jan 2011 17:29:10 +0000 (18:29 +0100)]
Make the demo driver work.
When initialized, the driver starts a thread that generates signal data.
This data is written to a pipe (write file descriptor).
The other end of the pipe (read file descriptor), is connected to the
main polling code, like any other driver.
Note: This patch adds a new dependency on libgthread.
At the moment, you can list the driver's device:
$ ./cli/sigrok-cli -D
The following devices were found:
ID Device
0 Sigrok project Demo Driver v1.0 with 8 probes
And use it for random signal generation:
$ /opt/sigrok/bin/sigrok-cli -d 0 --samples 50 -f bits -p 1-8
sigrok 0.1pre2
Acquisition with 8/8 probes at 0 Hz
1:
10111100 11010110 00001011 00011110 00111010 11110100 10
2:
11010110 00111111 01001010 11111101 11010011 00010010 11
3:
11000101 01000001 10100011 10100100 10110000 11110011 00
4:
00100111 11110100 10011101 01100111 00100101 01001110 10
5:
00011100 00101100 10111000 11001101 01011101 01011011 01
6:
10110101 10111110 10010110 10111000 11011010 10000100 11
7:
11111111 01001111 11110110 11010010 10000101 01001111 00
8:
01000101 01111110 01010111 00000111 00010010 00000101 11
The next step is to make demo driver customisable (per-probe signal clock,
reference sample signals : serial, I2C, CAN...).
Thanks Olivier Fauchon <redacted> for the patch.
Bert Vermeulen [Sat, 8 Jan 2011 14:48:39 +0000 (15:48 +0100)]
fix buffer size, various error checks