7 years Look for python-config-3.x besides python3.x-config.
Peter Stuge [Sat, 6 Apr 2013 13:01:25 +0000 (15:01 +0200)] Look for python-config-3.x besides python3.x-config.

7 years agoREADME: Add "Copyright and license" section.
Uwe Hermann [Tue, 19 Mar 2013 23:03:03 +0000 (00:03 +0100)]
README: Add "Copyright and license" section.

7 years agouse GVariant for passing decoder options and probes
Bert Vermeulen [Tue, 19 Mar 2013 00:47:53 +0000 (01:47 +0100)]
use GVariant for passing decoder options and probes

Decoder options are now exposed in struct srd_decoder, via a GSList
of the new struct srd_decoder_option. The 'def' field represents
the default value as set in the decoder, converted to GVariant. This
allows a library user to determine the type as well as default value.

7 years agocode cleanup
Bert Vermeulen [Tue, 19 Mar 2013 00:01:25 +0000 (01:01 +0100)]
code cleanup

7 years Drop std-options, unneeded.
Uwe Hermann [Sun, 17 Mar 2013 12:21:35 +0000 (13:21 +0100)] Drop std-options, unneeded.

The automake 'std-options' option checks whether all installed tools
and scripts have a --help and --version CLI option. This check is not
needed for libsigrokdecode though, since it doesn't install any tools.

7 years agoREADME: Refer to INSTALL and new Building wiki page.
Uwe Hermann [Sun, 17 Mar 2013 11:53:49 +0000 (12:53 +0100)]
README: Refer to INSTALL and new Building wiki page.

7 years agods1307: Fix date/day-of-week printing.
Uwe Hermann [Tue, 12 Mar 2013 14:12:09 +0000 (15:12 +0100)]
ds1307: Fix date/day-of-week printing.

7 years agoAdd Dallas DS1307 RTC protocol decoder
Matt Ranostay [Mon, 11 Mar 2013 08:03:20 +0000 (08:03 +0000)]
Add Dallas DS1307 RTC protocol decoder

Dallas DS1307 RTC protocol decoder that works stacked
with the I2C PD. Based on the rtc8564 protocol decoder.

Signed-off-by: Matt Ranostay <>
7 years agoDoxygen: Initial groups and topic short descriptions.
Uwe Hermann [Sat, 9 Feb 2013 21:25:15 +0000 (22:25 +0100)]
Doxygen: Initial groups and topic short descriptions.

7 years agoDoxygen: Add @file items for the relevant files.
Uwe Hermann [Sat, 9 Feb 2013 21:10:57 +0000 (22:10 +0100)]
Doxygen: Add @file items for the relevant files.

These short descriptions are shown in the "Files" section of the
Doxygen output.

7 years agoDoxygen: Mark private functions/variables properly.
Uwe Hermann [Sat, 9 Feb 2013 20:44:11 +0000 (21:44 +0100)]
Doxygen: Mark private functions/variables properly.

7 years agoDoxygen: Document how to mark private stuff.
Uwe Hermann [Sat, 9 Feb 2013 20:43:46 +0000 (21:43 +0100)]
Doxygen: Document how to mark private stuff.

7 years agoDoxygen: Add intro section and some docs.
Uwe Hermann [Sat, 9 Feb 2013 20:32:31 +0000 (21:32 +0100)]
Doxygen: Add intro section and some docs.

7 years agoAdd contrib/sigrok-logo-notext.png.
Uwe Hermann [Sat, 9 Feb 2013 20:07:53 +0000 (21:07 +0100)]
Add contrib/sigrok-logo-notext.png.

This is used in the generated Doxygen HTML output.

7 years agoDoxyfile: Update to match the libsigrok file/settings.
Uwe Hermann [Sat, 9 Feb 2013 20:03:08 +0000 (21:03 +0100)]
Doxyfile: Update to match the libsigrok file/settings.

This uses a template generated by Doyxgen (like libsigrok
currently does) and adapts it to libsigrokdecode needs.

7 years ago.gitignore: Add INSTALL (copied by automake).
Uwe Hermann [Sat, 2 Feb 2013 11:19:22 +0000 (12:19 +0100)]
.gitignore: Add INSTALL (copied by automake).

7 years agoBring back temporarily reverted changes.
Uwe Hermann [Sat, 2 Feb 2013 11:18:29 +0000 (12:18 +0100)]
Bring back temporarily reverted changes.

