X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=blobdiff_plain;f=decoder%2Fruntc.c;h=90c37b64b76746ed7391b8ae20c90c0703b3310e;hp=3d0bfd8f0c845b2ab2104e979fd3d1b18420fdbb;hb=HEAD;hpb=987819ad8910f5fedca4553706ec88919a3c9ad9
diff --git a/decoder/runtc.c b/decoder/runtc.c
index 3d0bfd8..0748826 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -17,6 +17,8 @@
* along with this program. If not, see .
*/
+#include
+
#include
#include
#include
@@ -37,6 +39,8 @@
#include
#endif
+#define CHUNK_SIZE (4 * 1024 * 1024)
+
static int debug = FALSE;
static int statistics = FALSE;
static char *coverage_report;
@@ -52,16 +56,30 @@ struct option {
GVariant *value;
};
+struct initial_pin_info {
+ char *name;
+ int value;
+};
+
struct pd {
const char *name;
GSList *channels;
GSList *options;
+ GSList *initial_pins;
+};
+
+struct input {
+ const char *filename;
+ const char *format;
+ GSList *opt_list;
+ GHashTable *opt_hash;
};
struct output {
const char *pd;
+ const char *pd_id;
int type;
- const char *class;
+ const char *class_;
int class_idx;
const char *outfile;
int outfd;
@@ -141,7 +159,9 @@ static void usage(const char *msg)
printf(" -P \n");
printf(" -p (optional)\n");
printf(" -o (optional)\n");
+ printf(" -N (optional)\n");
printf(" -i \n");
+ printf(" -I (optional)\n");
printf(" -O \n");
printf(" -f