]>
sigrok.org Git - libsigrokdecode.git/log
Uwe Hermann [Thu, 2 Apr 2015 20:48:03 +0000 (22:48 +0200)]
Slightly shorten a few PD descriptions.
Petteri Aimonen [Sat, 7 Mar 2015 14:14:19 +0000 (16:14 +0200)]
Add a decoder for stepper motor direction/speed signals.
Petteri Aimonen [Sat, 7 Mar 2015 13:55:18 +0000 (15:55 +0200)]
Fix a few decoding bugs with arm_etmv3.
Fixed:
- wrong address decoding for some branches
- error in annotation lists for exception entry/exit
- exception was being thrown for 0E0N p-header packets
- fixes to objdump output parsing, better function name & source code matching
New features:
- added decoding of IRQ names for branch exception info
- added support for -C option to objdump to decode C++ symbol names
- put branches on the "Exceptions" annotation row when they contain exception info.
Matt Porter [Tue, 31 Mar 2015 03:59:38 +0000 (23:59 -0400)]
pwm: add period annotation
Uwe Hermann [Sat, 7 Mar 2015 18:12:15 +0000 (19:12 +0100)]
Use g_malloc*() consistently, simplify error handling.
Use g_malloc*() for small allocations and assume they always
succeed. Simplify error handling in a few places accordingly.
Document the rules in the README file.
Uwe Hermann [Sat, 28 Feb 2015 13:18:56 +0000 (14:18 +0100)]
unit tests: Drop unneeded check_ filename prefix.
Uwe Hermann [Wed, 25 Mar 2015 08:41:23 +0000 (09:41 +0100)]
mx25lxx05d: Implement FAST READ command.
Petteri Aimonen [Mon, 23 Feb 2015 17:47:56 +0000 (19:47 +0200)]
Fix typo in swd decoder
Petteri Aimonen [Mon, 23 Feb 2015 17:49:06 +0000 (19:49 +0200)]
Add ARM TPIU/ITM/ETMv3 decoders
Uwe Hermann [Tue, 24 Feb 2015 20:46:04 +0000 (21:46 +0100)]
nrf24l01: Change 'xn297_extensions' option to 'chip'.
This allows for easily extending the PD to support other clones or
compatibles of the nRF24L01(+) chip as well.
Mike [Fri, 6 Feb 2015 16:42:32 +0000 (16:42 +0000)]
nrf24l01: Add option to support the XN297's extra registers
Petteri Aimonen [Sun, 15 Feb 2015 17:08:36 +0000 (19:08 +0200)]
Improve uart decoder sample positions at high data rates.
At 3 samples per bit, the uart decoder took the value at the last sample
instead of the middle one. Improve calculations so that sampling is more
accurate at odd number of samples per bit.
Uwe Hermann [Sat, 31 Jan 2015 22:39:02 +0000 (23:39 +0100)]
unit tests: Disable timeout for one of the test cases.
This one can take a while, thus disable the timeout.
Uwe Hermann [Sat, 24 Jan 2015 19:46:18 +0000 (20:46 +0100)]
README: Update build requirements list.
Uwe Hermann [Wed, 19 Nov 2014 17:57:56 +0000 (18:57 +0100)]
Add 24xx I2C EEPROM protocol decoder.
Uwe Hermann [Sun, 28 Dec 2014 13:33:50 +0000 (14:33 +0100)]
spi: Add binary output facilities for MISO/MOSI.
This fixes bug #424.
Bert Vermeulen [Tue, 16 Dec 2014 13:51:47 +0000 (14:51 +0100)]
edid: Add annotation rows.
Bert Vermeulen [Tue, 16 Dec 2014 13:51:19 +0000 (14:51 +0100)]
eded: Add all sections.
Uwe Hermann [Sun, 23 Nov 2014 22:06:45 +0000 (23:06 +0100)]
jitter: Simplify ascii-float binary out.
This also outputs one item of OUT_BINARY per jitter value (not one
item per ASCII character in the ASCII floating point number).
Uwe Hermann [Sun, 23 Nov 2014 21:55:54 +0000 (22:55 +0100)]
jitter: Rename "jitter" binary out to "ascii-float".
Sebastien Bourdelin [Thu, 13 Nov 2014 20:50:43 +0000 (15:50 -0500)]
jitter: add a binary output to report the raw jitter value.
Signed-off-by: Sebastien Bourdelin <redacted>
Sebastien Bourdelin [Wed, 12 Nov 2014 17:42:03 +0000 (12:42 -0500)]
jitter: fixes an error when a miss clock/signal is detected
Signed-off-by: Sebastien Bourdelin <redacted>
Uwe Hermann [Sun, 9 Nov 2014 19:29:31 +0000 (20:29 +0100)]
jitter: Factor out handle_clk() and handle_sig().
Sebastien Bourdelin [Thu, 23 Oct 2014 17:08:29 +0000 (13:08 -0400)]
Add a timing jitter decoder.
Signed-off-by: Sebastien Bourdelin <redacted>
Sebastien Bourdelin [Thu, 30 Oct 2014 03:31:43 +0000 (23:31 -0400)]
pwm: Fix and rework
Reworked in the algorithm:
- Fixed the polarity setting
- Taken in consideration the first transition
- Using the 'None' state instead of -1 and 0 value
- Simplify the algorithm and remove useless branches and variables
- Avoid re-calculating the same thing more than once
- Renamed a few variables for a better understanding
- Duty cycle precision changed to floating value
Otherwise:
- Added a meta OUTPUT for the duty cycle average
- Renamed the polarity option:
'polarity', 'active low/high' are well-understood terms.
- Added comments
Signed-off-by: Sebastien Bourdelin <redacted>
Jens Steinhauser [Sun, 19 Oct 2014 20:54:51 +0000 (22:54 +0200)]
spi: Use 'None' to signal the missing CS# pin.
Jens Steinhauser [Sun, 19 Oct 2014 19:29:07 +0000 (21:29 +0200)]
nrf24l01: Don't decode incomplete commands.
Wait for the CS# line to be inactive before decoding the commands.
Jens Steinhauser [Sun, 19 Oct 2014 18:39:38 +0000 (20:39 +0200)]
nrf24l01: Check for CS# pin and only throw exceptions once.
Jens Steinhauser [Sat, 18 Oct 2014 09:31:16 +0000 (11:31 +0200)]
spi: Tell stacked decoders about missing CS# signal.
This could previously be detected by the absence of a CS-CHANGE packet
before the first data packet, but it makes the stacked decoder simpler
if it is told directly.
Uwe Hermann [Thu, 16 Oct 2014 19:23:19 +0000 (21:23 +0200)]
Add a PWM decoder.
Uwe Hermann [Thu, 16 Oct 2014 15:58:28 +0000 (17:58 +0200)]
uart: Fix code comment.
Uwe Hermann [Thu, 16 Oct 2014 07:35:27 +0000 (09:35 +0200)]
uart: Emit databyte and bits list at the same time.
This will allow for much simpler code in stacked PDs.
Adapt stacked PDs to new API.
Uwe Hermann [Wed, 15 Oct 2014 13:23:22 +0000 (15:23 +0200)]
instance.c: Fix whitespace.
Uwe Hermann [Wed, 15 Oct 2014 13:22:48 +0000 (15:22 +0200)]
midi: Fix two incorrect sample numbers.
Uwe Hermann [Mon, 13 Oct 2014 15:05:07 +0000 (17:05 +0200)]
All PDs: More consistent names for ss/es variables.
Use self.ss/self.es, or if there's a need to differentiate
them a bit more, use self.ss_<suffix>/self.es_<suffix> consistently.
Also, drop some unused variables.
Uwe Hermann [Wed, 1 Oct 2014 17:01:39 +0000 (19:01 +0200)]
All PDs: Only import the 'Decoder' object.
Anything else in the pd.py files doesn't have to be imported/exposed.
Uwe Hermann [Sun, 12 Oct 2014 18:21:33 +0000 (20:21 +0200)]
am230x: Factor out handle_byte() to simplify state machine.
Uwe Hermann [Sun, 12 Oct 2014 17:02:00 +0000 (19:02 +0200)]
swd: Drop unnecessary debug code.
Angus Gratton [Sat, 12 Jul 2014 09:34:19 +0000 (19:34 +1000)]
swd: Add SWD protocol decoder for ARM Serial Wire Debug format.
Supports annotated output for analysing debug sessions, Python output
for potential stacked decoders looking at higher level debug
operations.
Uwe Hermann [Sun, 12 Oct 2014 15:31:40 +0000 (17:31 +0200)]
am230x: Minor documentation fix.
Uwe Hermann [Sun, 12 Oct 2014 13:13:50 +0000 (15:13 +0200)]
am230x: Use slightly more liberal timing values.
This seems to be required at least for some AM2301 and DHT11 sensors.
Uwe Hermann [Sun, 12 Oct 2014 12:58:25 +0000 (14:58 +0200)]
am230x: Change option to 'device' to allow for more devices.
Uwe Hermann [Sun, 12 Oct 2014 12:57:56 +0000 (14:57 +0200)]
am230x: Fix self.reset() method name.
Uwe Hermann [Sun, 12 Oct 2014 12:31:21 +0000 (14:31 +0200)]
am230x: Minor cosmetics.
Johannes Römer [Mon, 6 Oct 2014 21:30:22 +0000 (23:30 +0200)]
Add decoder for AM230x digital humidity and temperature sensors.
Uwe Hermann [Thu, 28 Aug 2014 20:48:39 +0000 (22:48 +0200)]
Replace ann_format with ann_class.
The naming has been changed to "annotation class" a while ago.
Uwe Hermann [Thu, 28 Aug 2014 19:38:39 +0000 (21:38 +0200)]
sdcard_spi/usb_packet: Drop unused variables.
David Barksdale [Mon, 15 Sep 2014 16:50:09 +0000 (11:50 -0500)]
uart: Implement signal inversion
Uwe Hermann [Wed, 10 Sep 2014 22:45:08 +0000 (00:45 +0200)]
Fix out-of-tree build of the unit tests.
Uwe Hermann [Wed, 10 Sep 2014 07:26:11 +0000 (09:26 +0200)]
Various PDs: Whitespace, cosmetics.
Uwe Hermann [Mon, 8 Sep 2014 19:44:03 +0000 (21:44 +0200)]
rfm12: Cosmetics.
Also, update author email address.
Uwe Hermann [Mon, 8 Sep 2014 09:55:07 +0000 (11:55 +0200)]
rfm12: Frequencies: Fix typo (915MHz), add 315MHz entry.
Uwe Hermann [Mon, 8 Sep 2014 09:54:25 +0000 (11:54 +0200)]
rfm12: Avoid using the Python 'range' keyword as variable.
Uwe Hermann [Mon, 8 Sep 2014 09:48:05 +0000 (11:48 +0200)]
rfm12: Drop debug printing.
Any errors during decoding should be handled by the PD state machine.
Sławek Piotrowski [Wed, 3 Sep 2014 22:32:14 +0000 (00:32 +0200)]
RFM12 decoder
Uwe Hermann [Mon, 1 Sep 2014 15:38:09 +0000 (17:38 +0200)]
PD tests moved into the sigrok-test repo.
Drop them from the libsigrokdecode repository.
Uwe Hermann [Fri, 29 Aug 2014 22:55:56 +0000 (00:55 +0200)]
spdif: Simplify get_pulse_type() a bit.
Uwe Hermann [Fri, 29 Aug 2014 22:16:33 +0000 (00:16 +0200)]
spdif: Use strings for decoder states.
Uwe Hermann [Fri, 29 Aug 2014 22:09:50 +0000 (00:09 +0200)]
spdif: Add another annotation helper.
Uwe Hermann [Fri, 29 Aug 2014 21:50:56 +0000 (23:50 +0200)]
spdif: Refactor and reduce nesting level.
Guenther Wenninger [Sat, 19 Apr 2014 00:20:42 +0000 (02:20 +0200)]
Add initial S/PDIF decoder.
Uwe Hermann [Sat, 16 Aug 2014 19:35:26 +0000 (21:35 +0200)]
ds1307: Warn about (and ignore) non-DS1307 traffic.
Uwe Hermann [Sat, 16 Aug 2014 19:19:05 +0000 (21:19 +0200)]
ds1307: Correctly handle address wrap-around.
Uwe Hermann [Sat, 16 Aug 2014 19:17:32 +0000 (21:17 +0200)]
ds1307: Refactoring and cleanups.
Uwe Hermann [Sat, 16 Aug 2014 19:03:00 +0000 (21:03 +0200)]
ds1307: Handle SRAM register accesses.
Uwe Hermann [Sat, 16 Aug 2014 18:45:56 +0000 (20:45 +0200)]
ds1307: Handle register 0x07 (control register).
Uwe Hermann [Sat, 16 Aug 2014 18:36:09 +0000 (20:36 +0200)]
ds1307: Emit per-bit annotations for registers.
Also, add more annotation classes (and annotation rows).
Uwe Hermann [Sat, 16 Aug 2014 16:43:51 +0000 (18:43 +0200)]
configure.ac: Use AM_CFLAGS instead of CFLAGS.
CFLAGS, CPPFLAGS, LDFLAGS and so on are so-called "user variables" and
are meant for users of the package to use/override. The package itself
should not set or modify them in any way. Instead, the "shadow variables"
such as AM_CFLAGS, AM_CPPFLAGS, AM_LDFLAGS and so on, can be modified by
the package.
Uwe Hermann [Sat, 16 Aug 2014 16:38:07 +0000 (18:38 +0200)]
tca6408a: Cosmetics.
alberink [Thu, 19 Jun 2014 15:18:52 +0000 (17:18 +0200)]
Add decoder for TCA6408A I2C I/O expanders.
Uwe Hermann [Thu, 14 Aug 2014 17:30:54 +0000 (19:30 +0200)]
tests: Factor out srdtest_setup() / srdtest_teardown().
Uwe Hermann [Thu, 14 Aug 2014 16:51:11 +0000 (18:51 +0200)]
Whitespace and consistency fixes.
Uwe Hermann [Mon, 11 Aug 2014 20:53:02 +0000 (22:53 +0200)]
pdtests: Check for SamplerateError in all PDs that emit it.
Uwe Hermann [Mon, 11 Aug 2014 20:53:35 +0000 (22:53 +0200)]
parallel: Enforce that at least one pin must be provided.
Uwe Hermann [Sun, 10 Aug 2014 07:22:29 +0000 (09:22 +0200)]
spi/nrf24l01/uart: Use ChannelError exception.
Rename the old MissingDataError to the clearer ChannelError. Also, add
ChannelError in the UART decoder.
Jens Steinhauser [Sun, 3 Aug 2014 21:30:42 +0000 (23:30 +0200)]
nrf24l01: prettify annotation output
Uwe Hermann [Wed, 30 Jul 2014 22:44:20 +0000 (00:44 +0200)]
tests/pdtest: Small fix to make it work with Python 3.2.
Python 3.2 doesn't yet have the copy() method for lists:
AttributeError: 'list' object has no attribute 'copy'
Uwe Hermann [Wed, 30 Jul 2014 22:02:22 +0000 (00:02 +0200)]
tests/check_session.c: Fix compiler warning.
This fixes 'warning: "_POSIX_C_SOURCE" redefined' with some Python
versions.
Uwe Hermann [Tue, 22 Jul 2014 22:00:33 +0000 (00:00 +0200)]
Drop references to obsolete sigrok-commits mailing list.
Uwe Hermann [Sun, 20 Jul 2014 11:16:30 +0000 (13:16 +0200)]
runtc: Update to the new libsigrok session API.
(also fixes the build for libsigrokdecode)
Uwe Hermann [Sun, 20 Jul 2014 09:31:27 +0000 (11:31 +0200)]
Fix incorrect doxygen comment for srd_decoder_list().
This fixes bug #378.
Uwe Hermann [Tue, 15 Jul 2014 20:49:43 +0000 (22:49 +0200)]
All PDs: Minor whitespace and consistency fixes.
- No newlines at the end of files.
- No trailing ';' characters.
- Comparison with None: Use 'is None' or 'is not None'.
- Comparison with True/False: Use 'if cond:' or 'if not cond:'.
- Various minor whitespace fixes.
Uwe Hermann [Wed, 9 Jul 2014 15:31:32 +0000 (17:31 +0200)]
uart/i2cfilter: Don't check multiple-choice options.
For options which only have a limited set of valid values, we don't need
to check (in the PD) whether a valid value was supplied, since the backend
can do that for us.
Uwe Hermann [Tue, 8 Jul 2014 19:36:53 +0000 (21:36 +0200)]
Various PDs: Minor consistency fixes.
(Consistently use single-quotes for all Python strings everywhere)
Uwe Hermann [Tue, 8 Jul 2014 19:32:32 +0000 (21:32 +0200)]
Various PDs: Throw SamplerateError instead of Exception.
Also, use the "if not self.samplerate" form, which catches both the case
where self.samplerate is None, as well as the case where it is 0.
Uwe Hermann [Tue, 8 Jul 2014 19:21:03 +0000 (21:21 +0200)]
All PDs: Drop unneeded exceptions.
In all current PDs it is not necessary to raise an exception upon
invalid states (of the PD's state machine), since we can guarantee that
no such invalid state can ever be reached in these PDs.
Jens Steinhauser [Tue, 8 Jul 2014 20:15:30 +0000 (22:15 +0200)]
Add nRF24L01(+) protocol decoder.
Jens Steinhauser [Tue, 8 Jul 2014 15:48:56 +0000 (17:48 +0200)]
spi: Fix order of MISO/MOSI data items.
Bert Vermeulen [Tue, 8 Jul 2014 19:43:58 +0000 (21:43 +0200)]
pdtest: Use new exception output.
Bert Vermeulen [Tue, 8 Jul 2014 19:43:33 +0000 (21:43 +0200)]
Make exception output more predictable.
Marcus Comstedt [Mon, 30 Jun 2014 22:07:40 +0000 (00:07 +0200)]
Remove dependency on Python.h from public API header
This prevents Python.h from being included into client code, where
it can mess things up by e.g. redefining _POSIX_C_SOURCE.
Marcus Comstedt [Sun, 29 Jun 2014 09:38:50 +0000 (11:38 +0200)]
runtc: Fix incorrect include directive
runtc.c used to try to include "../config.h". This only works when
building in the source tree, otherwise there is no config.h in the
parent directory of runtc.c. However, the explicit path is
unnecessary since the build directory (whether the same as the source
directory or not) will always be added to the include path.
Marcus Comstedt [Sun, 6 Jul 2014 23:36:22 +0000 (01:36 +0200)]
srd_decoder_load_all_path: Support zipimport paths
srd_decoder_load() works perfectly with decoders stored inside zip files.
However, srd_decoder_load_all{_path,}() did not, because it assumed that
normal directory listings can be used to enumerate decoders, which is not
the case for zipped decoders. Fix this by providing a fallback based on
the zipimporter Python class.
Bert Vermeulen [Fri, 27 Jun 2014 16:45:46 +0000 (18:45 +0200)]
spi: Add coverage tests for all exceptions.
Bert Vermeulen [Fri, 27 Jun 2014 16:45:01 +0000 (18:45 +0200)]
spi: Add coverage tests for all mosi/miso and lsb/msb combinations.
Bert Vermeulen [Fri, 27 Jun 2014 16:37:58 +0000 (18:37 +0200)]
spi: Refactor for more coverage, and remove dead code.
Bert Vermeulen [Thu, 26 Jun 2014 17:56:02 +0000 (19:56 +0200)]
runtc: PD option value is a GVariant, not string.
This is still broken: it needs to properly check the expected type of
the option, not just blindly assume G_VARIANT_TYPE_STRING.
Bert Vermeulen [Tue, 24 Jun 2014 16:17:22 +0000 (18:17 +0200)]
pdtest: Generate report regardless of verbose mode.
Bert Vermeulen [Tue, 24 Jun 2014 14:04:45 +0000 (16:04 +0200)]
edid: Add another test, covering more code in the PD.
Bert Vermeulen [Tue, 24 Jun 2014 13:49:05 +0000 (15:49 +0200)]
pdtest: Generate a report listing missed lines across the whole PD.