7 years agocan: Temporary quickfix for a bug. libsigrokdecode-0.1.1
Uwe Hermann [Wed, 30 Jan 2013 00:16:35 +0000 (01:16 +0100)]
can: Temporary quickfix for a bug.

7 years agoUpdate package version to new 0.1.1 release.
Uwe Hermann [Sun, 20 Jan 2013 23:59:59 +0000 (00:59 +0100)]
Update package version to new 0.1.1 release.

7 years agoUpdate libtool version numbers for libsigrokdecode.
Uwe Hermann [Sun, 20 Jan 2013 23:50:14 +0000 (00:50 +0100)]
Update libtool version numbers for libsigrokdecode.

The last release of libsigrokdecode (package version number 0.1.0) had the
initial libtool version numbers (current:revision:age) of 0:0:0.

The upcoming release (0.1.1) is API-compatible with 0.1.0 and can be used
as drop-in replacement. Programs linked against 0.1.0 do not need to
be recompiled or relinked.

As per the libtool guidelines this release only increments the
libtool "revision" number. The new libtool version numbers
(current:revision:age) are thus 0:1:0.

See here for details:

7 years agoNEWS: Various updates.
Uwe Hermann [Sun, 20 Jan 2013 23:39:53 +0000 (00:39 +0100)]
NEWS: Various updates.

7 years agoMinor autotools improvements.
Uwe Hermann [Sun, 20 Jan 2013 20:46:42 +0000 (21:46 +0100)]
Minor autotools improvements.

 - Don't use "foreign" option for automake. Without this automake will
   perform some additional sanity checks e.g. on missing files. It will also
   now add the usual INSTALL file which documents the configure options etc.

 - Add AUTHORS file.

 - Add 'check-news' automake option, which will abort 'make dist' if
   the NEWS file doesn't list the current (to be released) package
   version at the top (i.e., if we forget to update NEWS).

7 years agoTemporarily revert API changes in preparation of release.
Uwe Hermann [Sun, 20 Jan 2013 20:26:45 +0000 (21:26 +0100)]
Temporarily revert API changes in preparation of release.

The upcoming libsigrokdecode release should not contain any API changes
so it is compatible with existing released frontends (sigrok-cli 0.3.1).

7 years Drop AC_PROG_CXX.
Uwe Hermann [Sat, 19 Jan 2013 20:23:25 +0000 (21:23 +0100)] Drop AC_PROG_CXX.

We don't need a C++ compiler for libsigrokdecode, so don't check for one.

This would cause a build failure on all systems where there is a C compiler
but no C++ compiler installed.

7 years agoLower glib-2.0 requirement to 2.24.0.
Uwe Hermann [Sat, 19 Jan 2013 15:38:46 +0000 (16:38 +0100)]
Lower glib-2.0 requirement to 2.24.0.

We don't use any of the recent glib features in libsigrokdecode, it
compiles fine with 2.24.x.

7 years Fix typo in 'ChangeLog' target.
Uwe Hermann [Mon, 7 Jan 2013 22:11:22 +0000 (23:11 +0100)] Fix typo in 'ChangeLog' target.

7 years agoCosmetics, fix typos.
Uwe Hermann [Mon, 7 Jan 2013 21:30:17 +0000 (22:30 +0100)]
Cosmetics, fix typos.

7 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Mon, 7 Jan 2013 21:25:33 +0000 (22:25 +0100)]
NEWS: Add list of user-visible changes so far.

7 years agoSmall cosmetic/consistency fixes in the PDs.
Uwe Hermann [Tue, 1 Jan 2013 18:11:13 +0000 (19:11 +0100)]
Small cosmetic/consistency fixes in the PDs.

7 years agoconstify srd_decoder_list() output
Bert Vermeulen [Tue, 1 Jan 2013 12:04:16 +0000 (13:04 +0100)]
constify srd_decoder_list() output

7 years agosrd_inst_new() options can be NULL
Bert Vermeulen [Tue, 1 Jan 2013 00:09:46 +0000 (01:09 +0100)]
srd_inst_new() options can be NULL

7 years agoFix compiler warning.
Uwe Hermann [Fri, 28 Dec 2012 16:16:19 +0000 (17:16 +0100)]
Fix compiler warning.

