]>
sigrok.org Git - libsigrok.git/log
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
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
Bert Vermeulen [Wed, 5 Jan 2011 23:51:29 +0000 (00:51 +0100)]
add sigrok_period_string(), MAX_NUM_PROBES
Uwe Hermann [Sat, 8 Jan 2011 02:51:31 +0000 (03:51 +0100)]
Fix two more compiler warnings noticed on amd64.
Uwe Hermann [Sat, 8 Jan 2011 02:32:25 +0000 (03:32 +0100)]
Fix out-of-tree build.
Use libtool "noinst" local helper libs and use one Makefile.am per
subdir, which is the usual/preferred method. These helper libraries are
purely local and will not be installed.
This also fixes out-of-tree builds of sigrok, i.e. building in a
directory other than the sigrok source directory, e.g.
$ cd /home/user
$ git clone ...sigrok
$ cd sigrok
$ ./autogen.sh
$ mkdir /tmp/foo
$ cd /tmp/foo
$ /home/user/sigrok/configure
$ make
$ make install
This will place all build results (.o files, .la files, etc) in the
local build directory (/tmp/foo) instead of the source directory
(/home/user/sigrok in this example). The installation directory is
selected via the --prefix configure option (/usr/local per default).
Uwe Hermann [Fri, 7 Jan 2011 18:55:25 +0000 (19:55 +0100)]
Cosmetics, whitespace, simplifications.
Reduce code nesting a bit, constify some strings.
Uwe Hermann [Thu, 6 Jan 2011 18:16:47 +0000 (19:16 +0100)]
Initial, unfinished demo/simulation hardware driver.
Bert Vermeulen [Wed, 29 Dec 2010 00:22:58 +0000 (01:22 +0100)]
proper fix for output_text corner cases
limit probe names to 32 chars
Bert Vermeulen [Tue, 28 Dec 2010 23:02:30 +0000 (00:02 +0100)]
consistent debug msgs, rename sump to ols
Bert Vermeulen [Tue, 28 Dec 2010 20:59:07 +0000 (21:59 +0100)]
fix corner cases/memory management (cli->text out)
Bert Vermeulen [Mon, 27 Dec 2010 22:44:50 +0000 (23:44 +0100)]
don't turn on/off libusb debugging
Bert Vermeulen [Thu, 12 Aug 2010 04:04:44 +0000 (06:04 +0200)]
oops, fix serial_flush()
Bert Vermeulen [Thu, 12 Aug 2010 04:02:25 +0000 (06:02 +0200)]
add serial_flush()
Bert Vermeulen [Thu, 12 Aug 2010 03:49:00 +0000 (05:49 +0200)]
increase length of datafeed packets to uint64_t
Bert Vermeulen [Thu, 12 Aug 2010 02:57:09 +0000 (04:57 +0200)]
don't push configuration to device until acq time
Bert Vermeulen [Wed, 11 Aug 2010 16:37:09 +0000 (18:37 +0200)]
OLS: fix multi-channel capture
Bert Vermeulen [Wed, 11 Aug 2010 02:04:20 +0000 (04:04 +0200)]
add debug logging (set SIGROK_DEBUG=2 to see)
Bert Vermeulen [Thu, 5 Aug 2010 01:54:33 +0000 (03:54 +0200)]
OLS: fix triggers, sample order, capture ratio
Bert Vermeulen [Thu, 5 Aug 2010 01:52:32 +0000 (03:52 +0200)]
define pre/post-trigger capture ratio option
Bert Vermeulen [Sun, 18 Jul 2010 19:57:27 +0000 (21:57 +0200)]
saleae logic: fix triggers after style changes
Uwe Hermann [Wed, 14 Jul 2010 20:09:21 +0000 (22:09 +0200)]
hwplugin.c: Add missing config.h #include.
This fixes a bug where no LA would be found or displayed in lists such
as 'sigrok-cli -H' or 'sigrok-cli -D'.
Thanks Forrest Voight for spotting the bug.
Uwe Hermann [Thu, 24 Jun 2010 23:11:11 +0000 (01:11 +0200)]
Only build hardware plugins if requested by user.
Per default all plugins will be built, though. The user can override
this via the --disable-la-xxxx options.
Uwe Hermann [Mon, 31 May 2010 09:34:10 +0000 (11:34 +0200)]
Add per-LA --enable-XXXX configure options.
Uwe Hermann [Wed, 26 May 2010 23:51:55 +0000 (01:51 +0200)]
Use 'kHz' (not 'KHz') consistently.
Uwe Hermann [Tue, 18 May 2010 22:38:14 +0000 (00:38 +0200)]
Simplifications and small fixes.
Uwe Hermann [Tue, 18 May 2010 22:23:27 +0000 (00:23 +0200)]
skeleton.c: Update to latest prototypes.
Bert Vermeulen [Sat, 15 May 2010 21:30:17 +0000 (23:30 +0200)]
use flexible sample limit specification (k/m/g)
HWCAP_LIMIT_SAMPLES is now passed to the driver as *uint64
Uwe Hermann [Mon, 17 May 2010 21:59:56 +0000 (23:59 +0200)]
Cosmetics: Reduce nesting level a bit.
Uwe Hermann [Fri, 14 May 2010 12:24:05 +0000 (14:24 +0200)]
Factor out opendev2/opendev3.
Uwe Hermann [Fri, 14 May 2010 11:12:06 +0000 (13:12 +0200)]
opendev2/opendev3: Don't depend on global vars.
Uwe Hermann [Fri, 14 May 2010 11:07:03 +0000 (13:07 +0200)]
Cosmetics.
Uwe Hermann [Tue, 11 May 2010 16:07:54 +0000 (18:07 +0200)]
pkg-config: Add (semi-generated) libsigrok.pc.
Uwe Hermann [Tue, 11 May 2010 15:13:35 +0000 (17:13 +0200)]
Drop unused and obsolete gmodule stuff.
Peter Stuge [Sun, 9 May 2010 21:11:08 +0000 (23:11 +0200)]
sump/ols: Wait 10ms for hw response to make pl2303 reliable
Peter Stuge [Sun, 9 May 2010 21:04:24 +0000 (23:04 +0200)]
serial: Remove unneccesary nesting
Uwe Hermann [Sun, 9 May 2010 19:05:15 +0000 (21:05 +0200)]
VCD: Optimizations and fixes.
Uwe Hermann [Sun, 9 May 2010 18:52:36 +0000 (20:52 +0200)]
VCD/Gnuplot: Fix incorrect sample counter.
Uwe Hermann [Sun, 9 May 2010 18:27:11 +0000 (20:27 +0200)]
Gnuplot: Nicer output formatting.
Uwe Hermann [Sun, 9 May 2010 17:36:43 +0000 (19:36 +0200)]
filter.c: Error handling, code simplification.
Uwe Hermann [Sun, 9 May 2010 13:52:56 +0000 (15:52 +0200)]
Gnuplot: Improve column/probe name display.
This fixes incorrect probe name display if the user explicitly named
probes via '-p 1=CLK' etc.
Uwe Hermann [Sun, 9 May 2010 13:38:33 +0000 (15:38 +0200)]
output_text: More error handling.
Uwe Hermann [Sun, 9 May 2010 13:12:10 +0000 (15:12 +0200)]
output_gnuplot: Simplify event().
Uwe Hermann [Sun, 9 May 2010 13:11:47 +0000 (15:11 +0200)]
output_binary: Code simplifications.
Uwe Hermann [Sun, 9 May 2010 13:02:17 +0000 (15:02 +0200)]
Gnuplot quickfix: Increase malloc()'ed size.
Uwe Hermann [Sun, 9 May 2010 12:54:16 +0000 (14:54 +0200)]
VCD/Gnuplot: Store time/date in output.
Uwe Hermann [Sun, 9 May 2010 12:42:46 +0000 (14:42 +0200)]
VCD/Gnuplot: Cosmetics, code simplifications.
Uwe Hermann [Sun, 9 May 2010 12:35:02 +0000 (14:35 +0200)]
Gnuplot output: More error handling.
Uwe Hermann [Sun, 9 May 2010 11:32:58 +0000 (13:32 +0200)]
datastore_new(): Use int as return value.
Uwe Hermann [Sun, 9 May 2010 11:25:03 +0000 (13:25 +0200)]
Datastore: More error checking.
Uwe Hermann [Sat, 8 May 2010 14:09:25 +0000 (16:09 +0200)]
VCD: Improve error handling/checking.
Check malloc()/calloc() return values and so on. Also, add missing
free() calls and some TODOs. Simplify some code.
Bert Vermeulen [Thu, 6 May 2010 05:06:38 +0000 (22:06 -0700)]
output_text: always print sigrok version
Bert Vermeulen [Thu, 6 May 2010 04:43:25 +0000 (21:43 -0700)]
output_binary: rm TODO item
Yes, disabled probes are stripped by the filter before the
output module even gets data.
Bert Vermeulen [Thu, 6 May 2010 02:56:48 +0000 (19:56 -0700)]
output: if device has no plugin, don't report samplerate
Bert Vermeulen [Thu, 6 May 2010 02:55:58 +0000 (19:55 -0700)]
input: use dummy device when loading from file
Bert Vermeulen [Thu, 6 May 2010 02:54:19 +0000 (19:54 -0700)]
allow devices without a plugin
this is needed to support file loading: we want a device struct
so we can enumerate probes from the file, but there is no plugin
since the data come in from a device.
Håvard Espeland [Tue, 4 May 2010 17:44:39 +0000 (19:44 +0200)]
Output: Fix invalid pointer dereferencing in vcd and gnuplot.
Håvard Espeland [Mon, 3 May 2010 19:35:02 +0000 (21:35 +0200)]
Sigma: Small cleanups.
Håvard Espeland [Mon, 3 May 2010 19:30:37 +0000 (21:30 +0200)]
Sigma: Use software trigger to pinpoint exact sample.
Håvard Espeland [Mon, 3 May 2010 17:04:10 +0000 (19:04 +0200)]
Sigma: Add state machine for tracking Sigma status.
Håvard Espeland [Mon, 3 May 2010 13:06:43 +0000 (15:06 +0200)]
Sigma: Merge storage of rise/fall triggers.
Håvard Espeland [Sun, 2 May 2010 17:21:05 +0000 (19:21 +0200)]
Sigma: Minor cleanups.
Håvard Espeland [Sun, 2 May 2010 17:12:36 +0000 (19:12 +0200)]
Sigma: Set capture ratio correctly.
Håvard Espeland [Sun, 2 May 2010 12:58:59 +0000 (14:58 +0200)]
Sigma: 50 MHZ falling/rising edge trigger support.
Falling/rising edge and value/mask triggers can be combined, e.g.:
--triggers 1=0,2=r,3=1,4=1
Håvard Espeland [Sun, 2 May 2010 10:59:33 +0000 (12:59 +0200)]
Sigma: Fix simple trigger LUT calculation.
Håvard Espeland [Sat, 1 May 2010 20:38:43 +0000 (22:38 +0200)]
Sigma: Value/mask trigger support in 50 MHz mode.
Håvard Espeland [Sat, 1 May 2010 12:22:22 +0000 (14:22 +0200)]
Sigma: Small cleanups.
Uwe Hermann [Sat, 1 May 2010 00:41:37 +0000 (02:41 +0200)]
Saleae: Rename firmware file to saleae-logic.fw.
This is done for consistency with the ASIX SIGMA firmware file names,
and also for brevity.
Bert Vermeulen [Fri, 30 Apr 2010 22:54:39 +0000 (15:54 -0700)]
inout module infrastructure + binary input module
Håvard Espeland [Fri, 30 Apr 2010 20:18:55 +0000 (22:18 +0200)]
cli: Show trigger event in bits plugin.
Håvard Espeland [Fri, 30 Apr 2010 20:18:10 +0000 (22:18 +0200)]
Sigma: Add triggers support for 100 and 200 MHz.
Håvard Espeland [Fri, 30 Apr 2010 21:51:57 +0000 (23:51 +0200)]
Sigma: Minor cleanup and add more samplesrates.
Uwe Hermann [Wed, 28 Apr 2010 22:32:44 +0000 (00:32 +0200)]
Sigma: Small cosmetic fixes.
Håvard Espeland [Wed, 28 Apr 2010 20:45:13 +0000 (22:45 +0200)]
Sigma: Support for low samplerates
Lowest samplerate supported in driver is 250 KHz
Håvard Espeland [Wed, 28 Apr 2010 19:21:19 +0000 (21:21 +0200)]
Sigma: Support 50 and 200 MHz modes
Håvard Espeland [Wed, 28 Apr 2010 19:20:27 +0000 (21:20 +0200)]
Sigma: Rename firmware files
Håvard Espeland [Wed, 28 Apr 2010 18:01:15 +0000 (20:01 +0200)]
Sigma: Upload 50, 100 or 200 MHz firmware
Håvard Espeland [Wed, 28 Apr 2010 17:48:59 +0000 (19:48 +0200)]
Sigma: Move upload firmware into a function
Uwe Hermann [Tue, 27 Apr 2010 22:17:28 +0000 (00:17 +0200)]
ASIX SIGMA: Coding style fixes (via indent mostly).
Also, end all/most comments with full stop and avoid variable/array
definitions in the middle of functions.
Uwe Hermann [Tue, 27 Apr 2010 20:46:59 +0000 (22:46 +0200)]
asix-sigma.h: Add missing license header.
Uwe Hermann [Tue, 27 Apr 2010 20:44:15 +0000 (22:44 +0200)]
ASIX Sigma: Use common license header format.
Håvard Espeland [Tue, 27 Apr 2010 19:43:24 +0000 (21:43 +0200)]
This commit adds initial support for the Asix Sigma Logic Analyzer. Currently, only 200 MHz is supported, and only with software trigger. Firmware for the device will be distributed separately, with permission from the vendor.
Signed-off-by: Håvard Espeland <redacted>
Uwe Hermann [Thu, 22 Apr 2010 01:39:02 +0000 (03:39 +0200)]
Win: Fix compile, serial port code (unfinished).
Bert Vermeulen [Sun, 18 Apr 2010 17:57:13 +0000 (10:57 -0700)]
simplify code for unused features
Bert Vermeulen [Sun, 18 Apr 2010 06:07:00 +0000 (23:07 -0700)]
fix broken samplerate calculation