]> sigrok.org Git - libsigrok.git/log
libsigrok.git
10 years agodoxygen: Updated Doxyfile to doxygen 1.8.6.
Uwe Hermann [Sun, 4 May 2014 15:55:46 +0000 (17:55 +0200)]
doxygen: Updated Doxyfile to doxygen 1.8.6.

10 years agoUnhook the Link Instruments MSO-19 from the build for now.
Uwe Hermann [Sun, 4 May 2014 15:44:05 +0000 (17:44 +0200)]
Unhook the Link Instruments MSO-19 from the build for now.

This driver is neither working nor has it been in a compiling state for
a long time, so unhook it from the build until it is fixed and works.

The files (api.c and protocol.[ch]) are still in git, but won't end up in
released tarballs and they don't get built (neither git nor tarballs).

This also allows us to drop the otherwise unneeded dependency on libudev.
When the MSO-19 driver comes back, it should be in a form that doesn't
require the inherently Linux-only libudev anyway. See also:
http://sigrok.org/bugzilla/show_bug.cgi?id=65

10 years agoDrop obsolete Linux-only usbtmc backend.
Uwe Hermann [Sun, 4 May 2014 15:38:09 +0000 (17:38 +0200)]
Drop obsolete Linux-only usbtmc backend.

We're now using a portable libusb-based (userspace) backend which should
in theory work on any OS with libusb support.

10 years agoREADME.devices: Various updates and fixes.
Uwe Hermann [Sun, 4 May 2014 15:35:47 +0000 (17:35 +0200)]
README.devices: Various updates and fixes.

10 years agoDrop left-overs of the removed alsa driver.
Uwe Hermann [Sun, 4 May 2014 14:57:58 +0000 (16:57 +0200)]
Drop left-overs of the removed alsa driver.

10 years agoDon't define names ending with _t (POSIX reserved).
Uwe Hermann [Sat, 3 May 2014 20:14:01 +0000 (22:14 +0200)]
Don't define names ending with _t (POSIX reserved).

Avoid defining any names ending in _t, those are generally reserved
for POSIX usage. For details see:

http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html
http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html

10 years agoasix-sigma: Disable sample-limited capture for now.
Bert Vermeulen [Sun, 4 May 2014 07:35:24 +0000 (00:35 -0700)]
asix-sigma: Disable sample-limited capture for now.

This is not really supported yet in the driver.

10 years agoasix-sigma: Publish capture ratio correctly.
Bert Vermeulen [Sun, 4 May 2014 07:34:24 +0000 (00:34 -0700)]
asix-sigma: Publish capture ratio correctly.

10 years agosaleae-logic16: Minor whitespace fixes, cosmetics.
Uwe Hermann [Sat, 3 May 2014 19:22:38 +0000 (21:22 +0200)]
saleae-logic16: Minor whitespace fixes, cosmetics.

10 years agosaleae-logic16: Use unitsize 1 if none of channels 8-15 are used.
Marcus Comstedt [Fri, 25 Apr 2014 19:27:49 +0000 (21:27 +0200)]
saleae-logic16: Use unitsize 1 if none of channels 8-15 are used.

10 years agosaleae-logic16: Don't send more samples than requested.
Marcus Comstedt [Fri, 25 Apr 2014 19:07:16 +0000 (21:07 +0200)]
saleae-logic16: Don't send more samples than requested.

This fixes bug #350.

10 years agoAdd SR_CONF_DEVICE_MODE and SR_CONF_TEST_MODE config keys.
Martin Ling [Tue, 15 Apr 2014 20:26:26 +0000 (21:26 +0100)]
Add SR_CONF_DEVICE_MODE and SR_CONF_TEST_MODE config keys.

10 years agofx2lafw: Allow matching USB descriptor strings as well as VID/PID.
Martin Ling [Tue, 15 Apr 2014 20:16:20 +0000 (21:16 +0100)]
fx2lafw: Allow matching USB descriptor strings as well as VID/PID.