7 years Add missing -fvisibility=hidden to CFLAGS.
Uwe Hermann [Fri, 28 Dec 2012 16:12:19 +0000 (17:12 +0100)] Add missing -fvisibility=hidden to CFLAGS.

7 years Fix CFLAGS settings.
Uwe Hermann [Fri, 28 Dec 2012 16:03:20 +0000 (17:03 +0100)] Fix CFLAGS settings.

Don't override/overwrite CFLAGS in, but rather amend it
with (currently) "-Wall -Wextra".

This properly allows users/packagers to do things like:

 ./configure (this will default to using "-g -O2" additionally)

 CFLAGS="-g -O2" ./configure (same as above)

 CFLAGS="" ./configure (no additional flags)

 CFLAGS="-g -O0" ./configure (disable optimization, e.g. for valgrind use)

 etc. etc.

7 years agoAdd intial CAN protocol decoder.
Uwe Hermann [Wed, 28 Nov 2012 18:06:17 +0000 (19:06 +0100)]
Add intial CAN protocol decoder.

7 years Also check for python3.3-config.
Uwe Hermann [Wed, 12 Dec 2012 18:45:52 +0000 (19:45 +0100)] Also check for python3.3-config.

7 years agomlx90614: "Kelvin", not "degrees Kelvin".
Uwe Hermann [Wed, 21 Nov 2012 21:56:01 +0000 (22:56 +0100)]
mlx90614: "Kelvin", not "degrees Kelvin".

7 years agoFix bugs in "Invalid state" printing/exceptions.
Uwe Hermann [Wed, 21 Nov 2012 21:51:31 +0000 (22:51 +0100)]
Fix bugs in "Invalid state" printing/exceptions.

7 years agoAll PDs: Name the files consistently.
Uwe Hermann [Wed, 21 Nov 2012 21:43:02 +0000 (22:43 +0100)]
All PDs: Name the files consistently.

The Python module name is determined by the directory name (e.g. dcf77),
the *.py file names in that directory don't matter and can be kept

7 years Alphabetical order.
Uwe Hermann [Wed, 21 Nov 2012 21:29:43 +0000 (22:29 +0100)] Alphabetical order.

7 years agotlc5620: Refactoring, add initial LOAD support.
Uwe Hermann [Wed, 21 Nov 2012 21:27:13 +0000 (22:27 +0100)]
tlc5620: Refactoring, add initial LOAD support.

7 years agoInitial TI TLC5620 (8-bit quad DAC) protocol decoder.
Uwe Hermann [Tue, 20 Nov 2012 15:32:02 +0000 (16:32 +0100)]
Initial TI TLC5620 (8-bit quad DAC) protocol decoder.

7 years agoRe-add HACKING file after repo split.
Uwe Hermann [Tue, 16 Oct 2012 12:44:15 +0000 (14:44 +0200)]
Re-add HACKING file after repo split.

7 years agoSmall update for the pkg-config files and Windows.
Uwe Hermann [Sat, 13 Oct 2012 13:49:09 +0000 (15:49 +0200)]
Small update for the pkg-config files and Windows.

On Windows, cmake-using projects seem to have problems with the
"-I/c/Python32/include" syntax we have in the libsigrokdecode .pc file.

However, "-Ic:/Python32/include" works fine. So we just add both to
support everything.

7 years agoREADME: Update repo URL.
Uwe Hermann [Wed, 10 Oct 2012 22:38:38 +0000 (00:38 +0200)]
README: Update repo URL.

7 years ago.gitignore: Add missing entries.
Uwe Hermann [Wed, 10 Oct 2012 22:34:27 +0000 (00:34 +0200)]
.gitignore: Add missing entries.

7 years agoREADME: Add status, update URL, small fixes.
Uwe Hermann [Wed, 10 Oct 2012 21:37:19 +0000 (23:37 +0200)]
README: Add status, update URL, small fixes.

7 years agosrd: uart: Fix regression.
Uwe Hermann [Fri, 31 Aug 2012 09:34:46 +0000 (11:34 +0200)]
srd: uart: Fix regression.

Thanks Iztok Jeras <> for the report.

7 years agoAdd initial SD card (SPI mode) decoder.
Uwe Hermann [Tue, 31 Jul 2012 21:48:13 +0000 (23:48 +0200)]
Add initial SD card (SPI mode) decoder.

