Bert Vermeulen
5bf0dd6aff
Add RB16S and RB32S (signed) macros.
...
Also note signedness of all the endian macros.
2014-08-26 22:45:38 +02:00
Bert Vermeulen
06ad20bebf
input: Avoid warnings on all-zero static struct entries.
2014-08-26 12:38:41 +02:00
Bert Vermeulen
b84cba4dbf
input: Convert binary module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
75cb428f9f
input: format_match() is not required in an input module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
02e24c0ce0
input: Convert chronovu-la8 module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
5e83cd741f
input/vcd: Minor code cleanup.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
33e4303baa
input: Only feed scanned header to streams, not scanned files.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
115fbe9410
input: Only use header buffer for modules that need it.
...
The buffer was leaking into modules that didn't ask for it.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
0a4d68f74b
input/wav: Send END packet on cleanup.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
c10ef17c23
input/vcd: Send END packet on cleanup.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
41d214f61a
input: Convert CSV module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
57486a7528
input: sr_input_new() always allocates the instance buffer.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
fe4fe25bf5
input: Fix option enumeration.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
d65fcbcd41
input: Fix internal API docs.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
bd0bfaafd8
input: Actually return a NULL-terminated array.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
20e8882106
input: Frontends don't need to see SR_INPUT_META_*.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
7db0639495
input: Fixes and VCD.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
0f3dbc9530
input: Fix up API documentation.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
17bfaca62a
input: Introduce new input module API.
...
This is a work in progress.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
d514d35dab
input: make sr_input{_module} opaque to clients.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
d4c937749a
input: s/format/module in all naming.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
81a3497655
fx2lafw: Code cleanup.
2014-08-26 01:49:00 +02:00
Bert Vermeulen
1685c27619
Avoid warnings on all-zero static struct entries.
2014-08-26 01:48:27 +02:00
Bert Vermeulen
84cbaf77b4
pipistrello-ols: Disable unused trigger stages.
...
Thanks to Magnus Karlsson for this fix.
2014-08-25 01:00:55 +02:00
Bert Vermeulen
acc885c755
pipistrello-ols: Preliminary port to current API.
2014-08-25 01:00:55 +02:00
magnuskarlsson
b94cff407f
DEMUX and RLE fixes
2014-08-25 01:00:55 +02:00
magnuskarlsson
1e0de84608
added edge triggers
2014-08-25 01:00:55 +02:00
magnuskarlsson
1f9bcd0f94
fixed typos
2014-08-25 01:00:55 +02:00
magnuskarlsson
72716f15be
fixed a problem with USB defines
2014-08-25 01:00:55 +02:00
magnuskarlsson
4bd80e1228
added pipistrello-ols
...
Conflicts:
configure.ac
src/hwdriver.c
2014-08-25 01:00:55 +02:00
Soeren Apel
562b7ae513
hameg-hmo / rigol-ds: Restore compatibility with std_dev_clear()
2014-08-24 16:54:38 +02:00
Martin Ling
14e1aa6df0
rigol-ds: Fix duplicated vendor string for Agilent devices.
2014-08-22 20:15:32 +01:00
Aurelien Jacobs
01f6e330f8
serial: re-implement sr_serial_find_usb() using new libsp APIs
2014-08-20 17:48:26 +02:00
Bert Vermeulen
fdefc40aec
output: Fix options enumeration. Again.
2014-08-20 17:33:09 +02:00
Martin Ling
aba57f3550
Close zip file at end of sr_session_file_check.
...
From patch sent to sigrok-devel by jerryxjtu.
2014-08-20 14:48:29 +02:00
Marc Schink
879dd50fb6
output: Allocate additional memory for NULL terminator.
...
Best regards,
Marc
>From a7228150fdea91a65b5d70359bf51b87d2572edf Mon Sep 17 00:00:00 2001
From: Marc Schink <sigrok-dev@marcschink.de>
Date: Wed, 20 Aug 2014 05:34:57 -0400
Subject: [PATCH] output: Allocate additional memory for NULL terminator.
2014-08-20 14:20:55 +02:00
Marc Schink
f817f05aac
ikalogic-scanaplus: Free device context to fix memory leak.
...
Best regards,
Marc
>From 779ef3a1150b3679ab357ceb0e2f50785ad90d28 Mon Sep 17 00:00:00 2001
From: Marc Schink <sigrok-dev@marcschink.de>
Date: Wed, 20 Aug 2014 05:42:07 -0400
Subject: [PATCH] ikalogic-scanaplus: Free device context to fix memory leak.
2014-08-20 14:20:55 +02:00
Bert Vermeulen
9fc318d9ef
output: Fix double free.
2014-08-19 00:01:57 +02:00
Bert Vermeulen
499c85dce5
output: Fix output option enumeration.
2014-08-19 00:01:57 +02:00
Marcus Comstedt
7754fb4d93
saleae-logic16: Recognize FPGA FIFO overflow status
2014-08-17 16:24:14 +02:00
Bert Vermeulen
af7d656d37
output: Constify module options.
2014-08-15 20:24:00 +02:00
Bert Vermeulen
fc74643098
output: Actually return a NULL-terminated array.
...
This returned an array of structs with an NULL-ed element at the end.
The drivers still do this, but the wrappers now make and free a NULL-
terminated array around it.
sr_output_options_free() now takes the pointer returned by
sr_output_options_get(), instead of the module owning it.
2014-08-15 20:23:52 +02:00
Soeren Apel
db81fbb582
hameg-hmo: Make sure the enabled_channels list is empty before populating it
...
Previous runs of dev_acquisition_start() keep the enabled_channels list
populated if they fail. This means that once an invalid channel
configuration was detected, it will be detected again even if the channel
configuration was changed. With this change, the list will be cleared
before being populated so that any stale entries are removed.
2014-08-14 22:43:57 +02:00
Bert Vermeulen
3c1cafebb3
session: Remove irrelevant logging.
2014-08-13 14:34:55 +02:00
Bert Vermeulen
441e9eae58
output/wav: Minor code cleanup.
2014-08-13 14:34:55 +02:00
Bert Vermeulen
63f6df68c6
output: Deal properly with NULL (no) options on a new output instance.
2014-08-13 14:34:55 +02:00
Uwe Hermann
41de54ffb1
sr_session_new(): Return SR_ERR_ARG upon invalid argument.
...
(instead of segfaulting)
2014-08-11 13:15:43 +02:00
Uwe Hermann
508ddda2a3
session_file.c: Drop left-over extern.
2014-08-11 12:31:01 +02:00
Uwe Hermann
9fcc286604
trigger.c: Add Doxygen @file and @defgroup tags.
2014-08-10 18:59:16 +02:00
Uwe Hermann
7efe889e7a
Doxygen: Add a few missing @param lines for sessions.
...
This fixes a bunch of Doxygen warnings.
2014-08-10 17:31:33 +02:00
Soeren Apel
b4e31d2aac
Fix typo in the Hameg HMO driver and add some error message for when the float comparison breaks
2014-08-08 17:12:58 +02:00
Bert Vermeulen
e336c0413c
output/vcd: Drop obsolete string.
2014-08-03 14:09:04 +02:00
Bert Vermeulen
226363c4e8
hameg-hmo: Implement SR_CONF_SCAN_OPTIONS.
2014-08-03 14:00:07 +02:00
Bert Vermeulen
706f482a95
output: Check options hash before destroying.
2014-08-03 01:24:30 +02:00
Bert Vermeulen
dcc55fe91a
output: Move option checks to the wrapper.
...
Output modules are now guaranteed:
- Every option is always given, with the default value if not supplied
by the user, and is the right GVariantType.
- No invalid options are ever passed.
2014-08-03 01:16:03 +02:00
Bert Vermeulen
950043c30e
output: Modules can keep track of option resources without wrapper help.
2014-08-02 19:20:00 +02:00
Bert Vermeulen
7ea75009d1
output/wav: Add 'scale' option.
...
Audio tools processing WAV failes generally need the samples to be in
the range -1 to +1. The scale option adds postprocessing to any samples
going into a WAV file, by dividing the sample values by the given factor.
2014-08-02 03:50:27 +02:00
Janne Huttunen
a24c3f4a89
Implement Brymen BM25x series as a serial DMM.
...
The Brymen BM25x series supports the BC-20X that is an opto-isolated
serial cable. The link seems to be unidirectional i.e. when activated
the DMM periodically sends updates to the host while the host cannot
control the DMM in any way.
The protocol is documented in "6000-count-digital-multimeters-r1.pdf"
that is available from the manufacturer. Every 15 byte packet consists
of a bitmap where the bits correspond to segments or symbols on the
LCD display i.e. the DMM essentially sends the contents of its screen
to the host in every update. This driver then decodes the measured
quantity, unit and its value from the bitmap.
2014-08-01 20:31:26 +02:00
Bert Vermeulen
2f6f0e9187
input/vcd: Make less noise in format match failure.
2014-08-01 12:04:20 +02:00
Bert Vermeulen
b866fc095d
input/csv: Match format on .csv extension in filename.
2014-08-01 12:03:42 +02:00
Bert Vermeulen
cb41a838a7
input/wav: Deal with IEEE float samples in WAV files.
...
This also skips chunks before the 'data' chunk in WAV files, as
this is quite common.
2014-08-01 12:02:09 +02:00
Bert Vermeulen
364859ac73
output/wav: Fix channel deinterleaving.
2014-08-01 12:00:51 +02:00
Bert Vermeulen
6e6babb9d5
output/analog: Fix channel deinterleaving.
2014-08-01 11:57:59 +02:00
Bert Vermeulen
0605f87475
output/wav: Initial module implementation.
2014-07-29 15:46:26 +02:00
Bert Vermeulen
afaa75b98c
output/wav: Initial module skeleton.
2014-07-29 02:47:10 +02:00
Bert Vermeulen
49224c2853
demo: Attach analog generator to channel, not channel group.
...
This also adds a new channel group "Analog", which has all analog
channels in it.
2014-07-29 02:00:57 +02:00
Bert Vermeulen
d686c5ec46
output: Rename instance private storage pointer to priv.
...
This makes it consistent with other libsigrok fields used for this purpose.
2014-07-28 16:02:21 +02:00
Bert Vermeulen
dddabe3705
demo: Support changing the amplitude of analog channels.
2014-07-28 15:40:26 +02:00
Bert Vermeulen
cff7d8d60d
Add config key for amplitude.
...
This is intended for setting (or getting) the amplitude of a source
which doesn't really have an MQ associated with it, such as the demo
driver's analog channels.
2014-07-28 15:40:19 +02:00
Bert Vermeulen
a755b0e122
output: Finish output module API wrappers.
...
The sr_output and sr_output_module structs are now no longer accessible
from the client.
2014-07-26 03:57:17 +02:00
Bert Vermeulen
ed0b7fed10
demo: Free analog channel groups when done with them.
...
This fixes a memory leak.
2014-07-24 21:01:39 +02:00
Bert Vermeulen
886413b6d2
std: Free channel groups from device instances as well.
2014-07-24 21:01:08 +02:00
Bert Vermeulen
4d7b36a0b5
fx2lafw: Check for valid samplerate before setting.
2014-07-23 12:32:35 +02:00
Bert Vermeulen
b62bb97afb
demo: Support continuous acquisition.
2014-07-23 04:53:25 +02:00
Bert Vermeulen
2f663c826a
fx2lafw: Fix continuous mode.
2014-07-23 00:24:39 +02:00
Uwe Hermann
b88c3e4923
Drop references to obsolete sigrok-commits mailing list.
2014-07-23 00:04:07 +02:00
Uwe Hermann
f4d2042d3c
session*.c: Remove some unneeded lines.
2014-07-22 23:25:24 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00