X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fgmc-mh-1x-2x%2Fprotocol.h;h=b368576b92858395010a43e624d0279e931c5de9;hb=695dc859c15ba4190f5c1aa2e1a6e2dc6a6e5845;hp=b19cd431321ae9a7cdfec4bdd115d7d718e6c94b;hpb=c442ffda0fc6fa9bc3c5397a21ef1d04f01a64a1;p=libsigrok.git diff --git a/src/hardware/gmc-mh-1x-2x/protocol.h b/src/hardware/gmc-mh-1x-2x/protocol.h index b19cd431..b368576b 100644 --- a/src/hardware/gmc-mh-1x-2x/protocol.h +++ b/src/hardware/gmc-mh-1x-2x/protocol.h @@ -27,7 +27,7 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "gmc-mh-1x-2x" @@ -90,9 +90,6 @@ struct dev_context { uint64_t limit_samples; /**< Target number of samples */ uint64_t limit_msec; /**< Target sampling time */ - /* Opaque pointer passed in by frontend. */ - void *cb_data; - /* Operational state */ gboolean settings_ok; /**< Settings msg received yet. */ int msg_type; /**< Message type (MSGID_INF, ...). */ @@ -123,8 +120,6 @@ struct dev_context { /* Forward declarations */ SR_PRIV int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg); -SR_PRIV void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf); -SR_PRIV void dump_msg14(guchar *buf, gboolean raw); SR_PRIV int gmc_decode_model_bd(uint8_t mcode); SR_PRIV int gmc_decode_model_sm(uint8_t mcode); SR_PRIV int gmc_mh_1x_2x_receive_data(int fd, int revents, void *cb_data);