]> sigrok.org Git - libsigrokdecode.git/log
libsigrokdecode.git
11 years agouart: Make data format selection a PD option.
Uwe Hermann [Thu, 12 Sep 2013 06:31:59 +0000 (08:31 +0200)]
uart: Make data format selection a PD option.

Until now we (ab)used annotation types for outputting the same data
(numbers) in different formats (hex, ascii, binary, and so on).

Turn this into a proper PD option, since annotation types should rather be
used for different _types_ of annotations (e.g. "CRC", "Stop bit",
"Preamble", "Sequence counter", "Warnings", and similar things), not
different _formats_ for the same annotation type.

Old sigrok-cli invocation for hex output:

  sigrok-cli ... -P uart:rx=0:tx=1 -A uart=hex

New:

  sigrok-cli ... -P uart:rx=0:tx=1:format=hex

In GUIs there is now a new "Data format" option where the user can
select the output format for UART data (default is 'ascii').

11 years agouart: Use T for stop bit, P for parity bit.
Uwe Hermann [Thu, 12 Sep 2013 06:20:03 +0000 (08:20 +0200)]
uart: Use T for stop bit, P for parity bit.

The short(est) annotations for "Stop bit" and "Parity bit" have both
been "P" until now, which is confusing for users (on certain zoom levels
in GUIs). Use "T" for stop bits now instead.

11 years agouart: Don't prefix databyte output numbers.
Uwe Hermann [Wed, 11 Sep 2013 17:53:31 +0000 (19:53 +0200)]
uart: Don't prefix databyte output numbers.

Previously the output was 0x41 or 0o101 or 0b1000001, now it is 41 or
101 or 1000001. We drop these prefixes, since they decrease the readability
of the PD output (especially when displayed in GUIs) and are not needed
anyway since the user knowingly selected the number format before running
the respective PD.

11 years agouart: Fix corner-case that can occur with LA triggers.
Uwe Hermann [Wed, 11 Sep 2013 17:20:15 +0000 (19:20 +0200)]
uart: Fix corner-case that can occur with LA triggers.

Assume that the initial pin state is 1/high for the RX and TX lines.

This fixes the decode when an LA triggers on e.g. TX=low (the first
sample would be low in that case, so the falling edge for the start bit
would be missed by the decoder).

11 years agouart: Fix start-/end-sample numbers.
Uwe Hermann [Wed, 11 Sep 2013 17:15:51 +0000 (19:15 +0200)]
uart: Fix start-/end-sample numbers.

This now makes the UART decoder suitable for use in GUIs.

This fixes bug #148.

11 years agocan: Use annotation abbreviations.
Uwe Hermann [Tue, 10 Sep 2013 07:33:11 +0000 (09:33 +0200)]
can: Use annotation abbreviations.

Supply long, middle, and short versions for most annotations, so that
GUIs can show nicely readable and useful annotations on various zoom
levels.

11 years agocan: Fix annotation start/end samples.
Uwe Hermann [Mon, 9 Sep 2013 19:48:42 +0000 (21:48 +0200)]
can: Fix annotation start/end samples.

With this change pretty much all CAN annotations that are currently
output should have the correct values, including single-bit and
multi-bit fields, standard and extended CAN frames, and so on.

This fixes #146.

11 years agocan: Prepare for fixing annotation start/end samples.
Uwe Hermann [Mon, 9 Sep 2013 17:38:38 +0000 (19:38 +0200)]
can: Prepare for fixing annotation start/end samples.

11 years agoi2c: Fix corner-case that can occur with LA triggers.
Uwe Hermann [Sun, 8 Sep 2013 13:16:11 +0000 (15:16 +0200)]
i2c: Fix corner-case that can occur with LA triggers.

Until now the I2C PD was basically ignoring the very first sample, and
using that as the initial 'oldscl'/'oldsda' value.

However, if your logic analyzers trigger on, say, SDA=low that will
result in a file where the first sample is really important since it
is the one which the PD will need to know that there's a falling edge
on SDA.

