X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoder%2Fruntc.c;h=896935bfc81d02909a78ffb5d3e310786459661a;hb=14e38a009d0ed7c6e3f1cb2f725b0d5f00331638;hp=f175f6aeda0c2a052d816431519d2554771af9f5;hpb=914b125b355de4c85ffae34db549089f3584c90d;p=sigrok-test.git
diff --git a/decoder/runtc.c b/decoder/runtc.c
index f175f6a..896935b 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -17,6 +17,8 @@
* along with this program. If not, see .
*/
+#include
+
#include
#include
#include
@@ -52,14 +54,21 @@ 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 output {
const char *pd;
+ const char *pd_id;
int type;
const char *class;
int class_idx;
@@ -136,15 +145,17 @@ static void usage(const char *msg)
if (msg)
fprintf(stderr, "%s\n", msg);
- printf("Usage: runtc [-dPpoiOf]\n");
- printf(" -d Debug\n");
- printf(" -P \n");
- printf(" -p (optional)\n");
- printf(" -o (optional)\n");
+ printf("Usage: runtc [-dPpoiOfcS]\n");
+ printf(" -d (enables debug output)\n");
+ printf(" -P \n");
+ printf(" -p (optional)\n");
+ printf(" -o (optional)\n");
+ printf(" -N (optional)\n");
printf(" -i \n");
printf(" -O \n");
printf(" -f