]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/center-3xx/protocol.h
Remove unnecessary std_init() wrapper functions
[libsigrok.git] / src / hardware / center-3xx / protocol.h
index 8ff5d2cc801c35fd521ad40dd512dd90a0af62d3..a5a3df43a7da407047cf0a282baad2685ee1fe04 100644 (file)
@@ -37,9 +37,9 @@ enum {
 };
 
 struct center_dev_info {
-       char *vendor;
-       char *device;
-       char *conn;
+       const char *vendor;
+       const char *device;
+       const char *conn;
        int num_channels;
        uint32_t max_sample_points;
        uint8_t packet_size;
@@ -54,19 +54,7 @@ extern SR_PRIV const struct center_dev_info center_devs[];
 
 /** 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 sw_limits;
 
        uint8_t buf[SERIAL_BUFSIZE];
        int bufoffset;