]> sigrok.org Git - libsigrokdecode.git/log
libsigrokdecode.git
12 years agosrd: remove obsolete DDC-only I2C filter
Bert Vermeulen [Tue, 31 Jan 2012 17:07:59 +0000 (18:07 +0100)]
srd: remove obsolete DDC-only I2C filter

12 years agosrd: add generic I2C filter PD
Bert Vermeulen [Tue, 31 Jan 2012 17:05:11 +0000 (18:05 +0100)]
srd: add generic I2C filter PD

12 years agosrd: Add missing <inttypes.h> #include (for PRIu64).
Uwe Hermann [Mon, 30 Jan 2012 19:17:15 +0000 (20:17 +0100)]
srd: Add missing <inttypes.h> #include (for PRIu64).

12 years agoedid: properly deal with leading I2C crud + small fixes
Bert Vermeulen [Mon, 30 Jan 2012 23:48:07 +0000 (00:48 +0100)]
edid: properly deal with leading I2C crud + small fixes

12 years agosrd: removed stray malloc()
Bert Vermeulen [Mon, 30 Jan 2012 00:23:35 +0000 (01:23 +0100)]
srd: removed stray malloc()

12 years agosrd: clear objects after final decref, so it doesn't happen twice
Bert Vermeulen [Mon, 30 Jan 2012 00:22:27 +0000 (01:22 +0100)]
srd: clear objects after final decref, so it doesn't happen twice

12 years agoedid: move PD docstring to __init__.py
Bert Vermeulen [Sun, 29 Jan 2012 19:13:43 +0000 (20:13 +0100)]
edid: move PD docstring to __init__.py

also minor code cleanups

12 years agosrd: add EDID 1.3 decoder
Bert Vermeulen [Sun, 29 Jan 2012 17:43:45 +0000 (18:43 +0100)]
srd: add EDID 1.3 decoder

12 years agoddc: add protocol output
Bert Vermeulen [Sun, 29 Jan 2012 17:42:10 +0000 (18:42 +0100)]
ddc: add protocol output

12 years agoUpdate/enforce/document our build requirements.
Uwe Hermann [Sat, 28 Jan 2012 20:26:56 +0000 (21:26 +0100)]
Update/enforce/document our build requirements.

12 years agosrd: Drop unneeded check, g_free() handles NULL fine.
Uwe Hermann [Sat, 28 Jan 2012 20:26:26 +0000 (21:26 +0100)]
srd: Drop unneeded check, g_free() handles NULL fine.

12 years agosrd: PDs: Cleanups, simplifications, small fixes.
Uwe Hermann [Sat, 28 Jan 2012 18:08:13 +0000 (19:08 +0100)]
srd: PDs: Cleanups, simplifications, small fixes.

12 years agosrd: mlx90614: Show more exact temperature.
Uwe Hermann [Fri, 27 Jan 2012 17:47:27 +0000 (18:47 +0100)]
srd: mlx90614: Show more exact temperature.

12 years agosrd: Use PRIu64 for uint64_t values.
Uwe Hermann [Fri, 27 Jan 2012 17:38:16 +0000 (18:38 +0100)]
srd: Use PRIu64 for uint64_t values.

Using %d seems to silently work on Linux, but leads to a segfault on
Windows/MinGW.

12 years agosrd: add more debugging around probe mapping
Bert Vermeulen [Fri, 27 Jan 2012 07:21:58 +0000 (08:21 +0100)]
srd: add more debugging around probe mapping

12 years agosrd: use format string where one is expected
Bert Vermeulen [Fri, 27 Jan 2012 00:14:01 +0000 (01:14 +0100)]
srd: use format string where one is expected

12 years agosrd: Melexis MLX90614 Infrared Thermometer decoder.
Uwe Hermann [Thu, 26 Jan 2012 22:48:11 +0000 (23:48 +0100)]
srd: Melexis MLX90614 Infrared Thermometer decoder.

12 years agosrd: Remove manual log domain ("srd: ") prefixes.
Uwe Hermann [Thu, 26 Jan 2012 00:15:10 +0000 (01:15 +0100)]
srd: Remove manual log domain ("srd: ") prefixes.

