SQ50 patches for libsigrok
Go to file
Tomaž Šolc c506a6a688 Allow setting samplerate when reading binary files
I had a binary file that I needed to decode using UART decoder. UART
decoder needs to know the sample rate for the data, but currently it's
not possible to pass parameters to input formats and so the "binary"
file format always sets the samplerate to 0.

This patch adds the possibility to append a colon-separated list of
key=value options to the -I argument, in the same way -d supports it.
Also, it makes the "binary" format support the "samplerate" option.

I included the GHashTable containing input format options directly in
the sr_input struct. I'm not sure if that's the right way to do it. I
saw that -d uses a much more elaborate system with device capabilities
and typed options, but that seemed like an overkill for input formats.
2012-07-29 02:16:17 +02:00
contrib sr: add udev entry for Victor 70C multimeter 2012-06-05 18:18:23 +02:00
hardware sr: chronovu-la8: fix segfault on discovery 2012-07-24 00:53:01 +02:00
input Allow setting samplerate when reading binary files 2012-07-29 02:16:17 +02:00
output sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
.gitignore sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
COPYING sr/srd: Move some files to their resp. dirs. 2011-12-30 11:14:05 +01:00
Doxyfile Doxygen config files: Initial configuration. 2011-02-08 23:59:14 +01:00
Makefile.am sr: Add sr_strerror() and sr_strerror_name(). 2012-07-12 23:23:07 +02:00
NEWS cli/gtk/qt: Now all require libsigrok >= 0.2.0 (API changes). 2012-06-01 00:36:52 +02:00
README sr/srd/cli: require glib version >= 2.28 2012-06-23 01:26:20 +02:00
autogen.sh sr/srd/cli: Fix compiling with Homebrew. 2012-05-15 20:58:20 +02:00
backend.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
configure.ac sr: Drop mastech-va18b, code will be in genericdmm. 2012-07-11 12:57:15 +02:00
datastore.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
device.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
error.c sr: Add sr_strerror() and sr_strerror_name(). 2012-07-12 23:23:07 +02:00
filter.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
hwdriver.c sr: Drop mastech-va18b, code will be in genericdmm. 2012-07-11 12:57:15 +02:00
libsigrok-internal.h sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
libsigrok.h sr: session: Moves sources to session struct 2012-07-10 20:14:06 +02:00
libsigrok.pc.in sr: SR_PACKAGE_VERSION_* for consistency. 2012-03-31 11:35:47 +02:00
log.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
proto.h sr: Add sr_strerror() and sr_strerror_name(). 2012-07-12 23:23:07 +02:00
session.c sr: session: Deprecate sr_session_halt() 2012-07-11 23:28:35 +02:00
session_driver.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
session_file.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
strutil.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
version.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
version.h.in sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00

README

-------------------------------------------------------------------------------
README
-------------------------------------------------------------------------------

The sigrok project aims at creating a portable, cross-platform,
Free/Libre/Open-Source logic analyzer software that supports various
logic analyzer hardware products.

libsigrok is a shared library written in C which provides the basic API
for talking to logic analyzer hardware and reading/writing the acquired data
into various input/output file formats.


Requirements
------------

 - git
 - gcc (>= 4.0)
 - make
 - autoconf >= 2.63
 - automake >= 1.11
 - libtool
 - pkg-config >= 0.22
 - libglib >= 2.28.0
 - libusb >= 1.0.5 (for most logic analyzer hardware)
 - libzip >= 0.8
 - libftdi >= 0.16 (for some logic analyzer hardware)
 - libudev >= 151 (for some logic analyzer hardware)


Building and installing
-----------------------

In order to get the libsigrok source code and build it, run:

 $ git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
 $ cd sigrok/libsigrok
 $ ./autogen.sh
 $ ./configure
 $ make

For installing libsigrok:

 $ make install

Please see the following wiki pages for more detailed instructions:

 http://sigrok.org/wiki/Linux
 http://sigrok.org/wiki/Mac_OS_X
 http://sigrok.org/wiki/Windows
 http://sigrok.org/wiki/FreeBSD


Firmware
--------

Some devices supported by libsigrok need a firmware to be uploaded before the
device can be used. 

The default location where libsigrok expects the firmware files is:

  $prefix/share/sigrok-firmware

($prefix is usually /usr/local or /usr, depending on your ./configure options)

For further information see:

  http://sigrok.org/wiki/Firmware


Mailing lists
-------------

There are two mailing lists for sigrok/libsigrok:

 https://lists.sourceforge.net/lists/listinfo/sigrok-devel
 https://lists.sourceforge.net/lists/listinfo/sigrok-commits


IRC
---

You can find the sigrok developers in the #sigrok IRC channel on Freenode.


Website
-------

http://sigrok.org