10 years agofx2lafw: tidy up config_set().
Martin Ling [Tue, 15 Apr 2014 10:23:51 +0000 (11:23 +0100)]
fx2lafw: tidy up config_set().

10 years agofx2lafw: implement config_get for SR_CONF_LIMIT_SAMPLES and tidy up.
Martin Ling [Tue, 15 Apr 2014 10:03:59 +0000 (11:03 +0100)]
fx2lafw: implement config_get for SR_CONF_LIMIT_SAMPLES and tidy up.

10 years agofx2lafw: pass sdi to command functions.
Martin Ling [Mon, 14 Apr 2014 20:32:01 +0000 (21:32 +0100)]
fx2lafw: pass sdi to command functions.

10 years agoasix-sigma: Init cur_sample_rate
Marek Vasut [Fri, 25 Apr 2014 16:03:47 +0000 (18:03 +0200)]
asix-sigma: Init cur_sample_rate

Init the cur_sample_rate to 200kHz. This is now the default sample
rate for the ASIX Sigma if no other is specified by -c samplerate=N
on the command line. Without this change, the driver would crash on
SIGFPE because a division by zero would happen.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Fix the trigger handling
Marek Vasut [Sun, 20 Apr 2014 23:44:36 +0000 (01:44 +0200)]
asix-sigma: Fix the trigger handling

Due to the recent changes in the sigma driver, the trigger handling got
broken. Fix this by properly calculating and propagating the fact that
the trigger happened.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Pull out cluster decoding
Marek Vasut [Sun, 20 Apr 2014 23:29:52 +0000 (01:29 +0200)]
asix-sigma: Pull out cluster decoding

Pull out the code for decoding the DRAM clusters into separate function.
This shall improve readability some more.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Exterminate passing lastts and lastsample
Marek Vasut [Sun, 20 Apr 2014 23:14:54 +0000 (01:14 +0200)]
asix-sigma: Exterminate passing lastts and lastsample

These two values can pulled out from devc->state, so there really is
no need to pass them as function argument when we already pass the
devc.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Rework decode_chunk_ts()
Marek Vasut [Sun, 20 Apr 2014 01:10:05 +0000 (03:10 +0200)]
asix-sigma: Rework decode_chunk_ts()

This function could have never returned correct data. Rework the decoding
logic according to the Sigma documentation. This patch also fixes the
handling of partial DRAM lines and partial DRAM clusters.

While at it, do not allocate megabytes of data on stack, just allocate 2KiB
which is plenty for all the work this function needs to do.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Suspend support for trailing DRAM lines
Marek Vasut [Sun, 20 Apr 2014 20:58:34 +0000 (22:58 +0200)]
asix-sigma: Suspend support for trailing DRAM lines

The support for trailing DRAM lines was broken. This patch starts
rework of support for this, but in order to do that, we need to
rework decode_chunk_ts() a little first.

This patch adjusts the decode_chunk_ts() a little to receive the
total amount of events in DRAM line instead of some nonsense value.
This patch temporarily removes the support for the trailing DRAM
lines until the decode_chunk_ts() is fixed to cope with this, so
yes, this patch introduces breakage!

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Properly fetch timestamp in decode_chunk_ts()
Marek Vasut [Sun, 20 Apr 2014 20:45:25 +0000 (22:45 +0200)]
asix-sigma: Properly fetch timestamp in decode_chunk_ts()

Instead of this ad-hoc readout voodoo, use proper function to read
the timestemp. One which will not break even on big-endian machines.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Use proper structure for DRAM lines
Marek Vasut [Sun, 20 Apr 2014 20:40:38 +0000 (22:40 +0200)]
asix-sigma: Use proper structure for DRAM lines

Use proper structure instead of plain buffer of uint8_t for the contents
of DRAM in download_capture(). This is beneficial as we can interpret the
contents easily.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Introduce function to read DRAM cluster timestamp
Marek Vasut [Sun, 20 Apr 2014 20:36:55 +0000 (22:36 +0200)]
asix-sigma: Introduce function to read DRAM cluster timestamp