12 years agosrd: log: Support for setting a log domain (prefix).
Uwe Hermann [Wed, 25 Jan 2012 10:00:04 +0000 (11:00 +0100)]
srd: log: Support for setting a log domain (prefix).

12 years agosrd: UART: s/parity/parity_type/.
Uwe Hermann [Wed, 25 Jan 2012 21:25:25 +0000 (22:25 +0100)]
srd: UART: s/parity/parity_type/.

12 years agosrd: All PDs: Various fixes, cosmetics.
Uwe Hermann [Wed, 25 Jan 2012 21:11:38 +0000 (22:11 +0100)]
srd: All PDs: Various fixes, cosmetics.

 - List all API methods and metadata variables in all PDs to make things
   easier and more consistent for new PD writers.

 - Fix probe assignment in a few PDs.

 - Raise exceptions upon invalid states of the PD state machines (bug).

12 years agosrd: mx25lxx05d: Cleanups, add optional probes.
Uwe Hermann [Wed, 25 Jan 2012 18:02:11 +0000 (19:02 +0100)]
srd: mx25lxx05d: Cleanups, add optional probes.

12 years agosrd: Support for registering a custom log handler.
Uwe Hermann [Wed, 25 Jan 2012 01:52:27 +0000 (02:52 +0100)]
srd: Support for registering a custom log handler.

12 years agosrd: Add Epson RTC-8564 JE/NB protocol decoder.
Uwe Hermann [Wed, 25 Jan 2012 00:49:32 +0000 (01:49 +0100)]
srd: Add Epson RTC-8564 JE/NB protocol decoder.

12 years agosrd: properly recurse into PD instances when looking for one.
Bert Vermeulen [Wed, 25 Jan 2012 00:49:35 +0000 (01:49 +0100)]
srd: properly recurse into PD instances when looking for one.

This fixes the confusion between parallel and linear stacks.

12 years agosr: better error reporting
Bert Vermeulen [Tue, 24 Jan 2012 02:51:02 +0000 (03:51 +0100)]
sr: better error reporting

12 years agosrd: change struct srd_pd_output to have a path to the DI, not the decoder.
Bert Vermeulen [Tue, 24 Jan 2012 01:02:03 +0000 (02:02 +0100)]
srd: change struct srd_pd_output to have a path to the DI, not the decoder.

12 years agosrd: Prepend (not append) PD dirs to sys.path.
Uwe Hermann [Mon, 23 Jan 2012 18:58:06 +0000 (19:58 +0100)]
srd: Prepend (not append) PD dirs to sys.path.

12 years agosrd: deal with invalid probe specifications better
Bert Vermeulen [Mon, 23 Jan 2012 18:34:23 +0000 (19:34 +0100)]
srd: deal with invalid probe specifications better

12 years agosrd: i2cdemux: add missing Makefile.am
Bert Vermeulen [Mon, 23 Jan 2012 04:03:25 +0000 (05:03 +0100)]
srd: i2cdemux: add missing Makefile.am

12 years agosrd: use new exception system everywhere
Bert Vermeulen [Mon, 23 Jan 2012 03:51:33 +0000 (04:51 +0100)]
srd: use new exception system everywhere

12 years agosrd: add python exception catcher, which routes to srd_err() and srd_dbg()
Bert Vermeulen [Mon, 23 Jan 2012 01:20:51 +0000 (02:20 +0100)]
srd: add python exception catcher, which routes to srd_err() and srd_dbg()

12 years agosrd: minor code cleanup
Bert Vermeulen [Sun, 22 Jan 2012 02:29:22 +0000 (03:29 +0100)]
srd: minor code cleanup

12 years agosrd: Add generic i2cdemux protocol decoder.
Uwe Hermann [Sun, 22 Jan 2012 13:28:48 +0000 (14:28 +0100)]
srd: Add generic i2cdemux protocol decoder.

