]> sigrok.org Git - libsigrokdecode.git/log
libsigrokdecode.git
10 years agoDon't define names ending with _t (POSIX reserved).
Uwe Hermann [Sat, 3 May 2014 20:45:50 +0000 (22:45 +0200)]
Don't define names ending with _t (POSIX reserved).

Avoid defining any names ending in _t, those are generally reserved
for POSIX usage. For details see:

http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html
http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html

10 years agoedid: s/annotation type/annotation class/.
Uwe Hermann [Sat, 3 May 2014 20:36:55 +0000 (22:36 +0200)]
edid: s/annotation type/annotation class/.

10 years agotests/check_session.c: Use UINT64_MAX.
Uwe Hermann [Sat, 3 May 2014 20:35:32 +0000 (22:35 +0200)]
tests/check_session.c: Use UINT64_MAX.

10 years agoDetect Python 3.4 if not installed as "python3".
Bert Vermeulen [Thu, 24 Apr 2014 12:12:49 +0000 (14:12 +0200)]
Detect Python 3.4 if not installed as "python3".

10 years agoinstance.c: s/probe/channel/.
Uwe Hermann [Tue, 15 Apr 2014 06:44:51 +0000 (08:44 +0200)]
instance.c: s/probe/channel/.

10 years agoAll PDs: More consistent OUTPUT_PYTHON format docs.
Uwe Hermann [Tue, 15 Apr 2014 06:43:22 +0000 (08:43 +0200)]
All PDs: More consistent OUTPUT_PYTHON format docs.

10 years agosdcard_spi: Avoid duplicate keys in a Python dict.
Uwe Hermann [Mon, 14 Apr 2014 21:50:45 +0000 (23:50 +0200)]
sdcard_spi: Avoid duplicate keys in a Python dict.

This fixes bug #191.

10 years agoAll PDs: Bump api_version to 2.
Uwe Hermann [Mon, 14 Apr 2014 20:14:39 +0000 (22:14 +0200)]
All PDs: Bump api_version to 2.

Older libsigrokdecode versions are no longer able to use the current
versions of the PDs (various changes in syntax etc).

10 years agoAll PDs: Drop some unneeded comments.
Uwe Hermann [Mon, 14 Apr 2014 21:09:43 +0000 (23:09 +0200)]
All PDs: Drop some unneeded comments.

10 years agonunchuk: Fix PD to become usable in GUIs.
Uwe Hermann [Wed, 5 Feb 2014 17:25:22 +0000 (18:25 +0100)]
nunchuk: Fix PD to become usable in GUIs.

 - Provide proper annotation classes and annotation rows.
 - Emit bit-exact annotations for some registers.
 - Output short and long annotations (for use when zooming).
 - Various minor fixes.

This fixes bug #344.

10 years agodebug: Log unitsize when configuring channel map.
Bert Vermeulen [Mon, 14 Apr 2014 22:46:45 +0000 (00:46 +0200)]
debug: Log unitsize when configuring channel map.

10 years ago.gitignore: Add test-suite.log.
Uwe Hermann [Sun, 13 Apr 2014 19:59:02 +0000 (21:59 +0200)]
.gitignore: Add test-suite.log.

10 years agoRename 'probe' to 'channel' everywhere.
Uwe Hermann [Sun, 13 Apr 2014 17:57:43 +0000 (19:57 +0200)]
Rename 'probe' to 'channel' everywhere.

Variables of type 'struct srd_channel *' are consistently named 'pdch' to
make them easily distinguishable from libsigrok's 'struct sr_channel *'
variables that are consistently named 'ch'.

10 years agoz80: Fix incorrect license field.
Uwe Hermann [Sun, 13 Apr 2014 17:56:09 +0000 (19:56 +0200)]
z80: Fix incorrect license field.

10 years agoSwitch to a non-recursive automake setup.
Uwe Hermann [Wed, 9 Apr 2014 19:06:27 +0000 (21:06 +0200)]
Switch to a non-recursive automake setup.

(fewer files, less clutter)

10 years agoREADME: Update build dependencies list.
Uwe Hermann [Wed, 9 Apr 2014 19:02:16 +0000 (21:02 +0200)]
README: Update build dependencies list.

