]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rdtech-um/protocol.h
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / src / hardware / rdtech-um / protocol.h
index e501e920861037955e91a96ecd1257edcda7bff7..ac147d8c026af5eca945103aa3c47a02862caad2 100644 (file)
@@ -33,11 +33,19 @@ enum rdtech_um_model_id {
        RDTECH_UM34C = 0x0d4c,
 };
 
-/* Supported device profiles */
+struct rdtech_um_channel_desc {
+       const char *name;
+       struct binary_value_spec spec;
+       struct sr_rational scale;
+       int digits;
+       enum sr_mq mq;
+       enum sr_unit unit;
+};
+
 struct rdtech_um_profile {
        const char *model_name;
        enum rdtech_um_model_id model_id;
-       const struct binary_analog_channel *channels;
+       const struct rdtech_um_channel_desc *channels;
        size_t channel_count;
        gboolean (*csum_ok)(const uint8_t *buf, size_t len);
 };
@@ -45,6 +53,7 @@ struct rdtech_um_profile {
 struct dev_context {
        const struct rdtech_um_profile *profile;
        struct sr_sw_limits limits;
+       struct feed_queue_analog **feeds;
        uint8_t buf[RDTECH_UM_BUFSIZE];
        size_t buflen;
        int64_t cmd_sent_at;