Commit Graph

1576 Commits

Author SHA1 Message Date
Bert Vermeulen 0acdd79357 testo: Initial driver skeleton. 2014-07-05 21:56:46 +02:00
Matthias Heidbrink 5437a0adae manson-hcs-3xxx: Use maximum voltage and current read from device. 2014-06-30 17:00:59 +02:00
Matthias Heidbrink a9cf203593 serial: docs. 2014-06-30 17:00:59 +02:00
Matthias Heidbrink 811d6255bb manson-hcs-3xxx: Implemented setting voltage, current and output. 2014-06-30 17:00:59 +02:00
Matthias Heidbrink 9740d9bf8c manson-hcs-3xxx: Cleanup, improved error handling, docs. 2014-06-30 17:00:59 +02:00
Matthias Heidbrink 25abc8dd13 manson-hcs-3xxx: Added missing models of series, fixed current resolution. 2014-06-30 17:00:59 +02:00
Uwe Hermann b5e9264790 manson-hcs-3xxx: Initial driver implementation.
Currently supports only few HCS-3xxx models (tested on HCS-3202), and
not all commands/operations yet.
2014-06-23 00:59:18 +02:00
Uwe Hermann 8f4e922f43 manson-hcs-3xxx: Initial driver skeleton. 2014-06-23 00:59:17 +02:00
Matthias Heidbrink 2baac44db7 serial-dmm: Implement request timeout mechanism.
(fixes request flooding for Voltcraft ME-42 and M-3650CR)

This fixes bug #345.
2014-06-16 23:56:23 +02:00
Mike Frysinger e15e5873b3 asix-sigma: fix build time warnings
We need to include unistd.h for usleep():
hardware/asix-sigma/asix-sigma.c: In function 'sigma_fpga_init_bitbang':
hardware/asix-sigma/asix-sigma.c:450:3: warning: implicit declaration of function 'usleep'
   usleep(10000);

And we need to tweak the type of chunks_per_read to match dl_lines_total:
hardware/asix-sigma/asix-sigma.c: In function 'download_capture':
hardware/asix-sigma/asix-sigma.c:1161:39: warning: comparison between signed and unsigned integer expressions
   dl_lines_curr = MIN(chunks_per_read, dl_lines_total);
2014-06-15 10:45:39 +02:00
Matthias Heidbrink a4e435eb49 norma-dmm: Added request timeout mechanism; docs. 2014-06-13 21:22:11 +02:00
Matthias Heidbrink 49c06128d7 norma-dmm: Added separate driver siemens-b102x for Siemens B1024-B1028 DMMs (just for cosmetic reasons). 2014-06-07 19:45:41 +02:00
Aurelien Jacobs 13dd25bdb8 chronovu-la: re-add return that was inadvertently removed in commit aeff7fa2 2014-06-03 18:59:01 +02:00
Bert Vermeulen 649e9e1677 fx2lafw: Fix sample count. 2014-05-29 22:58:58 +02:00
Bert Vermeulen a989cdbe03 saleae-logic16: Fix acquisition with fewer than nine channels enabled. 2014-05-29 22:55:52 +02:00
Bert Vermeulen 863357fb10 saleae-logic16: Use new library software trigger. 2014-05-29 22:16:58 +02:00
Bert Vermeulen 335122f07d fx2lafw: Use new library software trigger. 2014-05-28 15:54:46 +02:00
Bert Vermeulen 28731bab29 zeroplus-logic-cube: Use new trigger API. 2014-05-28 00:22:06 +02:00
Bert Vermeulen bbe7e48a88 sysclk-lwla: Use new trigger API. 2014-05-28 00:21:56 +02:00
Bert Vermeulen 91fd0f7246 ols: Use new trigger API. 2014-05-28 00:21:45 +02:00
Bert Vermeulen 02d5c0d8ea ikalogic-scanalogic2: Use new trigger API. 2014-05-28 00:21:23 +02:00
Bert Vermeulen 9615eeb572 fx2lafw: Use new trigger API. 2014-05-28 00:21:10 +02:00
Bert Vermeulen aeff7fa286 chronovu-la: Use new trigger API. 2014-05-28 00:20:51 +02:00
Bert Vermeulen 39c64c6a4f asix-sigma: Use new trigger API. 2014-05-28 00:19:58 +02:00
Bert Vermeulen f66d45806f fx2lafw: Rename trigger constant. 2014-05-22 23:22:37 +02:00
Matthias Heidbrink 419bfb5009 motech-lps-30x: Cleanup. 2014-05-19 21:38:23 +02:00
Matthias Heidbrink 1f7da0c2bb motech-lps-30x: Cleanup. 2014-05-19 20:47:15 +02:00
Matthias Heidbrink 1c3d002b68 motech-lps-30x: Implemented driver. 2014-05-19 19:48:28 +02:00
Matthias Heidbrink d0a92abd54 Whitespace and comment improvements, no semantical changes. 2014-05-19 19:44:04 +02:00
Matthias Heidbrink 41b7bd01c1 motech-lps-30x: Initial driver framework. 2014-05-19 19:23:30 +02:00
Martin Ling 05238d2830 rigol-ds: Quick hack to fix bug #354. 2014-05-05 00:38:58 +01:00
Bert Vermeulen 6b2d33856f asix-sigma: Don't set invalid configuration options. 2014-05-04 11:49:48 -07:00
Uwe Hermann 2fa222c78b 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.
2014-05-04 17:38:09 +02:00
Uwe Hermann 144f6660d0 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
2014-05-04 16:16:17 +02:00
Bert Vermeulen 999f6730c6 asix-sigma: Disable sample-limited capture for now.
This is not really supported yet in the driver.
2014-05-04 00:36:46 -07:00
Bert Vermeulen fb2e6de774 asix-sigma: Publish capture ratio correctly. 2014-05-04 00:36:46 -07:00
Uwe Hermann b9a53103cf saleae-logic16: Minor whitespace fixes, cosmetics. 2014-05-03 21:27:08 +02:00
Marcus Comstedt 1b822521f7 saleae-logic16: Use unitsize 1 if none of channels 8-15 are used. 2014-05-03 21:27:08 +02:00
Marcus Comstedt 2db959063b saleae-logic16: Don't send more samples than requested.
This fixes bug #350.
2014-05-03 21:25:57 +02:00
Martin Ling e826239c85 fx2lafw: Allow matching USB descriptor strings as well as VID/PID. 2014-04-30 16:23:38 -07:00
Martin Ling 1c48000dc7 fx2lafw: tidy up config_set(). 2014-04-30 14:12:17 -07:00
Martin Ling a920a7d899 fx2lafw: implement config_get for SR_CONF_LIMIT_SAMPLES and tidy up. 2014-04-30 14:01:52 -07:00
Martin Ling a54edb1dfb fx2lafw: pass sdi to command functions. 2014-04-30 13:57:22 -07:00
Marek Vasut 23b886bc40 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00
Marek Vasut 1e23158b93 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00
Marek Vasut 23239b5c84 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00
Marek Vasut a16a6391b5 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00
Marek Vasut 5fc01191eb 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00
Marek Vasut 46641facd4 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00
Marek Vasut 3628074d09 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 <marex@denx.de>
2014-04-30 09:45:52 -07:00