X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkorad-kdxxxxp%2Fprotocol.h;h=a76b28bae3d50a2475ebc0fdf64789f008cf74bf;hb=ce19d4c6157b2998aa88a2f32670dd7bdcca02e8;hp=c292dab5cc221d0f56a292cd78894c972842d71a;hpb=c40ed60f27a3c918b29f72a73074b97ef0ecfe86;p=libsigrok.git diff --git a/src/hardware/korad-kdxxxxp/protocol.h b/src/hardware/korad-kdxxxxp/protocol.h index c292dab5..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 */ @@ -91,11 +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 */ + 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]; };