10 years agoconfigure.ac: Clearly mark required and optional libs.
Uwe Hermann [Sat, 5 Apr 2014 11:00:59 +0000 (13:00 +0200)]
configure.ac: Clearly mark required and optional libs.

Also, drop printing of the detected Python CPPFLAGS/LDFLAGS, not really
needed since it's available in 'make V=1' output as well (and we don't print
it for other libs either).

10 years agoBump minimum Python version to 3.2
Bert Vermeulen [Thu, 20 Mar 2014 15:42:18 +0000 (16:42 +0100)]
Bump minimum Python version to 3.2

We use some functions specific to 3.1, but every distribution appears
to be at 3.2.x already anyway.

10 years agopdtest: Add support for code coverage.
Bert Vermeulen [Thu, 20 Mar 2014 16:02:56 +0000 (17:02 +0100)]
pdtest: Add support for code coverage.

10 years agoruntc: Add list of missed lines to coverage output.
Bert Vermeulen [Tue, 18 Mar 2014 11:13:38 +0000 (12:13 +0100)]
runtc: Add list of missed lines to coverage output.

10 years agousb_packet: Fix an incorrect index.
Uwe Hermann [Tue, 18 Mar 2014 19:39:09 +0000 (20:39 +0100)]
usb_packet: Fix an incorrect index.

10 years agousb_packet: Provide better short/long annotations.
Uwe Hermann [Tue, 18 Mar 2014 19:21:48 +0000 (20:21 +0100)]
usb_packet: Provide better short/long annotations.

10 years agousb_signalling: Make each symbol an annotation class.
Uwe Hermann [Tue, 18 Mar 2014 19:15:03 +0000 (20:15 +0100)]
usb_signalling: Make each symbol an annotation class.

10 years agousb_signalling: Provide better short/long annotations.
Uwe Hermann [Tue, 18 Mar 2014 19:04:10 +0000 (20:04 +0100)]
usb_signalling: Provide better short/long annotations.

10 years agoAdd support for code coverage of used decoder modules.
Bert Vermeulen [Mon, 17 Mar 2014 10:24:32 +0000 (11:24 +0100)]
Add support for code coverage of used decoder modules.

10 years agoBring various test output files up to date.
Bert Vermeulen [Fri, 14 Mar 2014 00:01:03 +0000 (01:01 +0100)]
Bring various test output files up to date.

10 years agopdtest: Small fix.
Bert Vermeulen [Fri, 14 Mar 2014 00:00:25 +0000 (01:00 +0100)]
pdtest: Small fix.

10 years agoVarious PDs: Minor option related fixes.
Uwe Hermann [Tue, 11 Mar 2014 23:51:06 +0000 (00:51 +0100)]
Various PDs: Minor option related fixes.

10 years agoVarious PDs: Drop currently unsupported probes in stacked PDs.
Uwe Hermann [Tue, 11 Mar 2014 23:22:31 +0000 (00:22 +0100)]
Various PDs: Drop currently unsupported probes in stacked PDs.