Introduce helper function which returns the timestamp of DRAM cluster
and use it in download_capture().

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Unify calling of decode_chunk_ts()
Marek Vasut [Sun, 20 Apr 2014 20:28:33 +0000 (22:28 +0200)]
asix-sigma: Unify calling of decode_chunk_ts()

Clean up the way decode_chunk_ts() is called a little. Introduce a variable
which will not be -1 only in case a trigger happened on the particular DRAM
line.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Rework download_capture() to support more than 32 lines
Marek Vasut [Sun, 20 Apr 2014 20:19:11 +0000 (22:19 +0200)]
asix-sigma: Rework download_capture() to support more than 32 lines

In the current configuration, the download capture used 32KiB buffer
for samples. This was the upper limit this function could download
from the Sigma. Even the sigma_read_dram() was only called once to
read up-to 32 DRAM line from address 0x0 in the DRAM.

This patch reworks the function to call sigma_read_dram() in a loop
in case there is need to download more than 32 DRAM lines of data
from Sigma. The data are then correctly passed for decoding to the
decoding function.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Remove stack-based alloc in download_capture()
Marek Vasut [Sun, 20 Apr 2014 19:34:36 +0000 (21:34 +0200)]
asix-sigma: Remove stack-based alloc in download_capture()

Avoid allocating 32KiB of data on stack in download_capture(). Instead,
do a glib-variant of calloc(1, ) to allocate the data for the samples
which will be downloaded. This avoids explosions of stack on systems
with tight stack limits.

Furthermore, define structures describing the organisation of Sigma's
DRAM memory and start using those instead of ad-hoc preprocessor macros
defining the sizes of various structures in memory.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Localize variables
Marek Vasut [Sun, 20 Apr 2014 18:50:10 +0000 (20:50 +0200)]
asix-sigma: Localize variables

The trigger position, stop position and chunk in which the trigger happened
are no longer needed in the global scope. Make those variables local to the
download_capture() function.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Move all register I/O into download_capture()
Marek Vasut [Sun, 20 Apr 2014 18:45:40 +0000 (20:45 +0200)]
asix-sigma: Move all register I/O into download_capture()

Move all the register I/O that is necessary to do the download of samples
from Sigma into download_capture() function. This makes the downloading
code contained a bit more again.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Clearly separate the sample download
Marek Vasut [Sun, 20 Apr 2014 18:40:00 +0000 (20:40 +0200)]
asix-sigma: Clearly separate the sample download

Reorder the sigma_capture_mode() function so that the part which handles
the download of samples from Sigma is clearly separated from the tests if
the download should be started.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Pull out the CAPTURE mode handler
Marek Vasut [Sun, 20 Apr 2014 18:30:16 +0000 (20:30 +0200)]
asix-sigma: Pull out the CAPTURE mode handler

Pull out the code handling the Sigma which is in CAPTURE mode into
a separate function. This is so we can start reworking this entire
code easily soon.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Read position only in CAPTURE state
Marek Vasut [Sun, 20 Apr 2014 17:57:02 +0000 (19:57 +0200)]
asix-sigma: Read position only in CAPTURE state

Check the position of ForceStop and Trigger events only in case we
are in CAPTURE state, it's useless to do this unconditionally when
receive_data() is called.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Decrypt the LA mode switch sequence
Marek Vasut [Sun, 20 Apr 2014 17:49:44 +0000 (19:49 +0200)]
asix-sigma: Decrypt the LA mode switch sequence

Decode the logic mode start sequence into a series of FPGA instructions
instead and get rid of this sequence of magic numbers.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Encode the opcodes as hex values
Marek Vasut [Sun, 20 Apr 2014 17:41:23 +0000 (19:41 +0200)]
asix-sigma: Encode the opcodes as hex values