This is work in progress, but it already works partially, and can be used
for actual decodes of some commands.

This PD stacks on top of the SPI protocol decoder.

8 years agosrd: lm75: s/degrees Kelvin/Kelvin/.
Uwe Hermann [Sat, 28 Jul 2012 16:14:21 +0000 (18:14 +0200)]
srd: lm75: s/degrees Kelvin/Kelvin/.

The temperature unit is nowadays called just "Kelvin", not
"degrees Kelvin" (even though this was not always the case).

8 years agosrd: avr_isp: Improve Chip Erase handling.
Uwe Hermann [Sat, 28 Jul 2012 15:39:38 +0000 (17:39 +0200)]
srd: avr_isp: Improve Chip Erase handling.

8 years agosrd: avr_isp: Factor out part numbers/names to
Uwe Hermann [Sat, 28 Jul 2012 08:51:32 +0000 (10:51 +0200)]
srd: avr_isp: Factor out part numbers/names to

8 years agosrd: Initial decoder for AVR ISP protocol.
Uwe Hermann [Thu, 26 Jul 2012 16:55:02 +0000 (18:55 +0200)]
srd: Initial decoder for AVR ISP protocol.

8 years agosrd: onewire_link: Annotations shouldn't be ALLCAPS.
Uwe Hermann [Sat, 21 Jul 2012 19:58:20 +0000 (21:58 +0200)]
srd: onewire_link: Annotations shouldn't be ALLCAPS.

While states in the PD should be ALLCAPS per guidelines (for
consistency), the annotations that a PD outputs (and are shown in a
console via sigrok-cli or in a GUI) should be "normal" human-readable
text/formatting usually, i.e. not ALLCAPS.

8 years agosrd: maxim_ds28ea00: Factor out putx(), small fixes.
Uwe Hermann [Sat, 21 Jul 2012 19:31:04 +0000 (21:31 +0200)]
srd: maxim_ds28ea00: Factor out putx(), small fixes.

8 years agosrd: maxim_ds28ea00: Cosmetics, cleanups.
Uwe Hermann [Sat, 21 Jul 2012 19:21:51 +0000 (21:21 +0200)]
srd: maxim_ds28ea00: Cosmetics, cleanups.

8 years agosrd: maxim_ds28ea00: Fix to only handle DS28EA00.
Uwe Hermann [Sat, 21 Jul 2012 19:04:20 +0000 (21:04 +0200)]
srd: maxim_ds28ea00: Fix to only handle DS28EA00.

8 years agosrd: Rename onewire_transport to maxim_ds28ea00.
Uwe Hermann [Sat, 21 Jul 2012 18:37:41 +0000 (20:37 +0200)]
srd: Rename onewire_transport to maxim_ds28ea00.

It doesn't make sense to have one "generic" onewire_transport PD, as
this layer is very much device-specific and such a generic PD would
have to contain an accumulation of all possible features and commands
and handling code of all existing (now and in the future) 1-Wire
devices, which is neither possible nor useful nor elegant.

There are (for example) 1-Wire thermometers, RTCs, EEPROMs,
special-purpose security chips with passwords/keys, battery monitoring
chips, and many many others. They all have a different set of features,
commands and command codes, RAM areas/sizes/partitioning/contents,
protocols, and so on.

Thus, the layering for 1-Wire PD stacks should look like this:

 onewire_link -> onewire_network -> <specificdevice>


 onewire_link -> onewire_network -> maxim_ds28ea00 (special thermometer)
 onewire_link -> onewire_network -> maxim_ds2431 (1kbit EEPROM)
 onewire_link -> onewire_network -> maxim_ds2417 (RTC)
 onewire_link -> onewire_network -> maxim_ds2762 (battery monitor)
 onewire_link -> onewire_network -> maxim_ds1961s (SHA-1 eCash iButton)
 and so on...

So, renaming onewire_transport to maxim_ds28ea00. The non-DS28EA00
specific code will be dropped and/or moved to other PDs on top of
onewire_network later.

8 years agosrd: onewire_network: Fix typo, command is 0x69.
Uwe Hermann [Sat, 21 Jul 2012 18:36:07 +0000 (20:36 +0200)]
srd: onewire_network: Fix typo, command is 0x69.