At the moment we don't yet support PDs which take both input from
another PD (which they're stacked on top of) and from one or more
logic inputs/pins.

This will be supported later on, and at that time we'll bring back
these changes.

10 years agocan: Make sample_point a float option.
Uwe Hermann [Tue, 11 Mar 2014 23:17:46 +0000 (00:17 +0100)]
can: Make sample_point a float option.

This allows users to set values like 70.5% or such.

10 years agoFix enumeration of option values.
Bert Vermeulen [Tue, 11 Mar 2014 22:27:31 +0000 (23:27 +0100)]
Fix enumeration of option values.

10 years agoFixed g_variant_get_double copy-paste error
Joel Holdsworth [Tue, 11 Mar 2014 21:58:24 +0000 (22:58 +0100)]
Fixed g_variant_get_double copy-paste error

10 years agoir_nec: Update to recent PD API changes.
Uwe Hermann [Mon, 10 Mar 2014 14:44:24 +0000 (15:44 +0100)]
ir_nec: Update to recent PD API changes.

10 years agoir_nec: Add support for higher-level remote control annotations.
Uwe Hermann [Fri, 7 Mar 2014 20:49:12 +0000 (21:49 +0100)]
ir_nec: Add support for higher-level remote control annotations.

10 years agoir_nec: Addresses and commands are transmitted LSB-first.
Uwe Hermann [Fri, 7 Mar 2014 19:17:00 +0000 (20:17 +0100)]
ir_nec: Addresses and commands are transmitted LSB-first.

10 years agoir_nec: Add support for more fields.
Uwe Hermann [Fri, 7 Mar 2014 18:30:09 +0000 (19:30 +0100)]
ir_nec: Add support for more fields.

Also show the AGC field(s) and pauses, the stop bit, and the individual
address / address# and command / command# fields.

10 years agoir_nec: Drop some unneeded options.
Uwe Hermann [Fri, 7 Mar 2014 16:24:21 +0000 (17:24 +0100)]
ir_nec: Drop some unneeded options.

The timing of the protocol is not really configurable, valid data in
this protocol must always adhere to the same timing parameters, making them
configurable should not be needed.

Also: Only check for the "interesting" edges and simplify the code a bit.

10 years agoRename 'ir_nec6122' PD to 'ir_nec', minor fixes and simplifications.
Uwe Hermann [Fri, 7 Mar 2014 13:55:54 +0000 (14:55 +0100)]
Rename 'ir_nec6122' PD to 'ir_nec', minor fixes and simplifications.

This IR protocol is commonly referred to as "the NEC protocol", and can be
generated by various means (not only via the NEC µPD6121/µPD6122 ICs).

Drop some unneeded variables and fix/simplify the code a bit.

10 years agoAdd NEC IR protocol decoder.
Gump Yang [Fri, 7 Mar 2014 13:53:50 +0000 (14:53 +0100)]
Add NEC IR protocol decoder.

10 years agoProbes, optional probes and annotations now take a tuple.
Bert Vermeulen [Mon, 10 Mar 2014 11:23:38 +0000 (12:23 +0100)]
Probes, optional probes and annotations now take a tuple.

Annotation entries also consist of a tuple, not a list.

10 years agoir_rc5: Change PD options to be a tuple of dictionaries.
Bert Vermeulen [Mon, 10 Mar 2014 09:35:41 +0000 (10:35 +0100)]
ir_rc5: Change PD options to be a tuple of dictionaries.

10 years agoRemove unused probes and options
Bert Vermeulen [Sun, 9 Mar 2014 23:43:27 +0000 (00:43 +0100)]
Remove unused probes and options

10 years agoChange PD options to be a tuple of dictionaries.
Bert Vermeulen [Sun, 9 Mar 2014 22:48:27 +0000 (23:48 +0100)]
Change PD options to be a tuple of dictionaries.

Each option consists of a dictionary with the following keys:

  id      The option id, which is passed in when setting a value.
  desc    A description of the option, suitable for display.
  def     The default value for this option.
  values  (optional) If present, a tuple containing values the option
          may take. They must be of the same type as the default.

Valid types for the options are UTF-8-encoded strings, integers, and
floating point values.

10 years agoonewire_link: Replaced us with µs
Joel Holdsworth [Tue, 4 Mar 2014 18:40:24 +0000 (18:40 +0000)]
onewire_link: Replaced us with µs

10 years agoir_rc5: Fix incorrect bit length of RC-5 packets.
Uwe Hermann [Wed, 5 Mar 2014 22:44:54 +0000 (23:44 +0100)]
ir_rc5: Fix incorrect bit length of RC-5 packets.

All RC-5 packets are 14 bits long.

10 years agoir_rc5: Don't throw exception upon invalid edge distances.
Uwe Hermann [Wed, 5 Mar 2014 22:44:14 +0000 (23:44 +0100)]
ir_rc5: Don't throw exception upon invalid edge distances.

Instead, reset the state machine and continue with the rest of the data.

10 years agoir_rc5: Only determine edge type once.
Uwe Hermann [Wed, 5 Mar 2014 22:34:50 +0000 (23:34 +0100)]
ir_rc5: Only determine edge type once.

10 years agoAdd initial RC-5 IR protocol decoder.
Uwe Hermann [Thu, 6 Feb 2014 18:49:06 +0000 (19:49 +0100)]
Add initial RC-5 IR protocol decoder.

10 years agoz80: Use methods directly as state values.
Daniel Elstner [Sun, 2 Mar 2014 10:10:40 +0000 (11:10 +0100)]
z80: Use methods directly as state values.

10 years agoz80: Display not-taken conditional calls correctly.
Daniel Elstner [Fri, 28 Feb 2014 20:10:53 +0000 (21:10 +0100)]
z80: Display not-taken conditional calls correctly.

10 years agoz80: Fix display of read/modify/write instructions.
Daniel Elstner [Fri, 28 Feb 2014 20:03:23 +0000 (21:03 +0100)]
z80: Fix display of read/modify/write instructions.

10 years agoz80: Shorten annotation ID 'warning' to 'warn'.
Daniel Elstner [Fri, 28 Feb 2014 18:48:33 +0000 (19:48 +0100)]
z80: Shorten annotation ID 'warning' to 'warn'.

10 years agoz80: Output jump offsets relative to instruction start.
Daniel Elstner [Thu, 27 Feb 2014 21:07:58 +0000 (22:07 +0100)]
z80: Output jump offsets relative to instruction start.

Most assemblers recognize the symbol $ for the address of the
current instruction. Make use of this to output relative jump
instructions using the $[+-]offset syntax, with offset being
the displacement minus the instruction length.

10 years agoz80: Format hex numbers with leading zero if necessary.
Daniel Elstner [Thu, 27 Feb 2014 20:31:10 +0000 (21:31 +0100)]
z80: Format hex numbers with leading zero if necessary.

Assembler syntax requires that all numbers start with a decimal
digit. Introduce a custom 'H' format for prefixing a leading 0
to hexadecimal numbers that would otherwise start with a letter.

10 years agoz80: Use list comprehensions for bus probes.
Daniel Elstner [Sun, 23 Feb 2014 23:03:20 +0000 (00:03 +0100)]
z80: Use list comprehensions for bus probes.

10 years agoz80: New decoder for disassembling Z80 CPU instructions.
Daniel Elstner [Tue, 18 Feb 2014 21:03:45 +0000 (22:03 +0100)]
z80: New decoder for disassembling Z80 CPU instructions.

10 years agoMake the data unit size configurable
Daniel Elstner [Thu, 20 Feb 2014 05:24:23 +0000 (06:24 +0100)]
Make the data unit size configurable

10 years agouart: Emit per-bit annotations and OUTPUT_PYTHON data.
Uwe Hermann [Wed, 12 Feb 2014 21:55:37 +0000 (22:55 +0100)]
uart: Emit per-bit annotations and OUTPUT_PYTHON data.

10 years agoxfp: Drop unused "import os".
Uwe Hermann [Wed, 19 Feb 2014 18:13:51 +0000 (19:13 +0100)]
xfp: Drop unused "import os".

10 years agojtag: Use list comprehensions.
Uwe Hermann [Wed, 19 Feb 2014 18:12:56 +0000 (19:12 +0100)]
jtag: Use list comprehensions.

10 years agosdcard_spi: Use list comprehensions.
Uwe Hermann [Wed, 19 Feb 2014 18:00:36 +0000 (19:00 +0100)]
sdcard_spi: Use list comprehensions.

10 years agortc8564: Use list comprehensions.
Uwe Hermann [Wed, 19 Feb 2014 17:58:09 +0000 (18:58 +0100)]
rtc8564: Use list comprehensions.

10 years agorgb_led_spi: Shorten name/description (drop "mode").
Uwe Hermann [Sun, 23 Feb 2014 17:30:01 +0000 (18:30 +0100)]
rgb_led_spi: Shorten name/description (drop "mode").

In the 'sdcard_spi' PD/case the SD spec specifically differentiates between
a so-called "SPI mode" and "SD mode" (both being well-defined terms from
the spec), thus the "SPI mode" in the name and description of that PD.

For 'rgb_led_spi' however there's no such distinction for "modes"
really, so shorten the name/description to just 'RGB LED (SPI)'.

10 years agospi: Fix some start/end samplenumbers for PYTHON output.
Uwe Hermann [Wed, 19 Feb 2014 14:17:52 +0000 (15:17 +0100)]
spi: Fix some start/end samplenumbers for PYTHON output.

This fixes the data/annotations of stacked PDs.

10 years agospi: Fix a bug when only supplying MOSI (but not MISO).
Uwe Hermann [Wed, 19 Feb 2014 14:11:24 +0000 (15:11 +0100)]
spi: Fix a bug when only supplying MOSI (but not MISO).

10 years agorgb_led: Rename PD to rgb_led_spi.
Uwe Hermann [Wed, 19 Feb 2014 14:09:22 +0000 (15:09 +0100)]
rgb_led: Rename PD to rgb_led_spi.

There are a number of other RGB LED protocols (simple or more advanced
ones, and various ones not based on SPI), so use a more distinguishable
name for this PD.

10 years agorgb_led: Fix annotation end sample numbers.
Uwe Hermann [Wed, 19 Feb 2014 14:08:34 +0000 (15:08 +0100)]
rgb_led: Fix annotation end sample numbers.

10 years agorgb_led: Minor cosmetics, whitespace.
Uwe Hermann [Wed, 19 Feb 2014 14:07:39 +0000 (15:07 +0100)]
rgb_led: Minor cosmetics, whitespace.

10 years agoInitial RGB LED decoder
Matt Ranostay [Tue, 18 Feb 2014 06:08:41 +0000 (22:08 -0800)]
Initial RGB LED decoder

Signed-off-by: Matt Ranostay <redacted>
10 years agousb_packet: s/NACK/NAK/.
Uwe Hermann [Sun, 9 Feb 2014 18:26:59 +0000 (19:26 +0100)]
usb_packet: s/NACK/NAK/.

The USB spec spells this as "NAK".

10 years agousb_packet: Use annotation classes and annotation rows.
Uwe Hermann [Wed, 5 Feb 2014 16:31:36 +0000 (17:31 +0100)]
usb_packet: Use annotation classes and annotation rows.

10 years agosdcard_spi: Adapt for MSB-first bits from spi PD.
Uwe Hermann [Tue, 4 Feb 2014 23:44:52 +0000 (00:44 +0100)]
sdcard_spi: Adapt for MSB-first bits from spi PD.

10 years agospi: Use/store bits in MSB-first order.
Uwe Hermann [Tue, 4 Feb 2014 23:44:27 +0000 (00:44 +0100)]
spi: Use/store bits in MSB-first order.

This makes things a bit easier/clearer for most stacked PDs.

10 years agospi: Fix warnings about CS# being de-asserted.
Uwe Hermann [Tue, 4 Feb 2014 21:47:43 +0000 (22:47 +0100)]
spi: Fix warnings about CS# being de-asserted.

10 years agortc8564: Improve short annotations.
Uwe Hermann [Tue, 4 Feb 2014 16:07:08 +0000 (17:07 +0100)]
rtc8564: Improve short annotations.

10 years agortc8564: Provide per-bit annotations.
Uwe Hermann [Mon, 3 Feb 2014 21:33:37 +0000 (22:33 +0100)]
rtc8564: Provide per-bit annotations.

10 years agoi2c: Emit per-bit annotations/packets and define annotation rows.
Uwe Hermann [Mon, 3 Feb 2014 20:53:46 +0000 (21:53 +0100)]
i2c: Emit per-bit annotations/packets and define annotation rows.

10 years agomx25lxx05d: Define annotation rows.
Uwe Hermann [Mon, 3 Feb 2014 21:51:56 +0000 (22:51 +0100)]
mx25lxx05d: Define annotation rows.

10 years agomx25lxx05d: Use proper annotation classes.
Uwe Hermann [Mon, 3 Feb 2014 21:43:01 +0000 (22:43 +0100)]
mx25lxx05d: Use proper annotation classes.

10 years agoavr_isp: Fix 'Device' annotation sample numbers + row.
Uwe Hermann [Mon, 3 Feb 2014 15:31:08 +0000 (16:31 +0100)]
avr_isp: Fix 'Device' annotation sample numbers + row.

10 years agoavr_isp: Define annotation rows.
Uwe Hermann [Mon, 3 Feb 2014 15:17:22 +0000 (16:17 +0100)]
avr_isp: Define annotation rows.

10 years agoavr_isp: Use proper annotation classes.
Uwe Hermann [Mon, 3 Feb 2014 15:12:12 +0000 (16:12 +0100)]
avr_isp: Use proper annotation classes.

10 years agosdcard_spi: Merge command ID/name and description into same annotation.
Uwe Hermann [Mon, 3 Feb 2014 11:17:23 +0000 (12:17 +0100)]
sdcard_spi: Merge command ID/name and description into same annotation.

10 years agosdcard_spi: Improved command handling / display.
Uwe Hermann [Mon, 3 Feb 2014 08:35:30 +0000 (09:35 +0100)]
sdcard_spi: Improved command handling / display.

10 years agosdcard_spi: Fix handling of some warning annotations.
Uwe Hermann [Mon, 3 Feb 2014 01:01:05 +0000 (02:01 +0100)]
sdcard_spi: Fix handling of some warning annotations.

10 years agosdcard_spi: Fix incorrect R1 reply annotation endsample.
Uwe Hermann [Mon, 3 Feb 2014 00:39:40 +0000 (01:39 +0100)]
sdcard_spi: Fix incorrect R1 reply annotation endsample.

10 years agosdcard_spi: Fix incorrect 'Command index' value access.
Uwe Hermann [Mon, 3 Feb 2014 00:25:16 +0000 (01:25 +0100)]
sdcard_spi: Fix incorrect 'Command index' value access.

10 years agosdcard_spi: Use bit-exact annotations in handle_response_r1().
Uwe Hermann [Mon, 3 Feb 2014 00:24:47 +0000 (01:24 +0100)]
sdcard_spi: Use bit-exact annotations in handle_response_r1().

10 years agosdcard_spi: Use bit-exact annotations in handle_command_token().
Uwe Hermann [Sun, 2 Feb 2014 19:05:30 +0000 (20:05 +0100)]
sdcard_spi: Use bit-exact annotations in handle_command_token().

10 years agospi: Throw an error if neither MISO nor MOSI was supplied.
Uwe Hermann [Sun, 2 Feb 2014 20:10:23 +0000 (21:10 +0100)]
spi: Throw an error if neither MISO nor MOSI was supplied.

10 years agospi: Fix incorrect dataword endsample numbers.
Uwe Hermann [Sun, 2 Feb 2014 20:03:47 +0000 (21:03 +0100)]
spi: Fix incorrect dataword endsample numbers.

10 years agospi: Refactoring and cleanups.
Uwe Hermann [Sun, 2 Feb 2014 15:40:30 +0000 (16:40 +0100)]
spi: Refactoring and cleanups.

10 years agospi: Factor out reset_decoder_state().
Uwe Hermann [Sun, 2 Feb 2014 14:54:15 +0000 (15:54 +0100)]
spi: Factor out reset_decoder_state().

10 years agospi: Output per-bit annotations and OUTPUT_PYTHON data.
Uwe Hermann [Sun, 2 Feb 2014 14:27:10 +0000 (15:27 +0100)]
spi: Output per-bit annotations and OUTPUT_PYTHON data.

This can be used by higher-level PDs to decode per-bit items (not just
based on whole datawords).

10 years agosdcard_spi: Define annotation rows.
Uwe Hermann [Sun, 2 Feb 2014 13:24:29 +0000 (14:24 +0100)]
sdcard_spi: Define annotation rows.

This fixes parts of bug #309.

10 years agosdcard_spi: Use proper annotation classes.
Uwe Hermann [Sun, 2 Feb 2014 01:35:59 +0000 (02:35 +0100)]
sdcard_spi: Use proper annotation classes.

This fixes parts of bug #309.

10 years agosdcard_spi: Initial fixing round for correct samplenumbers.
Uwe Hermann [Sun, 2 Feb 2014 01:14:37 +0000 (02:14 +0100)]
sdcard_spi: Initial fixing round for correct samplenumbers.

This fixes parts of bug #309.

10 years agortc8564: Handle century bit.
Uwe Hermann [Sun, 2 Feb 2014 00:07:20 +0000 (01:07 +0100)]
rtc8564: Handle century bit.

10 years agortc8564: Provide short/long annotations.
Uwe Hermann [Sat, 1 Feb 2014 23:55:48 +0000 (00:55 +0100)]
rtc8564: Provide short/long annotations.

10 years agortc8564: Handle register 0x06 (weekday).
Uwe Hermann [Sat, 1 Feb 2014 23:40:23 +0000 (00:40 +0100)]
rtc8564: Handle register 0x06 (weekday).