]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/korad-kdxxxxp/protocol.h
build: Set CXXFLAGS when building Python module
[libsigrok.git] / src / hardware / korad-kdxxxxp / protocol.h
index 3b5c2b177ea77e646e08eb558861b0d7c6bb4a23..5b7ee1c35782beebb655707aee5b099ca5ed261b 100644 (file)
@@ -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];
 };