libsigrok/input
Tomaž Šolc c506a6a688 Allow setting samplerate when reading binary files
I had a binary file that I needed to decode using UART decoder. UART
decoder needs to know the sample rate for the data, but currently it's
not possible to pass parameters to input formats and so the "binary"
file format always sets the samplerate to 0.

This patch adds the possibility to append a colon-separated list of
key=value options to the -I argument, in the same way -d supports it.
Also, it makes the "binary" format support the "samplerate" option.

I included the GHashTable containing input format options directly in
the sr_input struct. I'm not sure if that's the right way to do it. I
saw that -d uses a much more elaborate system with device capabilities
and typed options, but that seemed like an overkill for input formats.
2012-07-29 02:16:17 +02:00
..
Makefile.am sr: Remove useless filename prefixes. 2012-01-03 20:01:02 +01:00
binary.c Allow setting samplerate when reading binary files 2012-07-29 02:16:17 +02:00
chronovu_la8.c Allow setting samplerate when reading binary files 2012-07-29 02:16:17 +02:00
input.c sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00