X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkorad-kdxxxxp%2Fprotocol.h;h=a76b28bae3d50a2475ebc0fdf64789f008cf74bf;hb=ce19d4c6157b2998aa88a2f32670dd7bdcca02e8;hp=3b5c2b177ea77e646e08eb558861b0d7c6bb4a23;hpb=d70830427530115003f3c8a592a853965ba4fc10;p=libsigrok.git diff --git a/src/hardware/korad-kdxxxxp/protocol.h b/src/hardware/korad-kdxxxxp/protocol.h index 3b5c2b17..a76b28ba 100644 --- a/src/hardware/korad-kdxxxxp/protocol.h +++ b/src/hardware/korad-kdxxxxp/protocol.h @@ -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]; };