The 'Overdrive match ROM' command is 0x69, not 0x6d. Verified in various
datasheets and the original 1-Wire/iButton spec.

8 years agosrd: onewire_link/network: Fix annotations, small cleanups.
Uwe Hermann [Sat, 21 Jul 2012 17:16:16 +0000 (19:16 +0200)]
srd: onewire_link/network: Fix annotations, small cleanups.

The annotation types are 'Text' and 'Warnings', not 'Link' etc. as the
annotations of the onewire_link PD (for example) are already clearly
from the link layer. The annotation types should be different things/formats
of a specific PD's annotation output instead (like "Celsius" / "Kelvin"
for some temperature sensor, for example).

8 years agosrd: onewire_link/network: Reduce nesting level.
Uwe Hermann [Thu, 19 Jul 2012 19:40:40 +0000 (21:40 +0200)]
srd: onewire_link/network: Reduce nesting level.

Also, some additional cleanups.

8 years agosrd: onewire_network: Cosmetics, simplifications, doc fixes.
Uwe Hermann [Thu, 19 Jul 2012 19:26:50 +0000 (21:26 +0200)]
srd: onewire_network: Cosmetics, simplifications, doc fixes.

8 years agosrd: onewire_link: Cosmetics, simplifications, doc fixes.
Uwe Hermann [Wed, 18 Jul 2012 20:16:19 +0000 (22:16 +0200)]
srd: onewire_link: Cosmetics, simplifications, doc fixes.

8 years agoonewire: fixed an issue caused by renaming a transport layer command
Iztok Jeras [Tue, 17 Jul 2012 19:50:08 +0000 (21:50 +0200)]
onewire: fixed an issue caused by renaming a transport layer command

8 years agoonewire: added new transport layer commands
Iztok Jeras [Tue, 17 Jul 2012 19:42:53 +0000 (21:42 +0200)]
onewire: added new transport layer commands

8 years agoonewire: updated documentation
Iztok Jeras [Tue, 17 Jul 2012 17:33:44 +0000 (19:33 +0200)]
onewire: updated documentation

8 years agoonewire: added transport layer decoder, it does not do much for now
Iztok Jeras [Sun, 15 Jul 2012 15:46:20 +0000 (17:46 +0200)]
onewire: added transport layer decoder, it does not do much for now

8 years agoonewire: updates to link layer timing
Iztok Jeras [Fri, 13 Jul 2012 21:55:44 +0000 (23:55 +0200)]
onewire: updates to link layer timing

8 years agoonewire: combined reset and presence detect events, avoid unneeded overdrive exit...
Iztok Jeras [Fri, 13 Jul 2012 20:59:12 +0000 (22:59 +0200)]
onewire: combined reset and presence detect events, avoid unneeded overdrive exit message

8 years agoonewire: the split of the protocol into layers works now
Iztok Jeras [Tue, 10 Jul 2012 21:14:35 +0000 (23:14 +0200)]
onewire: the split of the protocol into layers works now

8 years agoonewire: placing protocol layers into separate directories
Iztok Jeras [Tue, 10 Jul 2012 20:06:58 +0000 (22:06 +0200)]
onewire: placing protocol layers into separate directories

8 years agoonewire: preparations for protocol separation between link and network layers
Iztok Jeras [Mon, 9 Jul 2012 21:29:34 +0000 (23:29 +0200)]
onewire: preparations for protocol separation between link and network layers

8 years agosrd: Drop 'usb' PD, replaced by two others.
Uwe Hermann [Wed, 11 Jul 2012 20:27:07 +0000 (22:27 +0200)]
srd: Drop 'usb' PD, replaced by two others.

The new 'usb_signalling' and the 'usb_protocol' PD which stacks on top
of it, replace the old 'usb' decoder.

8 years agosrd: Performance improvements for various PDs.
Uwe Hermann [Wed, 11 Jul 2012 20:19:31 +0000 (22:19 +0200)]
srd: Performance improvements for various PDs.

Ignore/skip identical samples in most (low-level) PDs, as we're usually
(but not necessarily always) only interested in pin changes.

This yields a significant performance improvement for the PDs.

The mechanism was already used in the 'i2s', 'jtag', and 'lpc' PDs, but not
yet in all supported low-level decoders. The following PDs now also use
this mechanism: 'dcf77', 'i2c', 'spi', 'uart', and 'usb_signalling'.