Thus, assume both SCL and SDA are high/1 when the PD starts. This is
a good assumption since both pins have pullups on them in practice
and are thus high/1 when the bus is idle.

Later on we might want to have config options to let the PD assume
other states of SDA/SCL initially.

11 years agoi2s: Fixed annotation sample numbers
Joel Holdsworth [Tue, 3 Sep 2013 15:36:44 +0000 (16:36 +0100)]
i2s: Fixed annotation sample numbers

11 years agopan1321: Improve commands documentation.
Uwe Hermann [Thu, 15 Aug 2013 15:12:33 +0000 (17:12 +0200)]
pan1321: Improve commands documentation.

11 years agopan1321: Initial JSDA support.
Uwe Hermann [Fri, 9 Aug 2013 18:17:03 +0000 (20:17 +0200)]
pan1321: Initial JSDA support.

11 years agopan1321: Add support for JAAC.
Uwe Hermann [Fri, 9 Aug 2013 17:19:00 +0000 (19:19 +0200)]
pan1321: Add support for JAAC.

11 years agopan1321: Properly check for \r\n, not just \n.
Uwe Hermann [Fri, 9 Aug 2013 17:13:20 +0000 (19:13 +0200)]
pan1321: Properly check for \r\n, not just \n.

11 years agopan1321: Code simplifications.
Uwe Hermann [Fri, 9 Aug 2013 17:11:08 +0000 (19:11 +0200)]
pan1321: Code simplifications.

11 years agopan1321: Add warnings for invalid protocol usage.
Uwe Hermann [Sun, 4 Aug 2013 12:24:40 +0000 (14:24 +0200)]
pan1321: Add warnings for invalid protocol usage.

11 years agopan1321: Support JSEC and JPRO.
Uwe Hermann [Sun, 4 Aug 2013 12:15:33 +0000 (14:15 +0200)]
pan1321: Support JSEC and JPRO.

11 years agoUse frontend-registered callback with correct parameters
Bert Vermeulen [Sun, 1 Sep 2013 16:20:36 +0000 (18:20 +0200)]
Use frontend-registered callback with correct parameters

11 years agoxfp: Decoder for XFP I2C structures
Bert Vermeulen [Sat, 31 Aug 2013 09:18:49 +0000 (11:18 +0200)]
xfp: Decoder for XFP I2C structures

11 years agoIgnore __pycache__ entries
Bert Vermeulen [Sat, 31 Aug 2013 09:17:02 +0000 (11:17 +0200)]
Ignore __pycache__ entries

11 years agolpc: Bugfix: Sample data at rising clock edges.
Uwe Hermann [Tue, 13 Aug 2013 19:30:04 +0000 (21:30 +0200)]
lpc: Bugfix: Sample data at rising clock edges.

11 years agolpc: Various fixes to make the PD actually work.
Uwe Hermann [Tue, 13 Aug 2013 19:06:03 +0000 (21:06 +0200)]
lpc: Various fixes to make the PD actually work.

11 years agoFix double free
Bert Vermeulen [Thu, 23 May 2013 09:24:25 +0000 (11:24 +0200)]
Fix double free

11 years agoFix double free
Bert Vermeulen [Wed, 8 May 2013 20:25:37 +0000 (22:25 +0200)]
Fix double free

11 years agoDoxyfile: Set version to "unreleased development snapshot".
Uwe Hermann [Wed, 8 May 2013 14:46:07 +0000 (16:46 +0200)]
Doxyfile: Set version to "unreleased development snapshot".

11 years agoFix various memory leaks
Bert Vermeulen [Sun, 5 May 2013 15:20:13 +0000 (17:20 +0200)]
Fix various memory leaks

11 years agoUse enums for error codes and loglevels as in libsigrok. libsigrokdecode-0.2.0
Uwe Hermann [Fri, 3 May 2013 21:51:35 +0000 (23:51 +0200)]
Use enums for error codes and loglevels as in libsigrok.

11 years agoAdd srd_strerror() and srd_strerror_name().
Uwe Hermann [Fri, 3 May 2013 21:28:10 +0000 (23:28 +0200)]
Add srd_strerror() and srd_strerror_name().