12 years agosrd: make all debugging and error reporting uniform
Bert Vermeulen [Sun, 22 Jan 2012 01:51:49 +0000 (02:51 +0100)]
srd: make all debugging and error reporting uniform

12 years agosrd: use more appropriate calls for integer constants
Bert Vermeulen [Sat, 21 Jan 2012 23:53:24 +0000 (00:53 +0100)]
srd: use more appropriate calls for integer constants

12 years agosrd: better check for PDs with no defined probes
Bert Vermeulen [Sat, 21 Jan 2012 18:45:04 +0000 (19:45 +0100)]
srd: better check for PDs with no defined probes

12 years agosrd: fix probe mapping
Bert Vermeulen [Sat, 21 Jan 2012 14:04:47 +0000 (15:04 +0100)]
srd: fix probe mapping

12 years agosrd: support for mapping probes
Bert Vermeulen [Fri, 20 Jan 2012 21:25:42 +0000 (22:25 +0100)]
srd: support for mapping probes

12 years agosrd: decoder class structure check belongs in module loader
Bert Vermeulen [Fri, 20 Jan 2012 21:23:27 +0000 (22:23 +0100)]
srd: decoder class structure check belongs in module loader

12 years agoadd py_dictitem_as_str(), more checking in py_attr_as_str()
Bert Vermeulen [Fri, 20 Jan 2012 21:08:22 +0000 (22:08 +0100)]
add py_dictitem_as_str(), more checking in py_attr_as_str()

12 years agosrd: UART: Update to new options API.
Uwe Hermann [Fri, 20 Jan 2012 00:16:47 +0000 (01:16 +0100)]
srd: UART: Update to new options API.

12 years agosrd: SPI: Convert to new options API.
Uwe Hermann [Thu, 19 Jan 2012 23:40:47 +0000 (00:40 +0100)]
srd: SPI: Convert to new options API.

12 years agosrd: fix decoder loading, and back to using glib dirent wrappers
Bert Vermeulen [Thu, 19 Jan 2012 16:12:02 +0000 (17:12 +0100)]
srd: fix decoder loading, and back to using glib dirent wrappers

12 years agosrd: don't check directory structure a PD is in, but what it implements.
Bert Vermeulen [Thu, 19 Jan 2012 14:05:38 +0000 (15:05 +0100)]
srd: don't check directory structure a PD is in, but what it implements.

Also added extra check to require start() and decode() methods in the
PD's Decoder class.

12 years agosrd: simplified error checking, in preparation for more of it
Bert Vermeulen [Thu, 19 Jan 2012 08:59:00 +0000 (09:59 +0100)]
srd: simplified error checking, in preparation for more of it

12 years agoaccept only supported types in decoder class default option values
Bert Vermeulen [Wed, 18 Jan 2012 23:00:02 +0000 (00:00 +0100)]
accept only supported types in decoder class default option values

12 years agosrd: Windows/MinGW Python path format fixes.
Uwe Hermann [Wed, 18 Jan 2012 23:21:00 +0000 (00:21 +0100)]
srd: Windows/MinGW Python path format fixes.

On Windows/MinGW, Python's sys.path needs entries of the form
'C:\\foo\\bar' instead of '/foo/bar'.

12 years agosrd: always set default options, regardless of overrides
Bert Vermeulen [Wed, 18 Jan 2012 21:59:14 +0000 (22:59 +0100)]
srd: always set default options, regardless of overrides

12 years agoI2C: no need to copy default option values over from the class
Bert Vermeulen [Tue, 17 Jan 2012 02:39:28 +0000 (03:39 +0100)]
I2C: no need to copy default option values over from the class
definition anymore: it happens automagically.

12 years agoSRD: support setting per-PD options
Bert Vermeulen [Tue, 17 Jan 2012 02:37:34 +0000 (03:37 +0100)]
SRD: support setting per-PD options

All decoder class options are automatically copied to a newly created
instance with their default value, which can be overridden with the
GHashTable passed to srd_instance_new().

Currently, only strings and integers are supported as option value
types. The type is set by the default value in the decoder class, and
enforced when overriding them. Integers can be specified in any
format python allows: 10, 0x0a and so on.