Just encode the opcodes as hexadecimal values. This makes for better
readability when mapping the communication dump with the sigma to the
code.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Pull out the logic-mode switching
Marek Vasut [Sun, 20 Apr 2014 17:36:40 +0000 (19:36 +0200)]
asix-sigma: Pull out the logic-mode switching

Pull out the code which switches Sigma from the FPGA programming mode
into Logic-Analyzer mode into separate function. Also, given the reply
is only ever 3-byte long, do not allocate 32 byte big buffer, but only
a 3-byte long one.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Squash yoda-condition in upload_firmware()
Marek Vasut [Sun, 20 Apr 2014 17:29:52 +0000 (19:29 +0200)]
asix-sigma: Squash yoda-condition in upload_firmware()

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Move the sigma_fw_2_bitbang()
Marek Vasut [Sun, 20 Apr 2014 17:27:43 +0000 (19:27 +0200)]
asix-sigma: Move the sigma_fw_2_bitbang()

Move the sigma_fw_2_bitbang() function closer to the upload_firmware()
function so there's not such a horrible mess in the file.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Cleanup the bit2bitbang
Marek Vasut [Sun, 20 Apr 2014 17:19:33 +0000 (19:19 +0200)]
asix-sigma: Cleanup the bit2bitbang

Rework the bit2bitbang function. Remarkable changes are:
- The function was renamed to sigma_fw_2_bitbang()
- We use glib function calls to work with the file
- We mmap the file containing firmware instead of opening the file
  and then reading it into a buffer.
- The magic firmware transformation is now type-safe.
- Documentation and comments were added where applicable.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Weed out in-condition assignments
Marek Vasut [Sun, 20 Apr 2014 15:58:35 +0000 (17:58 +0200)]
asix-sigma: Weed out in-condition assignments

Remove all those if ((ret = foo(bar)) < 0) constructs from upload_firmware()
function. This is just a confusing programming practice, kill it. While at it,
replace all the uses of &devc->ftdic with plain ftdic , which is defined at
the begining.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Fix firmware path construction
Marek Vasut [Sun, 20 Apr 2014 15:49:29 +0000 (17:49 +0200)]
asix-sigma: Fix firmware path construction

The code silently assumed the firmware path can be no longer than 128 bytes.
This doesn't scale. This patch fixes it in such a way that it completely
rips out the run-time computation of firmware path and instead replaces it
with compile-time computation. It's true this makes the library grow by a
couple bytes, but makes the code cleaner.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Cleanup FPGA initialization
Marek Vasut [Sun, 20 Apr 2014 15:18:31 +0000 (17:18 +0200)]
asix-sigma: Cleanup FPGA initialization

Rework the pre-firmware-upload FPGA initialization sequence so it matches
the documentation. Also, since this sequence is documented in a separate
section, wrap it into separate function.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Remove NUM_CHANNELS macro
Marek Vasut [Sun, 20 Apr 2014 15:02:05 +0000 (17:02 +0200)]
asix-sigma: Remove NUM_CHANNELS macro

The NUM_CHANNELS macro is inflexible, since in 100MHz and 200MHz modes
we don't support 16 channels. Moreover, it's only used to limit the size
of array of channel labels, which can be done in much cleaner way.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Document sampling rate table
Marek Vasut [Sun, 20 Apr 2014 14:53:13 +0000 (16:53 +0200)]
asix-sigma: Document sampling rate table

Add comments to the sampling rate table explaining how the frequencies
are selected and where do those numbers come from.

Signed-off-by: Marek Vasut <redacted>
10 years agoasix-sigma: Acquisition fixes.
Bert Vermeulen [Wed, 2 Apr 2014 13:22:49 +0000 (15:22 +0200)]
asix-sigma: Acquisition fixes.

10 years agooutput/vcd: Support getting samplerate from meta packets.
Bert Vermeulen [Wed, 30 Apr 2014 14:40:56 +0000 (07:40 -0700)]
output/vcd: Support getting samplerate from meta packets.