Thanks Lars-Peter Clausen <> for bringing this to our

8 years agosrd: lm75: Output min/max/avg temperature in report().
Uwe Hermann [Wed, 4 Jul 2012 20:03:34 +0000 (22:03 +0200)]
srd: lm75: Output min/max/avg temperature in report().

This is just a preparation for later, the report() is not hooked up
anywhere, yet.

8 years agosrd: lm75: Warn about temperature reg. being read-only.
Uwe Hermann [Wed, 4 Jul 2012 17:52:29 +0000 (19:52 +0200)]
srd: lm75: Warn about temperature reg. being read-only.

8 years agosrd: lm75: Generic handling of register reads/writes.
Uwe Hermann [Wed, 4 Jul 2012 17:35:59 +0000 (19:35 +0200)]
srd: lm75: Generic handling of register reads/writes.

8 years agosrd: onewire: Fix copyright line, and PD name/description.
Uwe Hermann [Tue, 3 Jul 2012 23:58:46 +0000 (01:58 +0200)]
srd: onewire: Fix copyright line, and PD name/description.

8 years agosome white space changes, changed handling of normal/overdrive timing, annotations...
Iztok Jeras [Mon, 2 Jul 2012 21:54:52 +0000 (23:54 +0200)]
some white space changes, changed handling of normal/overdrive timing, annotations now show duration

8 years agoadded some ducumentation, shortened the ROM command decoder code
Iztok Jeras [Sun, 1 Jul 2012 16:35:43 +0000 (18:35 +0200)]
added some ducumentation, shortened the ROM command decoder code

8 years agoadded some untested overdrive functionality, added some comments, modified timing...
Iztok Jeras [Sat, 30 Jun 2012 20:09:47 +0000 (22:09 +0200)]
added some untested overdrive functionality, added some comments, modified timing values in annotations

8 years agocommented out most of the TRANSPORT layer code, added some code for an improved timin...
Iztok Jeras [Thu, 28 Jun 2012 21:07:16 +0000 (23:07 +0200)]
commented out most of the TRANSPORT layer code, added some code for an improved timing calculation

8 years agodecoder onewire: added conditional network commands, some fixex to the transport...
Iztok Jeras [Mon, 25 Jun 2012 22:42:03 +0000 (00:42 +0200)]
decoder onewire: added conditional network commands, some fixex to the transport layer

8 years agodecoder onewire: separated transport layer code from network layer
Iztok Jeras [Mon, 25 Jun 2012 20:03:37 +0000 (22:03 +0200)]
decoder onewire: separated transport layer code from network layer

8 years agodecoder onewire: some annotation cleanup
Iztok Jeras [Mon, 25 Jun 2012 19:27:02 +0000 (21:27 +0200)]
decoder onewire: some annotation cleanup

8 years agoonewire decoder: removed some debug code, preparations for the next protocol layer
Iztok Jeras [Sat, 23 Jun 2012 20:06:47 +0000 (22:06 +0200)]
onewire decoder: removed some debug code, preparations for the next protocol layer

8 years agoonewire decoder: added search support
Iztok Jeras [Sat, 23 Jun 2012 19:29:03 +0000 (21:29 +0200)]
onewire decoder: added search support

8 years agoonewire decoder: added some byte related code
Iztok Jeras [Sat, 23 Jun 2012 16:06:09 +0000 (18:06 +0200)]
onewire decoder: added some byte related code

8 years agosome fixex to the link layer, not final
Iztok Jeras [Sat, 2 Jun 2012 18:06:45 +0000 (20:06 +0200)]
some fixex to the link layer, not final

8 years agounfinished update to onewire protocol decoder
Uwe Hermann [Tue, 3 Jul 2012 23:19:35 +0000 (01:19 +0200)]
unfinished update to onewire protocol decoder

8 years agosrd: i2cfilter: Output actual I2C packets.
Uwe Hermann [Thu, 28 Jun 2012 19:43:12 +0000 (21:43 +0200)]
srd: i2cfilter: Output actual I2C packets.

Change this PD from an I2C->databytes converter/filter to an actual
pure I2C filter in the sense that both input and output is a valid I2C
protocol stream.

Also, change the EDID decoder accordingly, to use the new i2cfilter

