X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkorad-kaxxxxp%2Fprotocol.h;h=e88360e7edcf0f10b0dc734746e766fac6a1114b;hb=cb4b368f17f03d03075a25b2eee1045023b973b3;hp=0e727c7abf681ba9d1ae32187328c1e704e973eb;hpb=bcf9384d3d2cad0effb5ef2769697d8af05b8a17;p=libsigrok.git diff --git a/src/hardware/korad-kaxxxxp/protocol.h b/src/hardware/korad-kaxxxxp/protocol.h index 0e727c7a..e88360e7 100644 --- a/src/hardware/korad-kaxxxxp/protocol.h +++ b/src/hardware/korad-kaxxxxp/protocol.h @@ -37,8 +37,10 @@ #define KAXXXXP_POLL_INTERVAL_MS 80 enum { - VELLEMAN_LABPS_3005D, + VELLEMAN_PS3005D, + VELLEMAN_LABPS3005D, KORAD_KA3005P, + KORAD_KA3005P_0X01, /* Support for future devices with this protocol. */ }; @@ -74,15 +76,10 @@ struct dev_context { const struct korad_kaxxxxp_model *model; /**< Model information. */ /* Acquisition settings */ - uint64_t limit_samples; - uint64_t limit_msec; - uint64_t num_samples; - int64_t starttime; + struct sr_sw_limits limits; int64_t req_sent_at; gboolean reply_pending; - void *cb_data; - /* Operational state */ float current; /**< Last current value [A] read from device. */ float current_max; /**< Output current set. */