10 years agooutput/gnuplot: Support getting samplerate from meta packets.
Bert Vermeulen [Tue, 29 Apr 2014 21:00:47 +0000 (14:00 -0700)]
output/gnuplot: Support getting samplerate from meta packets.

10 years agooutput/csv: Support getting samplerate from meta packets.
Bert Vermeulen [Tue, 29 Apr 2014 02:09:32 +0000 (19:09 -0700)]
output/csv: Support getting samplerate from meta packets.

10 years agooutput/ascii: Support getting samplerate from meta packets.
Bert Vermeulen [Mon, 28 Apr 2014 22:11:17 +0000 (15:11 -0700)]
output/ascii: Support getting samplerate from meta packets.

10 years agooutput/hex: Support getting samplerate from meta packets.
Bert Vermeulen [Mon, 28 Apr 2014 22:06:36 +0000 (15:06 -0700)]
output/hex: Support getting samplerate from meta packets.

10 years agooutput/bits: Support getting samplerate from meta packets.
Bert Vermeulen [Mon, 28 Apr 2014 21:54:47 +0000 (14:54 -0700)]
output/bits: Support getting samplerate from meta packets.

10 years agosession: Show unitsize of the received data.
Uwe Hermann [Fri, 25 Apr 2014 17:34:41 +0000 (19:34 +0200)]
session: Show unitsize of the received data.

10 years agoDon't include NO_LOG_WRAPPERS in the Doxygen output.
Uwe Hermann [Fri, 25 Apr 2014 16:44:21 +0000 (18:44 +0200)]
Don't include NO_LOG_WRAPPERS in the Doxygen output.

10 years agoDon't include LOG_PREFIX in the Doxygen output.
Uwe Hermann [Fri, 25 Apr 2014 16:40:59 +0000 (18:40 +0200)]
Don't include LOG_PREFIX in the Doxygen output.

(files in hardware/, input/, and output/ don't need this since none of
those directories contain API stuff and are thus not included in the
list of input files for Doxygen at all).

10 years agoconfigure.ac: Separate library flags from other CFLAGS.
Martin Ling [Fri, 18 Apr 2014 18:11:47 +0000 (19:11 +0100)]
configure.ac: Separate library flags from other CFLAGS.

10 years agoGive type names to all enumerations.
Martin Ling [Fri, 18 Apr 2014 18:13:13 +0000 (19:13 +0100)]
Give type names to all enumerations.

10 years agoRemove orphaned prototype for sr_filter_channels from proto.h.
Martin Ling [Mon, 21 Apr 2014 01:17:03 +0000 (02:17 +0100)]
Remove orphaned prototype for sr_filter_channels from proto.h.

10 years agofx2lafw: Don't send more samples than requested.
Bert Vermeulen [Thu, 24 Apr 2014 19:04:23 +0000 (21:04 +0200)]
fx2lafw: Don't send more samples than requested.

It's the new law.

10 years agoWIP
Bert Vermeulen [Tue, 22 Apr 2014 16:08:40 +0000 (18:08 +0200)]
WIP

10 years agooutput/ascii/bits/hex: Remove stray g_free().
Bert Vermeulen [Mon, 21 Apr 2014 21:35:26 +0000 (23:35 +0200)]
output/ascii/bits/hex: Remove stray g_free().

10 years agools: Allow disabling all channels.
Bert Vermeulen [Mon, 21 Apr 2014 12:46:49 +0000 (14:46 +0200)]
ols: Allow disabling all channels.

This fixed bug 316.

10 years agooutput: Introduce output module API wrappers.
Bert Vermeulen [Sun, 20 Apr 2014 20:51:09 +0000 (22:51 +0200)]
output: Introduce output module API wrappers.

10 years agoRemoved ALSA driver.
Bert Vermeulen [Sat, 19 Apr 2014 11:37:53 +0000 (13:37 +0200)]
Removed ALSA driver.

