Protocol decoders can use the OUTPUT_BINARY type to emit arbitrary data.
https://sigrok.org/wiki/Protocol_decoder_output#Binary_output
Then invoking sigrok-cli with option "-B, --protocol-decoder-binary
" outputs this data to stdout where you can pipe or redirect to
a file.
Is it possible to writ
My protocol decoder shall write some data to a file during invocation of
the decode method. For that purpose I create the file once in the start
method:
class Decoder(srd.Decoder):
inputs = ['uart']
options = ( {'id':'path', 'desc':'', 'default':'/tmp/dat'}, )
def start(self):
2 matches
Mail list logo