11 years agolibsigrokdecode-internal.h: Cosmetics.
Uwe Hermann [Fri, 3 May 2013 21:09:53 +0000 (23:09 +0200)]
libsigrokdecode-internal.h: Cosmetics.

11 years agoNEWS: Minor updates.
Uwe Hermann [Fri, 3 May 2013 19:37:54 +0000 (21:37 +0200)]
NEWS: Minor updates.

11 years agoDoxygen: Various fixes.
Uwe Hermann [Fri, 3 May 2013 19:21:30 +0000 (21:21 +0200)]
Doxygen: Various fixes.

11 years agoMain header is <libsigrokdecode/libsigrokdecode.h> now.
Uwe Hermann [Fri, 3 May 2013 12:49:21 +0000 (14:49 +0200)]
Main header is <libsigrokdecode/libsigrokdecode.h> now.

This matches the convention used in libsigrok. Potential other headers
might end up in libsigrokdecode/, but only libsigrokdecode.h is meant
to be #included by frontends directly.

11 years agoDoxygen: Add @since markers to API functions.
Uwe Hermann [Fri, 3 May 2013 12:45:49 +0000 (14:45 +0200)]
Doxygen: Add @since markers to API functions.

Also, document the functions in version.c.

11 years agoHACKING: Document the @since Doxygen tag.
Uwe Hermann [Fri, 3 May 2013 12:31:11 +0000 (14:31 +0200)]
HACKING: Document the @since Doxygen tag.

11 years agoDoxyfile: Set version number to 0.2.0.
Uwe Hermann [Fri, 3 May 2013 12:22:01 +0000 (14:22 +0200)]
Doxyfile: Set version number to 0.2.0.

11 years agoUpdate package version to new 0.2.0 release
Bert Vermeulen [Fri, 3 May 2013 09:20:06 +0000 (11:20 +0200)]
Update package version to new 0.2.0 release

11 years agoGPL headers: Use correct project name.
Uwe Hermann [Tue, 23 Apr 2013 20:27:20 +0000 (22:27 +0200)]
GPL headers: Use correct project name.

11 years agoconfigure.ac: Show $build, $host, and lib versions.
Uwe Hermann [Mon, 15 Apr 2013 10:21:04 +0000 (12:21 +0200)]
configure.ac: Show $build, $host, and lib versions.

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

11 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.

11 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.

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

11 years agoconfigure.ac: Drop std-options, unneeded.
Uwe Hermann [Sun, 17 Mar 2013 12:21:35 +0000 (13:21 +0100)]
configure.ac: 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.

11 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.

11 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.

11 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 <redacted>
11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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 1.8.1.2 (like libsigrok
currently does) and adapts it to libsigrokdecode needs.

11 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).

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

11 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.

11 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.

11 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:
http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info

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

11 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).

11 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).

11 years agoconfigure.ac: Drop AC_PROG_CXX.
Uwe Hermann [Sat, 19 Jan 2013 20:23:25 +0000 (21:23 +0100)]
configure.ac: 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.

11 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.

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

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

11 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.

11 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.

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

11 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

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

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

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

Don't override/overwrite CFLAGS in configure.ac, 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.

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

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

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

12 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.

12 years agoAll PDs: Name the files pd.py consistently.
Uwe Hermann [Wed, 21 Nov 2012 21:43:02 +0000 (22:43 +0100)]
All PDs: Name the files pd.py 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
consistent.

12 years agoconfigure.ac/Makefile.am: Alphabetical order.
Uwe Hermann [Wed, 21 Nov 2012 21:29:43 +0000 (22:29 +0100)]
configure.ac/Makefile.am: Alphabetical order.

12 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.

12 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.

12 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.

12 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.

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

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

12 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.

12 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 <redacted> for the report.

12 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.

12 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).

12 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.

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

12 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.

12 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.

12 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.

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

12 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.

12 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>

Examples:

 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.

12 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.

12 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).

12 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.

12 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.