]> sigrok.org Git - libsigrokdecode.git/commit
uart: Add binaryout/dump support, drop obsolete 'uart_dump' PD.
authorUwe Hermann <redacted>
Mon, 20 Jan 2014 16:43:01 +0000 (17:43 +0100)
committerUwe Hermann <redacted>
Thu, 23 Jan 2014 19:02:38 +0000 (20:02 +0100)
commit0bb7bcf316b528acbe0ef82f4c1e310e756074bc
treee76ca94d34e44c6b8c0cb864cfc28da26b8619df
parente54f222c4edf55a379e5b3ad892cf671ace83e48
uart: Add binaryout/dump support, drop obsolete 'uart_dump' PD.

The functionality of the preliminary 'uart_dump' PD is now available
in the proper 'uart' PD, via the OUTPUT_BINARY mechanism that frontends
can use to dump decoded data (in various formats) to a file, or pipe it
into other applications, and so on.

Old sigrok-cli example usage:

 $ sigrok-cli -i foo.sr -P uart:rx=0:tx=1,uart_dump:filename=bootlog.txt

New sigrok-cli example usage:

 $ sigrok-cli -i foo.sr -P uart:rx=0:tx=1 -B uart=rxtx > bootlog.txt

New sigrok-cli example usage (piping into other applications):

 $ sigrok-cli -i foo.sr -P uart:rx=0:tx=1 -B uart=rxtx | grep "whatever"
decoders/uart/pd.py
decoders/uart_dump/__init__.py [deleted file]
decoders/uart_dump/pd.py [deleted file]