]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/korad-kdxxxxp/protocol.h
Over voltage and current protection support
[libsigrok.git] / src / hardware / korad-kdxxxxp / protocol.h
index 3b5c2b177ea77e646e08eb558861b0d7c6bb4a23..c292dab5cc221d0f56a292cd78894c972842d71a 100644 (file)
@@ -61,6 +61,8 @@ enum {
        KDXXXXP_STATUS,
        KDXXXXP_OUTPUT,
        KDXXXXP_BEEP,
+       KDXXXXP_OCP,
+       KDXXXXP_OVP,
        KDXXXXP_SAVE,
        KDXXXXP_RECALL,
 };
@@ -89,6 +91,8 @@ 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 */