diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-05-02 15:49:05 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-07 20:42:42 +0200 |
commit | 41e0dd7ae3d5587011ea7f37f5dc83b232fa5373 (patch) | |
tree | 2956bffec72f7a1b8cc214ba60f0d4303ab03065 /decoders/midi/__init__.py | |
parent | 3bd25dea9d260d738f2dfaef697d6455545cde62 (diff) | |
download | libsigrokdecode-41e0dd7ae3d5587011ea7f37f5dc83b232fa5373.tar.gz libsigrokdecode-41e0dd7ae3d5587011ea7f37f5dc83b232fa5373.zip |
sae_j1850_vpw: update for API v3, adjust to recent requirements
IRC user pman92 reported that this decoder exists, and started migration
to the v3 API. This commit completes the migration, and adds missing
decoder infrastructure which has become mandatory recently.
Adjust the boilerplate: Drop FSF postal address. No Python output, add
category tag, unambiguous annotation class and row names. Add reset()
method. Use common code for edge detection.
This commit also addresses minor style nits. Pass the most recent
pulse's edges as ss and es to the data bit handling routine. Adjust
whitespace to unbreak editor navigation and to improve readability.
Use a more verbose name for the decoder, "vpw" appears a little short
and collision happy, and is not found when users search for "j1850".
[ Indentation changed, see whitespace ignoring diff for the essence. ]
Reported-By: pman92 <dpriestley92@hotmail.com>
Diffstat (limited to 'decoders/midi/__init__.py')
0 files changed, 0 insertions, 0 deletions