12 years agosrd: don't decref an object we don't own
Bert Vermeulen [Mon, 16 Jan 2012 04:01:05 +0000 (05:01 +0100)]
srd: don't decref an object we don't own

12 years agoI2C: properly use sample numbers in proto/annotation output
Bert Vermeulen [Sun, 15 Jan 2012 22:21:22 +0000 (23:21 +0100)]
I2C: properly use sample numbers in proto/annotation output

12 years agosrd: PDs now get a logic feed with sample numbers, not time/duration
Bert Vermeulen [Sun, 15 Jan 2012 22:20:39 +0000 (23:20 +0100)]
srd: PDs now get a logic feed with sample numbers, not time/duration

12 years agosrd: Add 'api_version = 1' to all PDs.
Uwe Hermann [Sun, 15 Jan 2012 19:41:46 +0000 (20:41 +0100)]
srd: Add 'api_version = 1' to all PDs.

12 years agosrd: Each PD now has its own subdirectory.
Uwe Hermann [Sun, 15 Jan 2012 14:36:01 +0000 (15:36 +0100)]
srd: Each PD now has its own subdirectory.

12 years agomove sigrokdecode.Decoder type to its own source file
Bert Vermeulen [Sun, 15 Jan 2012 13:44:40 +0000 (14:44 +0100)]
move sigrokdecode.Decoder type to its own source file

12 years agosrd: Decoders: Remove author/email fields.
Uwe Hermann [Sun, 15 Jan 2012 12:16:48 +0000 (13:16 +0100)]
srd: Decoders: Remove author/email fields.

We decided it's too much hassle to deal with this in GUIs (multiple
fields, multiple name and email addresses and copyright years etc. etc)
with too little gain. The authors/emails etc. are already in the .py file's
license header and in git anyway.

12 years agosrd: Bring back small stuff lost in the merge.
Uwe Hermann [Sun, 15 Jan 2012 11:50:07 +0000 (12:50 +0100)]
srd: Bring back small stuff lost in the merge.

