]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/korad-kaxxxxp/protocol.h
drivers: Drop unneeded or duplicate comments.
[libsigrok.git] / src / hardware / korad-kaxxxxp / protocol.h
index e88360e7edcf0f10b0dc734746e766fac6a1114b..2423ce99a8e4f672d8d1aa0296546711d8f9afe5 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-/**
- * @file
- * Korad KAxxxxP power supply driver
- * @internal
- */
-
 #ifndef LIBSIGROK_HARDWARE_KORAD_KAXXXXP_PROTOCOL_H
 #define LIBSIGROK_HARDWARE_KORAD_KAXXXXP_PROTOCOL_H
 
@@ -70,17 +64,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 +82,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];