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

13 years agoMake the demo driver work.
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.

13 years agofix buffer size, various error checks
Bert Vermeulen [Sat, 8 Jan 2011 14:48:39 +0000 (15:48 +0100)]
fix buffer size, various error checks

13 years agoadd sigrok_period_string(), MAX_NUM_PROBES
Bert Vermeulen [Wed, 5 Jan 2011 23:51:29 +0000 (00:51 +0100)]
add sigrok_period_string(), MAX_NUM_PROBES

13 years agoFix two more compiler warnings noticed on amd64.
Uwe Hermann [Sat, 8 Jan 2011 02:51:31 +0000 (03:51 +0100)]
Fix two more compiler warnings noticed on amd64.

13 years agoFix out-of-tree build.
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).

13 years agoCosmetics, whitespace, simplifications.
Uwe Hermann [Fri, 7 Jan 2011 18:55:25 +0000 (19:55 +0100)]
Cosmetics, whitespace, simplifications.

Reduce code nesting a bit, constify some strings.

13 years agoInitial, unfinished demo/simulation hardware driver.
Uwe Hermann [Thu, 6 Jan 2011 18:16:47 +0000 (19:16 +0100)]
Initial, unfinished demo/simulation hardware driver.

13 years agoproper fix for output_text corner cases
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

13 years agoconsistent debug msgs, rename sump to ols
Bert Vermeulen [Tue, 28 Dec 2010 23:02:30 +0000 (00:02 +0100)]
consistent debug msgs, rename sump to ols

13 years agofix corner cases/memory management (cli->text out)
Bert Vermeulen [Tue, 28 Dec 2010 20:59:07 +0000 (21:59 +0100)]
fix corner cases/memory management (cli->text out)

13 years agodon't turn on/off libusb debugging
Bert Vermeulen [Mon, 27 Dec 2010 22:44:50 +0000 (23:44 +0100)]
don't turn on/off libusb debugging

14 years agooops, fix serial_flush()
Bert Vermeulen [Thu, 12 Aug 2010 04:04:44 +0000 (06:04 +0200)]
oops, fix serial_flush()

14 years agoadd serial_flush()
Bert Vermeulen [Thu, 12 Aug 2010 04:02:25 +0000 (06:02 +0200)]
add serial_flush()

14 years agoincrease length of datafeed packets to uint64_t
Bert Vermeulen [Thu, 12 Aug 2010 03:49:00 +0000 (05:49 +0200)]
increase length of datafeed packets to uint64_t

14 years agodon't push configuration to device until acq time
Bert Vermeulen [Thu, 12 Aug 2010 02:57:09 +0000 (04:57 +0200)]
don't push configuration to device until acq time

14 years agoOLS: fix multi-channel capture
Bert Vermeulen [Wed, 11 Aug 2010 16:37:09 +0000 (18:37 +0200)]
OLS: fix multi-channel capture

14 years agoadd debug logging (set SIGROK_DEBUG=2 to see)
Bert Vermeulen [Wed, 11 Aug 2010 02:04:20 +0000 (04:04 +0200)]
add debug logging (set SIGROK_DEBUG=2 to see)

14 years agoOLS: fix triggers, sample order, capture ratio
Bert Vermeulen [Thu, 5 Aug 2010 01:54:33 +0000 (03:54 +0200)]
OLS: fix triggers, sample order, capture ratio

14 years agodefine pre/post-trigger capture ratio option
Bert Vermeulen [Thu, 5 Aug 2010 01:52:32 +0000 (03:52 +0200)]
define pre/post-trigger capture ratio option

14 years agosaleae logic: fix triggers after style changes
Bert Vermeulen [Sun, 18 Jul 2010 19:57:27 +0000 (21:57 +0200)]
saleae logic: fix triggers after style changes

14 years agohwplugin.c: Add missing config.h #include.
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.

14 years agoOnly build hardware plugins if requested by user.
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.

14 years agoAdd per-LA --enable-XXXX configure options.
Uwe Hermann [Mon, 31 May 2010 09:34:10 +0000 (11:34 +0200)]
Add per-LA --enable-XXXX configure options.