Also, use ''' for docstrings to be consistent with the rest.

12 years agosrd: rename srd_usb to what it thinks it's called
Bert Vermeulen [Sun, 15 Jan 2012 03:31:23 +0000 (04:31 +0100)]
srd: rename srd_usb to what it thinks it's called

12 years agosrd: rename srd_usb to what it thinks it's called
Bert Vermeulen [Sun, 15 Jan 2012 03:31:23 +0000 (04:31 +0100)]
srd: rename srd_usb to what it thinks it's called

12 years agosrd: handle missing module docstrings better
Bert Vermeulen [Sun, 15 Jan 2012 03:24:15 +0000 (04:24 +0100)]
srd: handle missing module docstrings better

12 years agoCLI: when invoked with only -a <pd>, the PD's documentation is shown.
Bert Vermeulen [Sun, 15 Jan 2012 03:02:21 +0000 (04:02 +0100)]
CLI: when invoked with only -a <pd>, the PD's documentation is shown.

12 years agosrd: clean up module loading/unloading, and the decoder struct
Bert Vermeulen [Sun, 15 Jan 2012 02:58:27 +0000 (03:58 +0100)]
srd: clean up module loading/unloading, and the decoder struct

PDs are now checked for a proper Decoder object, with at least the
required attributes.

The author, long_desc and func attributes in the decoder object are gone.

12 years agomove srd_Decoder to sigrokdecode.h, and rename it in line with srd_logic
Bert Vermeulen [Sun, 15 Jan 2012 02:43:01 +0000 (03:43 +0100)]
move srd_Decoder to sigrokdecode.h, and rename it in line with srd_logic

12 years agosrd: Add ebr30a_i2c_demux PD (I2C in, 3 x I2C out).
Uwe Hermann [Sun, 15 Jan 2012 01:17:10 +0000 (02:17 +0100)]
srd: Add ebr30a_i2c_demux PD (I2C in, 3 x I2C out).

12 years agosrd: I2C: Small fixup.
Uwe Hermann [Sun, 15 Jan 2012 01:01:37 +0000 (02:01 +0100)]
srd: I2C: Small fixup.

12 years agosrd: pan1321: Support replies from device.
Uwe Hermann [Sun, 15 Jan 2012 00:22:19 +0000 (01:22 +0100)]
srd: pan1321: Support replies from device.

12 years agosrd: pan1321: Update to new UART format.
Uwe Hermann [Sat, 14 Jan 2012 22:17:40 +0000 (23:17 +0100)]
srd: pan1321: Update to new UART format.

12 years agosrd: UART: Handle both RX and TX pins.
Uwe Hermann [Sat, 14 Jan 2012 21:51:07 +0000 (22:51 +0100)]
srd: UART: Handle both RX and TX pins.

Also, experiment with readability improvements a bit.

12 years agosrd: Separate author/email fields for now.
Uwe Hermann [Sat, 14 Jan 2012 20:44:01 +0000 (21:44 +0100)]
srd: Separate author/email fields for now.

This will be needed in GUIs to easily handle/display the values without
the need for additional parsing.

12 years agoImprove 'longname' PD strings, use in 'sigrok-cli -V'.
Uwe Hermann [Sat, 14 Jan 2012 20:41:41 +0000 (21:41 +0100)]
Improve 'longname' PD strings, use in 'sigrok-cli -V'.

12 years agosrd: I2C: No need for underscores in string cmds.
Uwe Hermann [Sat, 14 Jan 2012 20:34:06 +0000 (21:34 +0100)]
srd: I2C: No need for underscores in string cmds.

12 years agosrd: Consistent PD option defaults handling.
Uwe Hermann [Sat, 14 Jan 2012 19:48:55 +0000 (20:48 +0100)]
srd: Consistent PD option defaults handling.

12 years agosrd: SPI: Add support for different CS# polarity.
Uwe Hermann [Sat, 14 Jan 2012 17:40:43 +0000 (18:40 +0100)]
srd: SPI: Add support for different CS# polarity.

12 years agosrd: SPI: Output warning annotation if CS# de-asserted.
Uwe Hermann [Sat, 14 Jan 2012 17:34:07 +0000 (18:34 +0100)]
srd: SPI: Output warning annotation if CS# de-asserted.

12 years agosrd: SPI: Support sampling on rising/falling CLK edge.
Uwe Hermann [Sat, 14 Jan 2012 17:27:54 +0000 (18:27 +0100)]
srd: SPI: Support sampling on rising/falling CLK edge.

12 years agosrd: SPI: Add support for arbitrary word sizes.
Uwe Hermann [Sat, 14 Jan 2012 17:09:11 +0000 (18:09 +0100)]
srd: SPI: Add support for arbitrary word sizes.

12 years agosrd: SPI: Add support for bit order option.
Uwe Hermann [Sat, 14 Jan 2012 17:08:00 +0000 (18:08 +0100)]
srd: SPI: Add support for bit order option.

12 years agosrd: SPI: Set default PD options.
Uwe Hermann [Sat, 14 Jan 2012 17:02:33 +0000 (18:02 +0100)]
srd: SPI: Set default PD options.

12 years agosrd: SPI: Fix typo.
Uwe Hermann [Sat, 14 Jan 2012 15:19:46 +0000 (16:19 +0100)]
srd: SPI: Fix typo.

12 years agosrd: SPI: Sketch of the PD options (unused).
Uwe Hermann [Sat, 14 Jan 2012 15:18:29 +0000 (16:18 +0100)]
srd: SPI: Sketch of the PD options (unused).

12 years agosrd: mx25lxx05d: Update to new API, make it work.
Uwe Hermann [Sat, 14 Jan 2012 14:57:27 +0000 (15:57 +0100)]
srd: mx25lxx05d: Update to new API, make it work.

This works (partially) with output from the 'spi' protocol decoder.

12 years agosrd: SPI: Handle both directions, output proto data.
Uwe Hermann [Sat, 14 Jan 2012 14:56:44 +0000 (15:56 +0100)]
srd: SPI: Handle both directions, output proto data.

12 years agosrd: SPI: probes[]: Add missing MISO and CS lines.
Uwe Hermann [Sat, 14 Jan 2012 14:25:28 +0000 (15:25 +0100)]
srd: SPI: probes[]: Add missing MISO and CS lines.

12 years agosrd: SPI: s/sdata/mosi/.
Uwe Hermann [Sat, 14 Jan 2012 14:21:03 +0000 (15:21 +0100)]
srd: SPI: s/sdata/mosi/.

12 years agosrd: SPI: s/rxdata/mosidata/.
Uwe Hermann [Sat, 14 Jan 2012 14:18:41 +0000 (15:18 +0100)]
srd: SPI: s/rxdata/mosidata/.

12 years agosrd: SPI: s/rxcount/bitcount/.
Uwe Hermann [Sat, 14 Jan 2012 14:17:33 +0000 (15:17 +0100)]
srd: SPI: s/rxcount/bitcount/.

12 years agosrd: Fix/update SPI protocol decoder.
Uwe Hermann [Sat, 14 Jan 2012 01:22:46 +0000 (02:22 +0100)]
srd: Fix/update SPI protocol decoder.

12 years agosrd: Fix transitioncounter protocol decoder.
Uwe Hermann [Sat, 14 Jan 2012 00:48:20 +0000 (01:48 +0100)]
srd: Fix transitioncounter protocol decoder.

12 years agosrd: USB: Move pids dict to global level.
Uwe Hermann [Sat, 14 Jan 2012 00:32:47 +0000 (01:32 +0100)]
srd: USB: Move pids dict to global level.

12 years agosrd: USB: Update decoder to new API, small fixes.
Uwe Hermann [Sat, 14 Jan 2012 00:29:52 +0000 (01:29 +0100)]
srd: USB: Update decoder to new API, small fixes.

12 years agosrd: Add initial DCF77 protocol decoder.
Uwe Hermann [Fri, 13 Jan 2012 17:49:09 +0000 (18:49 +0100)]
srd: Add initial DCF77 protocol decoder.

Works quite well already, but not all details of the protocol are
implemented, yet.

12 years agosrd: nunchuk: Partial update to new stacking API.
Uwe Hermann [Thu, 12 Jan 2012 22:20:41 +0000 (23:20 +0100)]
srd: nunchuk: Partial update to new stacking API.

This is unfinished and untested, and probably does not work at all, yet.

12 years agosrd: decoders: Rename obsolete timeoffset/duration.
Uwe Hermann [Thu, 12 Jan 2012 21:49:41 +0000 (22:49 +0100)]
srd: decoders: Rename obsolete timeoffset/duration.

12 years agosrd: decoders: Metadata consistency fixes/updates.
Uwe Hermann [Thu, 12 Jan 2012 21:16:26 +0000 (22:16 +0100)]
srd: decoders: Metadata consistency fixes/updates.

12 years agosrd: i2c: Drop unneeded %s usage.
Uwe Hermann [Thu, 12 Jan 2012 21:07:50 +0000 (22:07 +0100)]
srd: i2c: Drop unneeded %s usage.

12 years agosrd: i2c: Use short-form if-else Python idiom.
Uwe Hermann [Thu, 12 Jan 2012 20:57:51 +0000 (21:57 +0100)]
srd: i2c: Use short-form if-else Python idiom.

12 years agosrd: Decoders: Cosmetics and whitespace fixes.
Uwe Hermann [Thu, 12 Jan 2012 20:43:19 +0000 (21:43 +0100)]
srd: Decoders: Cosmetics and whitespace fixes.

 - Remove superfluous whitespace.

 - Add URLs and more info.

 - Consistently use ' instead of " for Python strings.

12 years agosrd: Drop duplicate SRD_ prefix from ANN/PROTO.
Uwe Hermann [Tue, 10 Jan 2012 23:52:54 +0000 (00:52 +0100)]
srd: Drop duplicate SRD_ prefix from ANN/PROTO.

Using srd.SRD_OUTPUT_ANN is unneeded, srd.OUTPUT_ANN is better/shorter.