]>
sigrok.org Git - libsigrok.git/log
Uwe Hermann [Wed, 2 Feb 2011 12:13:13 +0000 (13:13 +0100)]
MinGW: Build fixes.
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.
Bert Vermeulen [Tue, 1 Feb 2011 05:51:34 +0000 (06:51 +0100)]
demo: stored-pattern generator now keeps state
Bert Vermeulen [Tue, 1 Feb 2011 05:13:32 +0000 (06:13 +0100)]
output_ols: now fully compliant with spec
Bert Vermeulen [Tue, 1 Feb 2011 01:33:54 +0000 (02:33 +0100)]
don't just assume a device has a samplerate setting
Bert Vermeulen [Tue, 1 Feb 2011 00:41:33 +0000 (01:41 +0100)]
don't force .sigrok extension when saving session file
Bert Vermeulen [Mon, 31 Jan 2011 23:06:32 +0000 (00:06 +0100)]
session_driver: remove unneeded callbacks
Bert Vermeulen [Mon, 31 Jan 2011 22:44:18 +0000 (23:44 +0100)]
fix device probe adding
Bert Vermeulen [Mon, 31 Jan 2011 21:34:14 +0000 (22:34 +0100)]
implement session loading based on a virtual device driver
Bert Vermeulen [Mon, 31 Jan 2011 21:29:40 +0000 (22:29 +0100)]
move samplerate/period printers and parsers into libsigrok
Bert Vermeulen [Sun, 30 Jan 2011 20:57:45 +0000 (21:57 +0100)]
remove dead code
Uwe Hermann [Mon, 31 Jan 2011 13:14:28 +0000 (14:14 +0100)]
MinGW: Build fix.
Uwe Hermann [Sun, 30 Jan 2011 18:22:13 +0000 (19:22 +0100)]
Consistently use _exit prefix for functions.
Uwe Hermann [Sun, 30 Jan 2011 16:58:41 +0000 (17:58 +0100)]
SR_ prefix for all public enums.
Uwe Hermann [Sun, 30 Jan 2011 15:44:26 +0000 (16:44 +0100)]
Prefixes for *_device_instance.
Uwe Hermann [Sun, 30 Jan 2011 15:19:42 +0000 (16:19 +0100)]
Prefix device structs with sr_.
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'.
Uwe Hermann [Sat, 29 Jan 2011 16:03:26 +0000 (17:03 +0100)]
Prefix datafeed structs with sr_.
Uwe Hermann [Sat, 29 Jan 2011 15:57:35 +0000 (16:57 +0100)]
get_sr_device_instance() -> sr_get_device_instance().
Uwe Hermann [Sat, 29 Jan 2011 15:43:45 +0000 (16:43 +0100)]
Change all sigrok_ prefixes to sr_.
Uwe Hermann [Sat, 29 Jan 2011 15:36:57 +0000 (16:36 +0100)]
Add sr_ prefix to input/output structs.
Uwe Hermann [Sat, 29 Jan 2011 15:23:12 +0000 (16:23 +0100)]
Change SIGROK_ prefix to SR_.
Bert Vermeulen [Sun, 30 Jan 2011 01:40:55 +0000 (02:40 +0100)]
move session main loop stuff into libsigrok (session_run)
Uwe Hermann [Thu, 27 Jan 2011 22:17:47 +0000 (23:17 +0100)]
Fix some compiler warnings.
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.
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.
Uwe Hermann [Sun, 23 Jan 2011 18:53:50 +0000 (19:53 +0100)]
Introduce proper libtool versioning for the libs.
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!