14 years agoUse 'kHz' (not 'KHz') consistently.
Uwe Hermann [Wed, 26 May 2010 23:51:55 +0000 (01:51 +0200)]
Use 'kHz' (not 'KHz') consistently.

14 years agoSimplifications and small fixes.
Uwe Hermann [Tue, 18 May 2010 22:38:14 +0000 (00:38 +0200)]
Simplifications and small fixes.

14 years agoskeleton.c: Update to latest prototypes.
Uwe Hermann [Tue, 18 May 2010 22:23:27 +0000 (00:23 +0200)]
skeleton.c: Update to latest prototypes.

14 years agouse flexible sample limit specification (k/m/g)
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

14 years agoCosmetics: Reduce nesting level a bit.
Uwe Hermann [Mon, 17 May 2010 21:59:56 +0000 (23:59 +0200)]
Cosmetics: Reduce nesting level a bit.

14 years agoFactor out opendev2/opendev3.
Uwe Hermann [Fri, 14 May 2010 12:24:05 +0000 (14:24 +0200)]
Factor out opendev2/opendev3.

14 years agoopendev2/opendev3: Don't depend on global vars.
Uwe Hermann [Fri, 14 May 2010 11:12:06 +0000 (13:12 +0200)]
opendev2/opendev3: Don't depend on global vars.

14 years agoCosmetics.
Uwe Hermann [Fri, 14 May 2010 11:07:03 +0000 (13:07 +0200)]
Cosmetics.

14 years agopkg-config: Add (semi-generated) libsigrok.pc.
Uwe Hermann [Tue, 11 May 2010 16:07:54 +0000 (18:07 +0200)]
pkg-config: Add (semi-generated) libsigrok.pc.

14 years agoDrop unused and obsolete gmodule stuff.
Uwe Hermann [Tue, 11 May 2010 15:13:35 +0000 (17:13 +0200)]
Drop unused and obsolete gmodule stuff.

14 years agosump/ols: Wait 10ms for hw response to make pl2303 reliable
Peter Stuge [Sun, 9 May 2010 21:11:08 +0000 (23:11 +0200)]
sump/ols: Wait 10ms for hw response to make pl2303 reliable

14 years agoserial: Remove unneccesary nesting
Peter Stuge [Sun, 9 May 2010 21:04:24 +0000 (23:04 +0200)]
serial: Remove unneccesary nesting

14 years agoVCD: Optimizations and fixes.
Uwe Hermann [Sun, 9 May 2010 19:05:15 +0000 (21:05 +0200)]
VCD: Optimizations and fixes.

14 years agoVCD/Gnuplot: Fix incorrect sample counter.
Uwe Hermann [Sun, 9 May 2010 18:52:36 +0000 (20:52 +0200)]
VCD/Gnuplot: Fix incorrect sample counter.

14 years agoGnuplot: Nicer output formatting.
Uwe Hermann [Sun, 9 May 2010 18:27:11 +0000 (20:27 +0200)]
Gnuplot: Nicer output formatting.

14 years agofilter.c: Error handling, code simplification.
Uwe Hermann [Sun, 9 May 2010 17:36:43 +0000 (19:36 +0200)]
filter.c: Error handling, code simplification.

14 years agoGnuplot: Improve column/probe name display.
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.

14 years agooutput_text: More error handling.
Uwe Hermann [Sun, 9 May 2010 13:38:33 +0000 (15:38 +0200)]
output_text: More error handling.

14 years agooutput_gnuplot: Simplify event().
Uwe Hermann [Sun, 9 May 2010 13:12:10 +0000 (15:12 +0200)]
output_gnuplot: Simplify event().

14 years agooutput_binary: Code simplifications.
Uwe Hermann [Sun, 9 May 2010 13:11:47 +0000 (15:11 +0200)]
output_binary: Code simplifications.

14 years agoGnuplot quickfix: Increase malloc()'ed size.
Uwe Hermann [Sun, 9 May 2010 13:02:17 +0000 (15:02 +0200)]
Gnuplot quickfix: Increase malloc()'ed size.

14 years agoVCD/Gnuplot: Store time/date in output.
Uwe Hermann [Sun, 9 May 2010 12:54:16 +0000 (14:54 +0200)]
VCD/Gnuplot: Store time/date in output.

