]> sigrok.org Git - libsigrokdecode.git/blobdiff - libsigrokdecode.h
spi: Throw an error if neither MISO nor MOSI was supplied.
[libsigrokdecode.git] / libsigrokdecode.h
index 3a72d2ccee5779801847185b2051a2dc53f8f0a9..1603582a0cc5f80e8c2ce32ad10a32a97743672e 100644 (file)
@@ -133,8 +133,6 @@ enum {
        SRD_OUTPUT_META,
 };
 
-#define SRD_MAX_NUM_PROBES 64
-
 enum {
        SRD_CONF_SAMPLERATE = 10000,
 };
@@ -170,6 +168,12 @@ struct srd_decoder {
         */
        GSList *annotations;
 
+       /**
+        * List of annotation rows (row items: id, description, and a list
+        * of annotation classes belonging to this row).
+        */
+       GSList *annotation_rows;
+
        /**
         * List of NULL-terminated char[], containing descriptions of the
         * supported binary output.
@@ -207,6 +211,12 @@ struct srd_decoder_option {
        GVariant *def;
 };
 
+struct srd_decoder_annotation_row {
+       char *id;
+       char *desc;
+       GSList *ann_classes;
+};
+
 struct srd_decoder_inst {
        struct srd_decoder *decoder;
        struct srd_session *sess;
@@ -216,6 +226,7 @@ struct srd_decoder_inst {
        int dec_num_probes;
        int *dec_probemap;
        int data_unitsize;
+       uint8_t *probe_samples;
        GSList *next_di;
 };