This driver has been unmaintained for years, and was never good code
to begin with. It's also questionable whether it was ever useful,
particularly with the demo driver now supporting various analog
signalling.

10 years agoRemoved obsolete sr_filter_channels().
Bert Vermeulen [Sat, 19 Apr 2014 11:34:46 +0000 (13:34 +0200)]
Removed obsolete sr_filter_channels().

10 years agoRemove obsolete output API.
Bert Vermeulen [Sat, 19 Apr 2014 11:28:17 +0000 (13:28 +0200)]
Remove obsolete output API.

10 years agooutput/ascii: Rewrite for new output API.
Bert Vermeulen [Sat, 19 Apr 2014 10:34:30 +0000 (12:34 +0200)]
output/ascii: Rewrite for new output API.

10 years agooutput/hex: Rewrite for new output API.
Bert Vermeulen [Sat, 19 Apr 2014 10:31:50 +0000 (12:31 +0200)]
output/hex: Rewrite for new output API.

10 years agooutput/bits: Rewrite for new output API.
Bert Vermeulen [Sat, 19 Apr 2014 10:25:02 +0000 (12:25 +0200)]
output/bits: Rewrite for new output API.

This also fixes the performance problems in the old module.

10 years agooutput/binary: Use new output API.
Bert Vermeulen [Thu, 17 Apr 2014 12:40:47 +0000 (14:40 +0200)]
output/binary: Use new output API.

10 years agooutput/chronovu_la8: Use new output API.
Bert Vermeulen [Thu, 17 Apr 2014 12:10:49 +0000 (14:10 +0200)]
output/chronovu_la8: Use new output API.

This somewhat naively copies whatever it gets into the output, regardless
of how many channels are in there, or which ones are enabled. Not sure
what the best way to deal with that is, but for now you have to feed it
a channel setup the Chronovu software can read.

10 years agooutput/csv: Use the logic stream's unitsize.
Bert Vermeulen [Wed, 16 Apr 2014 18:02:39 +0000 (20:02 +0200)]
output/csv: Use the logic stream's unitsize.

This also fixes the channel index, instead of counting on the logic
data being arranged according to enabled channels only.

10 years agooutput/vcd: Use the logic stream's unitsize.
Bert Vermeulen [Wed, 16 Apr 2014 13:29:53 +0000 (15:29 +0200)]
output/vcd: Use the logic stream's unitsize.

Also code cleanup and some memory leaks fixed.

10 years agooutput/gnuplot: Use new output API.
Bert Vermeulen [Wed, 16 Apr 2014 13:26:10 +0000 (15:26 +0200)]
output/gnuplot: Use new output API.

10 years ago.gitignore: Add test-suite.log.
Uwe Hermann [Sun, 13 Apr 2014 16:59:08 +0000 (18:59 +0200)]
.gitignore: Add test-suite.log.

10 years agosr_dev_inst_new(): Use NULL (not "") if version unknown/nonexisting.
Uwe Hermann [Wed, 2 Apr 2014 16:29:36 +0000 (18:29 +0200)]
sr_dev_inst_new(): Use NULL (not "") if version unknown/nonexisting.

Unify the whole code-base to use NULL there, not a mix of "" and NULL.

10 years agochronovu-la: Show errors other than "device not found".
Uwe Hermann [Wed, 2 Apr 2014 16:23:23 +0000 (18:23 +0200)]
chronovu-la: Show errors other than "device not found".

This can be useful for the user to see, e.g. for permission related
issues (device is there, but cannot be accessed).

10 years agoconfigure.ac: Clearly mark required and optional libs.
Uwe Hermann [Sat, 5 Apr 2014 11:35:49 +0000 (13:35 +0200)]
configure.ac: Clearly mark required and optional libs.

