]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/korad-kaxxxxp/protocol.h
korad-kaxxxxp: add quirks flags to table of supported models
[libsigrok.git] / src / hardware / korad-kaxxxxp / protocol.h
index a0cbdca69cffca26bbcfdf1f7f533609ac79c7f5..04d2c05af0311746416fffd44ba3fd79fa3759f5 100644 (file)
@@ -58,6 +58,12 @@ enum {
        /* Support for future devices with this protocol. */
 };
 
+enum korad_quirks_flag {
+       KORAD_QUIRK_NONE = 0,
+       KORAD_QUIRK_LABPS_OVP_EN = 1UL << 0,
+       KORAD_QUIRK_ALL = (1UL << 1) - 1,
+};
+
 /* Information on single model */
 struct korad_kaxxxxp_model {
        int model_id; /**< Model info */
@@ -65,8 +71,9 @@ struct korad_kaxxxxp_model {
        const char *name; /**< Model name */
        const char *id; /**< Model ID, as delivered by interface */
        int channels; /**< Number of channels */
-       double voltage[3]; /**< Min, max, step */
-       double current[3]; /**< Min, max, step */
+       const double *voltage; /**< References: Min, max, step */
+       const double *current; /**< References: Min, max, step */
+       enum korad_quirks_flag quirks;
 };
 
 /* Reply targets */