X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fhameg-hmo%2Fprotocol.h;h=ffc841283d24f152bd5ed83d2c03788a1f3f4933;hb=79bc9924d70d6c785c3ab28d35ac67f4a3601e1d;hp=ff3b398208ab2c7997ef921d846eff537b953db5;hpb=719eff68ad03b4acaea87e227eda361ef2e299be;p=libsigrok.git diff --git a/hardware/hameg-hmo/protocol.h b/hardware/hameg-hmo/protocol.h index ff3b3982..ffc84128 100644 --- a/hardware/hameg-hmo/protocol.h +++ b/hardware/hameg-hmo/protocol.h @@ -26,21 +26,11 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with subsystem-specific prefix string. */ -#define LOG_PREFIX "hameg-hmo: " -#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args) -#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args) -#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args) -#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args) -#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args) -#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args) +#define LOG_PREFIX "hameg-hmo" #define MAX_INSTRUMENT_VERSIONS 10 #define MAX_COMMAND_SIZE 31 -SR_PRIV struct sr_dev_driver hameg_hmo_driver_info; -static struct sr_dev_driver *di = &hameg_hmo_driver_info; - struct scope_config { const char *name[MAX_INSTRUMENT_VERSIONS]; const uint8_t analog_channels; @@ -115,8 +105,6 @@ struct dev_context { SR_PRIV int hmo_init_device(struct sr_dev_inst *sdi); SR_PRIV int hmo_request_data(const struct sr_dev_inst *sdi); SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data); -SR_PRIV struct sr_dev_inst *hmo_probe_serial_device(const char *serial_device, - const char *serial_options); SR_PRIV struct scope_state *hmo_scope_state_new(struct scope_config *config); SR_PRIV void hmo_scope_state_free(struct scope_state *state);