8 years agosrd: Add National LM75 protocol decoder.
Uwe Hermann [Wed, 27 Jun 2012 18:02:25 +0000 (20:02 +0200)]
srd: Add National LM75 protocol decoder.

This shall support the original National LM75 I2C-based temperature sensor,
as well as various compatible devices of other vendors, such as the
Fairchild FM75, Dallas DS75, and so on.

Currently only 9bit resolution is supported, and not all commands are
decoded, yet. The register contents and temperatures are decoded
correctly though, and can be output in both Celsius and Kelvin.

8 years agosr/srd/cli: require glib version >= 2.28
Bert Vermeulen [Fri, 22 Jun 2012 23:17:36 +0000 (01:17 +0200)]
sr/srd/cli: require glib version >= 2.28

Needed for g_get_monotonic_time(). Thanks to Tomaž Šolc.

8 years agosrd: Split USB decoder in two PDs (which stack).
Uwe Hermann [Tue, 19 Jun 2012 15:29:18 +0000 (17:29 +0200)]
srd: Split USB decoder in two PDs (which stack).

The 'usb_signalling' decoder just decodes symbols from D+/D- levels,
handles bit stuffing and outputs the symbols and (potential) packets.

The 'usb_protocol' decoder takes that output and tried to parse USB
packets from it (SOF, SETUP, IN, OUT, DATA0, and so on).
This is the base decoder on top of which various others will stack
later on.

The two new PDs are work in progress, so we still keep the old 'usb' PD
around for a little while, until the two new ones are fully working and

8 years agosrd: usb: Add long description of the PIDs.
Uwe Hermann [Fri, 15 Jun 2012 13:21:06 +0000 (15:21 +0200)]
srd: usb: Add long description of the PIDs.

Also, add missing ones which are mentioned in the USB spec. However, not
all may be relevant for LS/FS signalling. But they're still useful to
have in the table, so we can output warnings like

  "Warning: HS PID encountered, but device is FS???"

8 years agosrd: usb: Preliminary USB low-speed support.
Uwe Hermann [Thu, 14 Jun 2012 20:46:52 +0000 (22:46 +0200)]
srd: usb: Preliminary USB low-speed support.

Some of the differences of USB low-speed (compared to full-speed) are:

 - 1.5Mb/s datarate, not 12MBit/s.
 - The J and K states are swapped/inverted.

Note: This is work in progress, further changes may still be needed.

Add a 'signalling' option, which allows the user to select whether the
PD should decode using the low-speed or full-speed signalling protocol.
If unspecified, the default is full-speed.

8 years agosrd: uart_dump: Small simplification.
Uwe Hermann [Thu, 14 Jun 2012 00:06:36 +0000 (02:06 +0200)]
srd: uart_dump: Small simplification.

8 years agosrd: uart_dump: Fix file output (flush).
Uwe Hermann [Thu, 14 Jun 2012 00:02:42 +0000 (02:02 +0200)]
srd: uart_dump: Fix file output (flush).

We need to flush the file output buffer(s), lacking a stop() call in
PDs at the moment, which could do the flush (or file close()) only once
at the end of the PD "session".

8 years agosrd: Add experimental uart_dump decoder.
Uwe Hermann [Wed, 13 Jun 2012 23:14:10 +0000 (01:14 +0200)]
srd: Add experimental uart_dump decoder.

This PD stacks on top of the UART protocol decoder, and ouputs the
decoded UART data in the "canonical" format, one byte after the other
without any metadata (start bits, stop bits, parity bits, errors) and
without any sample-numbers and such. This is basically what you would
see in a terminal program, such as minicom.

Per default it outputs to stdout, but using the 'filename' option
and/or the 'filename_rx'/'filename_tx' options it can also output to

Using the 'tx' and 'rx' options you can also select whether both, or
only one of the data direction's data should be output.


  sigrok-cli -i \
             -a uart:rx=0:tx=1,uart_dump:rx=no:tx=yes:filename=foo.txt \
             -s uart,uart_dump

This PD is just an experiment for now, it's possible that it will be
replaced / reimplemented via a different sigrok facility later on.

8 years agosrd: pan1321: Add 'Text' (short) annotation format.
Uwe Hermann [Wed, 13 Jun 2012 17:34:11 +0000 (19:34 +0200)]
srd: pan1321: Add 'Text' (short) annotation format.

Rename the old 'Text' format to 'Text (verbose)'.