10 years agorigol-ds: fix long memory depth setting on DS1000
Aurelien Jacobs [Sun, 6 Apr 2014 20:47:44 +0000 (22:47 +0200)]
rigol-ds: fix long memory depth setting on DS1000

10 years agoscpi_usbtmc_libusb: disable all clear_halt for Rigol DS1000
Aurelien Jacobs [Sun, 6 Apr 2014 20:47:44 +0000 (22:47 +0200)]
scpi_usbtmc_libusb: disable all clear_halt for Rigol DS1000

10 years agoscpi_usbtmc_libusb: disable bulk_out clear_halt for Rigol DS1000
Aurelien Jacobs [Sat, 5 Apr 2014 23:31:12 +0000 (01:31 +0200)]
scpi_usbtmc_libusb: disable bulk_out clear_halt for Rigol DS1000

fix hangup issue with Rigol firmware version 00.02.02.02.00

10 years agofx2lafw: fix possible use of uninitialized variable (gcc-4.9 warning fix)
Aurelien Jacobs [Sat, 5 Apr 2014 15:42:33 +0000 (17:42 +0200)]
fx2lafw: fix possible use of uninitialized variable (gcc-4.9 warning fix)

hardware/fx2lafw/protocol.c: In function 'fx2lafw_command_start_acquisition':
hardware/fx2lafw/protocol.c:113:7: warning: 'cmd.flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
   (cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30");
       ^

10 years agoVarious drivers: Expose SR_CONF_TRIGGER_TYPE.
Uwe Hermann [Wed, 2 Apr 2014 07:37:29 +0000 (09:37 +0200)]
Various drivers: Expose SR_CONF_TRIGGER_TYPE.

Without this, sigrok-cli --show (for example) will not show the
supported trigger types.

10 years agochronovu-la: LA16 has fewer max. samples than LA8.
Uwe Hermann [Wed, 2 Apr 2014 07:29:23 +0000 (09:29 +0200)]
chronovu-la: LA16 has fewer max. samples than LA8.

Each LA16 sample is 16bits wide (LA8 samples are 8 bits wide). Adapt the
number returned for SR_CONF_LIMIT_SAMPLES in config_list() accordingly.

10 years agochronovu-la: Fix byte order for LA16 samples sent to the bus.
Uwe Hermann [Tue, 1 Apr 2014 21:23:23 +0000 (23:23 +0200)]
chronovu-la: Fix byte order for LA16 samples sent to the bus.

10 years agochronovu-la: Document that streaming is not possible.
Uwe Hermann [Tue, 1 Apr 2014 20:41:02 +0000 (22:41 +0200)]
chronovu-la: Document that streaming is not possible.

This closes bug #261.

10 years agoRename 'chronovu-la8' driver to 'chronovu-la'.
Uwe Hermann [Tue, 1 Apr 2014 19:47:11 +0000 (21:47 +0200)]
Rename 'chronovu-la8' driver to 'chronovu-la'.

The driver now also supports the LA16 device (and possibly others in the
future).

10 years agola8: Add support for the ChronoVu LA16.
Uwe Hermann [Sun, 30 Mar 2014 23:26:07 +0000 (01:26 +0200)]
la8: Add support for the ChronoVu LA16.

The ChronoVu LA16 is a new logic analyzer from ChronoVu with some
differences in features compared to the LA8, e.g.

 - Supports 16 channels (instead of 8).
 - Max. 200MHz samplerate (instead of 100MHz).
 - Supports state triggering (low and high channel value) and edge triggering
   (rising or falling edge), the LA8 only supports state triggering.

This driver now supports both the LA8 and LA16, but it needed a few
changes:

 - Add support for detecting multiple device instances at all.
 - Add support for both LA8 and/or LA16 devices being detected.
 - Add a device profile struct for LA8-/LA16-specific device properties.
 - Move the samplerates list to devc (it's different for LA8 and LA16).
 - Split scan() into two functions, one for scanning, one for adding a device.
 - Expand some variables and fields from uint8_t to uint16_t in order to
   support 16 channels.
 - Update the samplerate related functions to support the LA16's 200MHz.
 - Various other minor updates in order to better handle both device types.
 - Various error handling improvements and simplifications.
 - Also, replace time() with g_get_monotonic_time() everywhere.

This also fixes bug #247 (which was related to incorrect handling of
resources during scan and open of the device, which was exposed by
PulseView allowing multiple consecutive scan/close/open calls).

10 years agola8: Cleanups, cosmetics, simplifications.
Uwe Hermann [Sun, 30 Mar 2014 20:40:27 +0000 (22:40 +0200)]
la8: Cleanups, cosmetics, simplifications.

Also, make some LA8 references more generic in preparation of
LA16 support.

10 years agodemo: Fix typos.
Uwe Hermann [Tue, 25 Mar 2014 20:38:47 +0000 (21:38 +0100)]
demo: Fix typos.

10 years agoVarious drivers: Drop some unneeded lines.
Uwe Hermann [Tue, 25 Mar 2014 20:35:31 +0000 (21:35 +0100)]
Various drivers: Drop some unneeded lines.

10 years agorigol-ds: Don't close SCPI handle we didn't open.
Bert Vermeulen [Thu, 27 Mar 2014 14:13:24 +0000 (15:13 +0100)]
rigol-ds: Don't close SCPI handle we didn't open.

10 years agorigol-ds: Add the TRIGGER_SLOPE entry to config_get() and config_list()
Aurelien Jacobs [Tue, 25 Mar 2014 22:09:57 +0000 (23:09 +0100)]
rigol-ds: Add the TRIGGER_SLOPE entry to config_get() and config_list()

10 years agohameg-hmo: Change some PG_/pg_ names to CG_/cg_.
Uwe Hermann [Tue, 25 Mar 2014 08:26:05 +0000 (09:26 +0100)]
hameg-hmo: Change some PG_/pg_ names to CG_/cg_.

This fixes parts of bug #259.

10 years agoA few more random 'probe' to 'channel' changes.
Uwe Hermann [Mon, 24 Mar 2014 15:11:45 +0000 (16:11 +0100)]
A few more random 'probe' to 'channel' changes.

This fixes parts of bug #259.

10 years agoRename a few more API calls with 'probe' in their name.
Uwe Hermann [Mon, 24 Mar 2014 15:05:42 +0000 (16:05 +0100)]
Rename a few more API calls with 'probe' in their name.

This fixes parts of bug #259.

10 years agoRename various *PROBE* macros to *CHANNEL*.
Uwe Hermann [Mon, 24 Mar 2014 21:39:42 +0000 (22:39 +0100)]
Rename various *PROBE* macros to *CHANNEL*.

This fixes parts of bug #259.

10 years agoRename sr_probe_new() to sr_channel_new().
Uwe Hermann [Mon, 24 Mar 2014 20:36:04 +0000 (21:36 +0100)]
Rename sr_probe_new() to sr_channel_new().

This fixes parts of bug #259.

10 years agoReplace 'probe' with 'channel' in most places.
Uwe Hermann [Mon, 24 Mar 2014 20:34:20 +0000 (21:34 +0100)]
Replace 'probe' with 'channel' in most places.

Also, consistently use 'ch' for channel variables. This matches how we
consistently use sdi, devc, and so on all over the code-base.

This fixes parts of bug #259.

10 years agoRename 'struct sr_probe' to 'struct sr_channel' everywhere.
Uwe Hermann [Thu, 20 Mar 2014 20:58:57 +0000 (21:58 +0100)]
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.

This fixes parts of bug #259.

10 years agoConsistently use 'cg' for channel group variables.
Uwe Hermann [Thu, 20 Mar 2014 20:58:01 +0000 (21:58 +0100)]
Consistently use 'cg' for channel group variables.

This matches how we consistently use sdi, devc, and so on all over
the code-base.

This fixes parts of bug #259.