]>
sigrok.org Git - libsigrok.git/log
Uwe Hermann [Thu, 17 Nov 2011 22:00:33 +0000 (23:00 +0100)]
Consistently use __func__ instead of __FUNCTION__.
The __func__ form is standardized and more portable.
Uwe Hermann [Thu, 17 Nov 2011 21:54:17 +0000 (22:54 +0100)]
libsigrok: Use sr_err() et al instead of printf.
Gareth McMullin [Thu, 17 Nov 2011 08:18:46 +0000 (21:18 +1300)]
Fixed a crash when loading a second session file.
Uwe Hermann [Tue, 15 Nov 2011 21:46:57 +0000 (22:46 +0100)]
sigrok.h: Remove SIGROK_*VERSION #defines again.
These version numbers represent the sigrok version (i.e., the version
of the tarball, such as "sigrok-0.2.0.tar.gz"), but _not_ the libsigrok
(libtool) library/API/ABI versions. Thus, they should not be in
libsigrok's include file (sigrok.h).
Uwe Hermann [Tue, 15 Nov 2011 20:05:40 +0000 (21:05 +0100)]
Fix some compiler warnings.
Uwe Hermann [Tue, 15 Nov 2011 00:11:27 +0000 (01:11 +0100)]
libsigrok.pc: Add Required.private field entries.
The "Required.private:" field in pkg-config .pc files is used for
declaring that we need the listed libs (pkg-config packages) for
static linking, but not for dynamic linking.
I.e., the "Required.private:" field should be used for libs which we
use internally in libsigrok, but which we do not "expose" ourselves.
For now all libs are listed as "Required.private:" instead of
"Required:", but this may not be entirely correct and needs to be
checked carefully at some later date.
Gareth McMullin [Sat, 5 Nov 2011 22:44:25 +0000 (11:44 +1300)]
Remove IO source if callback returns FALSE.
Uwe Hermann [Fri, 29 Apr 2011 17:27:32 +0000 (19:27 +0200)]
sigrok.h: Add SIGROK_{MAJOR,MINOR,MICRO,}_VERSION #defines.
Gareth McMullin [Sun, 30 Oct 2011 01:25:24 +0000 (14:25 +1300)]
OLS: Calculate actual sample rate used.
Uwe Hermann [Sun, 30 Oct 2011 00:10:32 +0000 (02:10 +0200)]
ols: Minor whitespace and coding style fixes.
Gareth McMullin [Sat, 29 Oct 2011 02:57:17 +0000 (15:57 +1300)]
Run-Length Encoding support for the OLS.
Gareth McMullin [Sat, 29 Oct 2011 02:21:16 +0000 (15:21 +1300)]
Prevent reading past end of OLS hardware buffer.
Jerry [Mon, 20 Jun 2011 21:43:44 +0000 (23:43 +0200)]
Mac OS X build fixes
Bert Vermeulen [Mon, 20 Jun 2011 09:43:34 +0000 (11:43 +0200)]
saleae-logic: fix timing on packets when triggering is used
Bert Vermeulen [Mon, 20 Jun 2011 09:42:43 +0000 (11:42 +0200)]
better session bus logging
Bert Vermeulen [Sun, 19 Jun 2011 12:28:50 +0000 (14:28 +0200)]
use new datafeed packet format
Bert Vermeulen [Sun, 19 Jun 2011 00:35:23 +0000 (02:35 +0200)]
new datafeed packet format
struct sr_datafeed_packet now has timeoffset and duration fields,
expressed in picoseconds (1/10^12 seconds)
length and unitsize are now in a separate struct sr_datafeed_logic
Bert Vermeulen [Sat, 18 Jun 2011 22:55:36 +0000 (00:55 +0200)]
fix parameter type
Bert Vermeulen [Sun, 12 Jun 2011 16:07:15 +0000 (18:07 +0200)]
whitespace
Bert Vermeulen [Sun, 12 Jun 2011 16:04:19 +0000 (18:04 +0200)]
support for multiple FX2 devices
Bert Vermeulen [Sun, 5 Jun 2011 00:08:08 +0000 (02:08 +0200)]
saleae-logic: use new logging system
Bert Vermeulen [Sat, 4 Jun 2011 21:20:00 +0000 (23:20 +0200)]
saleae-logic: support for other FX2 devices (bare FX2)
This enables support for devices that have a different VID/PID
than the Saleae Logic, and yet another after firmware upload.
After firmware upload is checked every 100ms whether it came back,
instead of always waiting for 2 seconds.
If the kernel attaches a driver to a device we know, detact it first.
Bert Vermeulen [Mon, 4 Apr 2011 03:13:29 +0000 (05:13 +0200)]
better cleanup of device/plugin resources
Uwe Hermann [Sun, 8 May 2011 22:59:41 +0000 (00:59 +0200)]
LA8: Remove trailing whitespace.
Uwe Hermann [Sun, 8 May 2011 22:54:59 +0000 (00:54 +0200)]
LA8: Use sr_spew() where appropriate.
Uwe Hermann [Sun, 8 May 2011 22:52:55 +0000 (00:52 +0200)]
LA8: Improve trigger support and debug output.
Uwe Hermann [Sun, 8 May 2011 18:26:22 +0000 (20:26 +0200)]
Add sr_spew/SR_LOG_SPEW for even more debug output.
This is meant for really extensive debug output which can slow down
operation significantly and should thus only be enabled if really needed.
Uwe Hermann [Sun, 8 May 2011 18:20:26 +0000 (20:20 +0200)]
LA8: Eliminate magic numbers.
Uwe Hermann [Sun, 8 May 2011 18:09:22 +0000 (20:09 +0200)]
LA8: Add trigger point support.
Report trigger point/position via SR_DF_TRIGGER packet.
Uwe Hermann [Fri, 6 May 2011 18:38:48 +0000 (20:38 +0200)]
demo: Use memset(), might be faster.
Uwe Hermann [Fri, 6 May 2011 18:34:12 +0000 (20:34 +0200)]
demo: Add all-low/all-high pattern support.
Also, improve error handling a bit.
Uwe Hermann [Thu, 5 May 2011 11:02:48 +0000 (13:02 +0200)]
demo: s/genmode/pattern/.
Uwe Hermann [Wed, 4 May 2011 20:37:12 +0000 (22:37 +0200)]
demo: Rename GENMODE_DEFAULT to GENMODE_SIGROK.
Also, add (Doxygen) comments for the currently supported patterns that
the demo device/driver can generate.
Uwe Hermann [Wed, 4 May 2011 20:26:55 +0000 (22:26 +0200)]
Improve (Doxygen) comments for HWCAP entries.
Uwe Hermann [Wed, 4 May 2011 18:05:33 +0000 (20:05 +0200)]
demo: Eliminate unneeded tmp_u64.
Uwe Hermann [Wed, 4 May 2011 17:46:33 +0000 (19:46 +0200)]
LA8: Free memory from g_*alloc*() via g_freee().
Uwe Hermann [Wed, 4 May 2011 17:44:25 +0000 (19:44 +0200)]
log messages: Use device name, not vendor name.
There can be multiple devices from the same vendor, obviously.
Uwe Hermann [Wed, 4 May 2011 17:34:12 +0000 (19:34 +0200)]
libsigrok: closedev() now has a return code.
This is useful to allow frontends to react upon close failures in a
way they see fit (e.g. a popup in the GUI, or error message in the CLI).
They can also still ignore the error if they want, of course.
Uwe Hermann [Wed, 4 May 2011 17:03:01 +0000 (19:03 +0200)]
libsigrok/cli: Implement loglevel support.
libsigrok can now be told at which loglevel to work, i.e., how many
debug/error/warning output to generate. You can also query the current
loglevel.
In sigrok-cli it is now possible to set the loglevel via -l. For example:
- Disable all output: sigrok-cli -l 0
- Only show errors: sigrok-cli -l 1
- Show errors, warnings, info, and debug messages: sigrok-cli -l 4
Uwe Hermann [Tue, 3 May 2011 17:18:43 +0000 (19:18 +0200)]
Drop unneeded skeleton files.
They're not too useful as they mostly consist of a list of function names,
and that list is already available in the respective struct. The wiki
API docs and the code in the various hardware/output drivers serve as
useful examples already, no need for additional files.
Uwe Hermann [Tue, 3 May 2011 17:15:54 +0000 (19:15 +0200)]
libsigrok: Rename open/close to opendev/closedev.
Uwe Hermann [Sun, 1 May 2011 23:40:16 +0000 (01:40 +0200)]
demo: Add some more debug output.
Uwe Hermann [Tue, 26 Apr 2011 21:56:00 +0000 (23:56 +0200)]
Initial support for CSV as output format.
Uwe Hermann [Tue, 26 Apr 2011 15:27:34 +0000 (17:27 +0200)]
Change left-over SIGROK_* to SR_*.
Uwe Hermann [Sun, 24 Apr 2011 22:16:47 +0000 (00:16 +0200)]
LA8: Shrink mangled_buf from 8MB to 4KB.
It's not necessary to have an 8MB buffer. Also, make it static, don't
use malloc() here.
Uwe Hermann [Sun, 24 Apr 2011 20:53:27 +0000 (22:53 +0200)]
ASIX: Small consistency fixes.
Uwe Hermann [Sun, 24 Apr 2011 20:50:04 +0000 (22:50 +0200)]
LA8: Eliminate unused num_probes variable.
Uwe Hermann [Sun, 24 Apr 2011 20:48:45 +0000 (22:48 +0200)]
LA8: Replace some sr_warn() with sr_err().
Uwe Hermann [Sun, 17 Apr 2011 08:11:52 +0000 (10:11 +0200)]
LA8: probeconfig/trigger support.
This should make proper trigger support work for ChronoVu LA8.
Uwe Hermann [Mon, 18 Apr 2011 22:27:29 +0000 (00:27 +0200)]
Fix two small warnings.
Uwe Hermann [Mon, 18 Apr 2011 22:14:15 +0000 (00:14 +0200)]
Hardware drivers: Use names for struct entries.
Uwe Hermann [Sun, 17 Apr 2011 12:51:54 +0000 (14:51 +0200)]
ols: Always use glib's memory allocation functions.
Uwe Hermann [Sun, 17 Apr 2011 08:22:10 +0000 (10:22 +0200)]
MSO19: Always use glib's memory allocation functions.
Uwe Hermann [Sat, 16 Apr 2011 15:23:04 +0000 (17:23 +0200)]
demo: Always use glib's memory allocation functions.
Uwe Hermann [Sat, 16 Apr 2011 14:07:28 +0000 (16:07 +0200)]
serial.c: Use g_try_malloc().
Uwe Hermann [Sat, 16 Apr 2011 14:04:32 +0000 (16:04 +0200)]
ASIX Sigma: Improve error handling a bit.
Uwe Hermann [Sat, 16 Apr 2011 13:58:26 +0000 (15:58 +0200)]
alsa: Always use glib's memory allocation functions.
Uwe Hermann [Sat, 16 Apr 2011 12:24:58 +0000 (14:24 +0200)]
LA8: Always use glib's memory allocation functions.
Uwe Hermann [Sat, 16 Apr 2011 12:17:51 +0000 (14:17 +0200)]
Replace g_malloc{0,} with g_try_malloc{0,}.
The g_malloc()/g_malloc0() versions exit/segfault if not enough memory
is available, which is not a good thing in libsigrok.
Instead, we use the g_try_malloc()/g_try_malloc0() variants, which
return NULL if not enough memory is available, so that the caller can
handle the error properly.
Uwe Hermann [Fri, 15 Apr 2011 19:49:22 +0000 (21:49 +0200)]
gnuplot output: Optimize by only storing changes.
Only output new lines in gnuplot output if there have been changes in
the samples (similar to what VCD does). As long as the first and last
sample are output, the resulting plot looks OK.
This reduces the size of the output file from roughly 200MB to just 60KB
in one specific test setup (depends on the number of probes and on the
signal, of course). The time and CPU load required to generate the gnuplot
output and the resulting plot (PNG or other) is also drastically reduced
from multiple minutes to roughly 30 seconds (again, depends on various
things).
Thanks Ken Mobley of ChronoVu for the report.
Uwe Hermann [Fri, 15 Apr 2011 18:47:26 +0000 (20:47 +0200)]
Don't close/reset the FTDI device too often.
Only call la8_close_usb_reset_sequencer() in hw_closedev(), it's not
needed in hw_stop_acquisition().
Thanks Ken Mobley of ChronoVu for the report.
Uwe Hermann [Fri, 15 Apr 2011 18:05:45 +0000 (20:05 +0200)]
LA8: free() sample buffers in hw_closedev().
Thanks Ken Mobley of ChronoVu for the report.
Uwe Hermann [Thu, 14 Apr 2011 07:46:53 +0000 (09:46 +0200)]
libsigrok: Introduce sr_dbg/sr_info/sr_warn/sr_err.
We should use these (internal) functions in libsigrok exclusively from
now on, i.e. no more use of glib's g_debug() etc.
These functions are only for libsigrok, the frontends use whatever
logging mechanism is suitable there.
Uwe Hermann [Sun, 10 Apr 2011 22:21:19 +0000 (00:21 +0200)]
Add chronovu-la8 input file format support.
Uwe Hermann [Sun, 10 Apr 2011 21:33:43 +0000 (23:33 +0200)]
Add chronovu-la8 output file format.
Uwe Hermann [Sun, 10 Apr 2011 14:46:05 +0000 (16:46 +0200)]
gnuplot output: More error checks.
Uwe Hermann [Wed, 6 Apr 2011 19:51:36 +0000 (21:51 +0200)]
input/output formats: s/extension/id/.
The struct entry 'extension' is not really a (filename) extension, but
rather a unique ID used for input or output formats, e.g. in the sigrok
CLI or GUI interface. Thus, rename it accordingly.
Uwe Hermann [Wed, 6 Apr 2011 18:01:31 +0000 (20:01 +0200)]
LA8: Use the new SR_ERR_ARG macro.
Uwe Hermann [Wed, 6 Apr 2011 17:53:31 +0000 (19:53 +0200)]
Add SR_ERR_ARG #define.
Changing the number of SR_ERR_SAMPLERATE is not a problem ATM, as we
never had a public release of libsigrok, i.e. nobody relies on the API yet.
Uwe Hermann [Wed, 6 Apr 2011 17:51:11 +0000 (19:51 +0200)]
Binary output: Add more error checks.
Uwe Hermann [Wed, 6 Apr 2011 17:42:49 +0000 (19:42 +0200)]
input/output formats: Explicit struct member names.
This makes it immediately clear what an entry is supposed to be, no
need to look it up in some header file.
Uwe Hermann [Mon, 4 Apr 2011 17:40:30 +0000 (19:40 +0200)]
Add initial support for the ChronoVu LA8.
Uwe Hermann [Sun, 3 Apr 2011 21:18:46 +0000 (23:18 +0200)]
Revert temporary changes for 0.2 release.
Uwe Hermann [Sun, 3 Apr 2011 20:38:35 +0000 (22:38 +0200)]
Disable some stuff which should not be in 0.2.
Disable decoders, disable lib building.
Uwe Hermann [Sun, 3 Apr 2011 18:15:12 +0000 (20:15 +0200)]
Hook up output/text directory with autotools.
This is needed for 'make distcheck' to work.
Also, add missing text.h to the list of source files.
Bert Vermeulen [Sun, 3 Apr 2011 04:15:45 +0000 (06:15 +0200)]
OLS driver overhaul
support for metadata in recent versions of the FPGA code
moved constants and structs out to separate header file
got rid of all device instance-specific globals
Bert Vermeulen [Thu, 17 Mar 2011 13:53:06 +0000 (14:53 +0100)]
small warning fix
Bert Vermeulen [Mon, 14 Feb 2011 04:55:01 +0000 (05:55 +0100)]
output_ols: disabled cursors don't really need to be listed
Uwe Hermann [Fri, 25 Mar 2011 12:44:16 +0000 (13:44 +0100)]
ASIX Sigma: Fix firmware loading bug.
When no firmware file is found, return the right error code so sigrok
doesn't continue running with no firmware loaded.
Thanks Martin StensgÄrd <redacted> for the patch!
Uwe Hermann [Tue, 22 Feb 2011 22:20:22 +0000 (23:20 +0100)]
Kill unused functions (avoid namespace pollution).
Uwe Hermann [Tue, 22 Feb 2011 22:13:34 +0000 (23:13 +0100)]
Drop obsolete vcd_header.
Uwe Hermann [Tue, 22 Feb 2011 22:12:41 +0000 (23:12 +0100)]
Make some more items 'static'.
Uwe Hermann [Tue, 22 Feb 2011 22:01:29 +0000 (23:01 +0100)]
Add doxygen comment to sr_filter_probes().
Uwe Hermann [Tue, 22 Feb 2011 17:13:32 +0000 (18:13 +0100)]
sr_exit(): Return int to be able to report errors.
Uwe Hermann [Tue, 22 Feb 2011 17:08:41 +0000 (18:08 +0100)]
Make DATASTORE_CHUNKSIZE private.
Uwe Hermann [Tue, 22 Feb 2011 17:05:16 +0000 (18:05 +0100)]
Add SR_HZ macro for consistency.
Uwe Hermann [Tue, 22 Feb 2011 16:57:03 +0000 (17:57 +0100)]
Add SR_ prefix to the KHZ/MHZ/GHZ macros.
Uwe Hermann [Sun, 20 Feb 2011 17:39:47 +0000 (18:39 +0100)]
Add SR_ prefix for MAX_NUM_PROBES/MAX_PROBENAME_LEN.
Uwe Hermann [Sun, 20 Feb 2011 17:29:05 +0000 (18:29 +0100)]
Make ARRAY_SIZE/ARRAY_AND_SIZE private.
This is not libsigrok-specific and should not be part of our API.
Uwe Hermann [Sun, 20 Feb 2011 17:24:25 +0000 (18:24 +0100)]
Constify some more 'char *' parameters.
Uwe Hermann [Sun, 20 Feb 2011 13:20:15 +0000 (14:20 +0100)]
Add sr_ prefix for analog stuff some structs.
Uwe Hermann [Sun, 20 Feb 2011 13:14:13 +0000 (14:14 +0100)]
Add sr_ prefix to receive_data_callback typedef.
Also, drop obsolete add_source() prototype from sigrok-cli.h.
Uwe Hermann [Sun, 20 Feb 2011 13:09:15 +0000 (14:09 +0100)]
Add sr_ prefix to datafeed_callback typedef.
Uwe Hermann [Sun, 20 Feb 2011 13:04:12 +0000 (14:04 +0100)]
Drop obsolete source_callback_*().
Uwe Hermann [Sun, 20 Feb 2011 12:58:21 +0000 (13:58 +0100)]
Add sr_ prefix to filter_probes().
Uwe Hermann [Sun, 20 Feb 2011 12:53:13 +0000 (13:53 +0100)]
Constify a few more 'char *' parameters.
Uwe Hermann [Sun, 20 Feb 2011 12:27:08 +0000 (13:27 +0100)]
Make load_hwplugins() private.
Uwe Hermann [Sun, 20 Feb 2011 12:24:26 +0000 (13:24 +0100)]
Add sr_ prefix to list_hwplugins().
Uwe Hermann [Sun, 20 Feb 2011 12:19:27 +0000 (13:19 +0100)]
Add sr_ prefix to session_{add,remove}.
Uwe Hermann [Sun, 20 Feb 2011 12:08:44 +0000 (13:08 +0100)]
Disable analog bits/gnuplot output for now.