14 years agoVCD/Gnuplot: Cosmetics, code simplifications.
Uwe Hermann [Sun, 9 May 2010 12:42:46 +0000 (14:42 +0200)]
VCD/Gnuplot: Cosmetics, code simplifications.

14 years agoGnuplot output: More error handling.
Uwe Hermann [Sun, 9 May 2010 12:35:02 +0000 (14:35 +0200)]
Gnuplot output: More error handling.

14 years agodatastore_new(): Use int as return value.
Uwe Hermann [Sun, 9 May 2010 11:32:58 +0000 (13:32 +0200)]
datastore_new(): Use int as return value.

14 years agoDatastore: More error checking.
Uwe Hermann [Sun, 9 May 2010 11:25:03 +0000 (13:25 +0200)]
Datastore: More error checking.

14 years agoVCD: Improve error handling/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.

14 years agooutput_text: always print sigrok version
Bert Vermeulen [Thu, 6 May 2010 05:06:38 +0000 (22:06 -0700)]
output_text: always print sigrok version

14 years agooutput_binary: rm TODO item
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.

14 years agooutput: if device has no plugin, don't report samplerate
Bert Vermeulen [Thu, 6 May 2010 02:56:48 +0000 (19:56 -0700)]
output: if device has no plugin, don't report samplerate

14 years agoinput: use dummy device when loading from file
Bert Vermeulen [Thu, 6 May 2010 02:55:58 +0000 (19:55 -0700)]
input: use dummy device when loading from file

14 years agoallow devices without a plugin
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.

14 years agoOutput: Fix invalid pointer dereferencing in vcd and gnuplot.
Håvard Espeland [Tue, 4 May 2010 17:44:39 +0000 (19:44 +0200)]
Output: Fix invalid pointer dereferencing in vcd and gnuplot.

14 years agoSigma: Small cleanups.
Håvard Espeland [Mon, 3 May 2010 19:35:02 +0000 (21:35 +0200)]
Sigma: Small cleanups.

14 years agoSigma: Use software trigger to pinpoint exact sample.
Håvard Espeland [Mon, 3 May 2010 19:30:37 +0000 (21:30 +0200)]
Sigma: Use software trigger to pinpoint exact sample.

14 years agoSigma: Add state machine for tracking Sigma status.
Håvard Espeland [Mon, 3 May 2010 17:04:10 +0000 (19:04 +0200)]
Sigma: Add state machine for tracking Sigma status.

14 years agoSigma: Merge storage of rise/fall triggers.
Håvard Espeland [Mon, 3 May 2010 13:06:43 +0000 (15:06 +0200)]
Sigma: Merge storage of rise/fall triggers.

14 years agoSigma: Minor cleanups.
Håvard Espeland [Sun, 2 May 2010 17:21:05 +0000 (19:21 +0200)]
Sigma: Minor cleanups.

14 years agoSigma: Set capture ratio correctly.
Håvard Espeland [Sun, 2 May 2010 17:12:36 +0000 (19:12 +0200)]
Sigma: Set capture ratio correctly.

14 years agoSigma: 50 MHZ falling/rising edge trigger support.
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

14 years agoSigma: Fix simple trigger LUT calculation.
Håvard Espeland [Sun, 2 May 2010 10:59:33 +0000 (12:59 +0200)]
Sigma: Fix simple trigger LUT calculation.

14 years agoSigma: Value/mask trigger support in 50 MHz mode.
Håvard Espeland [Sat, 1 May 2010 20:38:43 +0000 (22:38 +0200)]
Sigma: Value/mask trigger support in 50 MHz mode.

14 years agoSigma: Small cleanups.
Håvard Espeland [Sat, 1 May 2010 12:22:22 +0000 (14:22 +0200)]
Sigma: Small cleanups.

14 years agoSaleae: Rename firmware file to saleae-logic.fw.
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.

14 years agoinout module infrastructure + binary input module
Bert Vermeulen [Fri, 30 Apr 2010 22:54:39 +0000 (15:54 -0700)]
inout module infrastructure + binary input module

