summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-12-06valgrind: free channelsKarl Palsson
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-12-06valgrind: safely iterate listsKarl Palsson
Old versions triggered valgrind errors as the API method to remove an entry modifies the list that was being iterated. Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-11-07spiflash: Major refactoring and annotation improvements.Uwe Hermann
2016-11-07spiflash: Use OrderedDict for cmds, more readable annotation indices.Uwe Hermann
2016-11-07spiflash: Initial RDSR2 implementation (incomplete).Uwe Hermann
This is not entirely correct yet, will be fixed later.
2016-11-07spiflash: Implement WRSR command.Uwe Hermann
2016-11-07spiflash: Add FIDELIX FM25Q32 metadata.Uwe Hermann
2016-11-06spiflash: Remove hardcoded Macronix references.Uwe Hermann
2016-11-06spiflash: Implement Release Power-down / Device ID (0xAB) command.Uwe Hermann
This fixes bug #845.
2016-11-04ps2: Add more detailed per-bit annotations.Uwe Hermann
2016-11-04ps2: Neither the clock nor the data pin is optional.Uwe Hermann
2016-11-04Add initial version of PS/2 decoderDaniel Schulte
2016-11-02Print error messages when decoders fail load time checksGerhard Sittig
Several checks get applied when loading externally provided protocol decoders. Print error messages when checks fail, so that developers can better resolve issues. The sequence of tests terminates upon the first failed check, while decoders may suffer from several issues at the same time. This is considered acceptable, as it reduces the commit's size and the code's complexity. This commit only adds error messages, and does not change logic/behaviour. Failed API version checks result in two messages: One specific message which reflects the decoder's version and what's supported by the loader, and a generic message that the API version check has failed. This is done to simplify the logic of a rarely used error code path. This commit addresses libsigrokdecode Bug 704, and allows to identify decoders from parallel installations of differing version. This fixes bug #704. Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
2016-11-02.gitattributes: introduce git attributes for improved Python diffsGerhard Sittig
In the absence of respective instructions, git will use a rather generic approach to generate diffs and patches. Introduce a git attributes file which results in improved output for Python sources (i.e. all protocol decoders). Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
2016-10-23spi: Fix binary output for wordsizes > 8.Uwe Hermann
For wordsizes > 8, multiple bytes are used (big-endian). This fixes bug #686.
2016-10-23uart: Default to hex format datavalue annotations.Uwe Hermann
This is in almost all cases what the user will want, only rarely ASCII (the old default) will be the more natural fit.
2016-10-23uart: Emit 2 bytes for 9-bit UART binary output.Uwe Hermann
For 5..8 data bits the binary output will be 1 byte, for 9 data bits it will be 2 bytes (big-endian). This fixes bug #708.
2016-10-19uart: skip frames with invalid start bitsGerhard Sittig
When the start bit is not low at its sample point, then stop trying to interpret the remaining frame -- it's already known to be invalid, anyway. Wait for the next start bit instead, assuming that either the falling edge which started the inspection of the UART frame and its start bit was a spurious glitch or that the captured signal does not communicate at the decoder's configured bitrate. Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
2016-10-19uart: rework text formatting of communicated data values, plus nitsGerhard Sittig
Factor out the code which generates a textual representation for the numeric values that were communicated via UART bit patterns. Make the width of the output text depend on the number of bits in the UART frame (five to nine) instead of assuming bytes of exactly eight bits. Fix other minor issues while we are here: Nine bits result in a number range of 0 to 511 (not 512). ASCII codes 30 and 31 are non-printables. The previous implementation skipped a significant leading digit in the octal representation. Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
2016-10-19uart: minor nit, rename the "databyte" variableGerhard Sittig
Given the generic nature of UART communication and the supported range for the data width, "byte" may be a misleading name for the numeric value that gets communicated in five to nine data bits. Rename the "databyte" variable to "datavalue". Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
2016-10-12Add an initial GPIB decoder.Rudolf Reuter
2016-09-24midi: Add missing copyright lines.Uwe Hermann
2016-09-24midi: Random cosmetic cleanups.Uwe Hermann
2016-09-24midi: Simplify some boolean tests.Uwe Hermann
2016-09-24midi: Use "is" or "is not" with None.Uwe Hermann
2016-09-24usb_request: Use "is" or "is not" with None.Uwe Hermann
2016-09-24midi: Add support for complex MIDI message formats (inter-related).Chris
- Handle "Running Status" where status byte can be omitted - SysEx message can be terminated by status byte, not just EOX - Handle SysReal messages that interrupt in-progress message transmission - Identify and print garbage / truncated data - Add 2 new annotations: text-sysreal-verbose and text-error
2016-09-24midi: chromatic_notes in list.py was off by 1 octaveChris
(ex: note 60 is middle C which is C4, not C3)
2016-09-24uart: Fix a bug in the output for stacked PDs.Uwe Hermann
The UART bit information was not transmitted correctly to stacked PDs if there was an overlap between RX and TX bytes in the data.
2016-09-04midi: Some annotation consistency changes.Uwe Hermann
2016-09-04Updates each annotation with multiple strings ranging from long, medium, and ↵Chris
short lengths
2016-08-26usb_power_delivery: Drop problematic exception in us2samples().Uwe Hermann
This causes an issue when running the sigrok-test test-cases, so drop it for now (the same check already exists in decode()). This fixes bug #758.
2016-08-25srd_inst_decode(): Return SRD_ERR_ARG if unitsize is 0.Uwe Hermann
2016-08-25srd_inst_decode(): Make the code API version dependent.Uwe Hermann
2016-08-25Factor out srd_decoder_apiver().Uwe Hermann
2016-08-25srd_inst_decode(): Improve comments and log messages.Uwe Hermann
Also, drop @since tag (as the function is not public).
2016-08-25srd_session_send(): Improve Doxygen comments.Uwe Hermann
2016-08-23ssi32: Slightly more descriptive naming.Uwe Hermann
2016-08-23midi: Substantially improve decoding of MIDI messages.Chris Dreher
* Decode note names and percussion names (ex: 'G2', 'Tambourine'). * Decode instrument names and drum_kit names (ex: 'Flute', 'GS Orchestra Kit'). * Handle Polyphonic Pressure / Aftertouch (message 0xAn). * Handle Program Change (message 0xCn). * Handle Channel Pressure / Aftertouch (message 0xDn). * Handle Channel Mode (message 0xBn mm where mm is 120 through 127). * Handle System Common messages (message 0xF1 through 0xF6), including full time code decoding. * SysEx decoding now decodes the 1-3 byte manufacturer field, payload is now displayed as hex. * 'undefined' fields now display the value (ex: 'undefined 0xf4'). * Add 'MSB' and 'LSB' to many control_functions entries. * Fix "trapped in state X" bug with handle_channel_msg_generic(), though this might be dead code. * Fix bug in sysex_manufacturer_ids; 1-byte manufacturers were not tuples due to missing comma. * Fix bug in SysEx decoding state machine; 0xF7 now sent to handle_sysex_msg().
2016-08-22ssi32: Minor cosmetics, add full license header (for consistency).Uwe Hermann
2016-08-21Add Bosch SSI32 protocol decoder.Oleksij Rempel
Signed-off-by: Oleksij Rempel <fixed-term.Oleksij.Rempel@de.bosch.com> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2016-07-06Add a DMX512 protocol decodercbdev
2016-06-28timing: Add frequency and averaging support.Uwe Hermann
This patch was contributed by James Sleeman <james@gogo.co.nz>, thanks!
2016-06-22spiflash: Add a 'format' option.Uwe Hermann
2016-06-22spiflash: Perf tweak: Build handler lookup table once per decoderAngus Gratton
2016-06-22spiflash: Handle "Fast Read Dual I/O"Angus Gratton
2016-06-22spiflash: Handle CS# transitions, allow variable-length transfersAngus Gratton
2016-05-26Consistency renames of {ss,es}_ variables.Uwe Hermann
2016-05-25Move common/ directory into decoders/.Uwe Hermann
This simplifies cross-platform handling of the Python/decoder paths and module installation/dist a bit and also fixes bug #804.
2016-05-18Add decoder for em4305 RFID protocolBenjamin Larsson