X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkorad-kaxxxxp%2Fprotocol.h;h=112382a48e94999b329850c824c8a983c2f41ed0;hb=24985129729715ee08cdc021b1d5e552c6b6b312;hp=e88360e7edcf0f10b0dc734746e766fac6a1114b;hpb=597deef91ee5cd4aea17c5beb629526eef176864;p=libsigrok.git diff --git a/src/hardware/korad-kaxxxxp/protocol.h b/src/hardware/korad-kaxxxxp/protocol.h index e88360e7..112382a4 100644 --- a/src/hardware/korad-kaxxxxp/protocol.h +++ b/src/hardware/korad-kaxxxxp/protocol.h @@ -17,12 +17,6 @@ * along with this program. If not, see . */ -/** - * @file - * Korad KAxxxxP power supply driver - * @internal - */ - #ifndef LIBSIGROK_HARDWARE_KORAD_KAXXXXP_PROTOCOL_H #define LIBSIGROK_HARDWARE_KORAD_KAXXXXP_PROTOCOL_H @@ -41,6 +35,7 @@ enum { VELLEMAN_LABPS3005D, KORAD_KA3005P, KORAD_KA3005P_0X01, + KORAD_KD3005P, /* Support for future devices with this protocol. */ }; @@ -70,17 +65,13 @@ enum { KAXXXXP_RECALL, }; -/** Private, per-device-instance driver context. */ struct dev_context { - /* Model-specific information */ const struct korad_kaxxxxp_model *model; /**< Model information. */ - /* Acquisition settings */ struct sr_sw_limits limits; int64_t req_sent_at; gboolean reply_pending; - /* Operational state */ float current; /**< Last current value [A] read from device. */ float current_max; /**< Output current set. */ float voltage; /**< Last voltage value [V] read from device. */ @@ -92,7 +83,6 @@ struct dev_context { 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 program; /**< Program to store or recall. */ char reply[6];