]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hung-chang-dso-2100/protocol.h
drivers: Consistently make LOG_PREFIX the first item after #includes.
[libsigrok.git] / src / hardware / hung-chang-dso-2100 / protocol.h
index 7168bd69ff9c0491e57d960ef838304240c7715e..11de7b7254337946b68ea33edb1c2a5116971f80 100644 (file)
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "hung-chang-dso-2100"
+
 #define MAX_RETRIES 4
 #define NUM_CHANNELS 2
 
-/** Private, per-device-instance driver context. */
 struct dev_context {
-       /* Acquisition settings */
        GSList *enabled_channel;
        uint8_t channel;
        uint8_t rate;
@@ -42,7 +41,6 @@ struct dev_context {
        uint8_t offset[2];
        uint8_t gain[2];
 
-       /* Operational state */
        uint64_t frame_limit;
        uint64_t frame;
        uint64_t probe[2];
@@ -51,7 +49,6 @@ struct dev_context {
        uint8_t retries;
        gboolean adc2;
 
-       /* Temporary state across callbacks */
        float *samples;
        float factor;
        gboolean state_known;