X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=decoder%2Fruntc.c;h=074882629350a5e28cb3f6c90ab1bb8f9ea34cdb;hb=refs%2Fremotes%2Fgithub%2Fmaster;hp=c7462b4e7f06e69266a9bbebf17e17bec0a1343c;hpb=ecec131bb8d14e70fdcde1b71be6d35a90999ee5;p=sigrok-test.git
diff --git a/decoder/runtc.c b/decoder/runtc.c
index c7462b4..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