]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/uni-t-dmm/protocol.h
std: Add and use std_dev_clear() where possible.
[libsigrok.git] / src / hardware / uni-t-dmm / protocol.h
index 3e063664839a89fdab8ad2454b3f3b744640bff4..4158833f0ee72cfae6bd32de521e774610e664f0 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef LIBSIGROK_HARDWARE_UNI_T_DMM_PROTOCOL_H
 #include <stdint.h>
 #include <glib.h>
 #include <libusb.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "uni-t-dmm"
 
 struct dmm_info {
        struct sr_dev_driver di;
-       char *vendor;
-       char *device;
+       const char *vendor;
+       const char *device;
        uint32_t baudrate;
        int packet_size;
        gboolean (*packet_valid)(const uint8_t *);
@@ -48,19 +47,7 @@ struct dmm_info {
 
 /** Private, per-device-instance driver context. */
 struct dev_context {
-       /** The current sampling limit (in number of samples). */
-       uint64_t limit_samples;
-
-       /** The current sampling limit (in ms). */
-       uint64_t limit_msec;
-
-       /** Opaque pointer passed in by the frontend. */
-       void *cb_data;
-
-       /** The current number of already received samples. */
-       uint64_t num_samples;
-
-       int64_t starttime;
+       struct sr_sw_limits limits;
 
        gboolean first_run;