14 years agocli: Show trigger event in bits plugin.
Håvard Espeland [Fri, 30 Apr 2010 20:18:55 +0000 (22:18 +0200)]
cli: Show trigger event in bits plugin.

14 years agoSigma: Add triggers support for 100 and 200 MHz.
Håvard Espeland [Fri, 30 Apr 2010 20:18:10 +0000 (22:18 +0200)]
Sigma: Add triggers support for 100 and 200 MHz.

14 years agoSigma: Minor cleanup and add more samplesrates.
Håvard Espeland [Fri, 30 Apr 2010 21:51:57 +0000 (23:51 +0200)]
Sigma: Minor cleanup and add more samplesrates.

14 years agoSigma: Small cosmetic fixes.
Uwe Hermann [Wed, 28 Apr 2010 22:32:44 +0000 (00:32 +0200)]
Sigma: Small cosmetic fixes.

14 years agoSigma: Support for low samplerates
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

14 years agoSigma: Support 50 and 200 MHz modes
Håvard Espeland [Wed, 28 Apr 2010 19:21:19 +0000 (21:21 +0200)]
Sigma: Support 50 and 200 MHz modes

14 years agoSigma: Rename firmware files
Håvard Espeland [Wed, 28 Apr 2010 19:20:27 +0000 (21:20 +0200)]
Sigma: Rename firmware files

14 years agoSigma: Upload 50, 100 or 200 MHz firmware
Håvard Espeland [Wed, 28 Apr 2010 18:01:15 +0000 (20:01 +0200)]
Sigma: Upload 50, 100 or 200 MHz firmware

14 years agoSigma: Move upload firmware into a function
Håvard Espeland [Wed, 28 Apr 2010 17:48:59 +0000 (19:48 +0200)]
Sigma: Move upload firmware into a function

14 years agoASIX SIGMA: Coding style fixes (via indent mostly).
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.

14 years agoasix-sigma.h: Add missing license header.
Uwe Hermann [Tue, 27 Apr 2010 20:46:59 +0000 (22:46 +0200)]
asix-sigma.h: Add missing license header.

14 years agoASIX Sigma: Use common license header format.
Uwe Hermann [Tue, 27 Apr 2010 20:44:15 +0000 (22:44 +0200)]
ASIX Sigma: Use common license header format.

14 years agoThis commit adds initial support for the Asix Sigma Logic Analyzer. Currently, only...
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>
14 years agoWin: Fix compile, serial port code (unfinished).
Uwe Hermann [Thu, 22 Apr 2010 01:39:02 +0000 (03:39 +0200)]
Win: Fix compile, serial port code (unfinished).

14 years agosimplify code for unused features
Bert Vermeulen [Sun, 18 Apr 2010 17:57:13 +0000 (10:57 -0700)]
simplify code for unused features

14 years agofix broken samplerate calculation
Bert Vermeulen [Sun, 18 Apr 2010 06:07:00 +0000 (23:07 -0700)]
fix broken samplerate calculation

14 years agofix double DF_END and libusb timeout
Bert Vermeulen [Sun, 18 Apr 2010 05:09:33 +0000 (22:09 -0700)]
fix double DF_END and libusb timeout

14 years agoOops, bugfixes.
Uwe Hermann [Thu, 15 Apr 2010 21:24:44 +0000 (23:24 +0200)]
Oops, bugfixes.

14 years agoRefactoring and code simplifications.
Uwe Hermann [Thu, 15 Apr 2010 21:21:30 +0000 (23:21 +0200)]
Refactoring and code simplifications.

14 years agoSaleae/Zeroplus: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 20:59:43 +0000 (22:59 +0200)]
Saleae/Zeroplus: Coding style fixes.

14 years agoOLS: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 20:16:35 +0000 (22:16 +0200)]
OLS: Coding style fixes.

14 years agohardware/common: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:55:57 +0000 (20:55 +0200)]
hardware/common: Coding style fixes.

14 years agooutput: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:36:04 +0000 (20:36 +0200)]
output: Coding style fixes.

14 years agolibsigrok: More coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:16:53 +0000 (20:16 +0200)]
libsigrok: More coding style fixes.

14 years agolibsigrok: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:07:16 +0000 (20:07 +0200)]
libsigrok: Coding style fixes.