]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/korad-kdxxxxp/protocol.h
doxygen: Only use @since on public API functions.
[libsigrok.git] / src / hardware / korad-kdxxxxp / protocol.h
index 3b5c2b177ea77e646e08eb558861b0d7c6bb4a23..a76b28bae3d50a2475ebc0fdf64789f008cf74bf 100644 (file)
@@ -44,9 +44,9 @@ enum {
 /* Information on single model */
 struct korad_kdxxxxp_model {
        int model_id; /**< Model info */
-       char *vendor; /**< Vendor name */
-       char *name; /**< Model name */
-       char *id; /**< Model ID, as delivered by interface */
+       const char *vendor; /**< Vendor name */
+       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 */
@@ -61,6 +61,8 @@ enum {
        KDXXXXP_STATUS,
        KDXXXXP_OUTPUT,
        KDXXXXP_BEEP,
+       KDXXXXP_OCP,
+       KDXXXXP_OVP,
        KDXXXXP_SAVE,
        KDXXXXP_RECALL,
 };
@@ -89,9 +91,11 @@ struct dev_context {
 
        gboolean output_enabled; /**< Is the output enabled? */
        gboolean beep_enabled;   /**< Enable beeper. */
+       gboolean ocp_enabled;    /**< Output current protection enabled. */
+       gboolean ovp_enabled;    /**< Output voltage protection enabled. */
 
        /* Temporary state across callbacks */
-       int target;              /**< What reply to expect */
+       int target;              /**< What reply to expect. */
        int program;             /**< Program to store or recall. */
        char reply[6];
 };