X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fhantek-dso%2Fdso.h;h=edccb725cf3830bc873833e6e4856e3468392a59;hb=43cd4637285833706f8a404ca027bcf0ee75b9ae;hp=24fc4e710c6dde9aa44526c31edf616ffe20e52d;hpb=c118080b1db555c1eb226ea783fc186602c20315;p=libsigrok.git diff --git a/hardware/hantek-dso/dso.h b/hardware/hantek-dso/dso.h index 24fc4e71..edccb725 100644 --- a/hardware/hantek-dso/dso.h +++ b/hardware/hantek-dso/dso.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2012 Bert Vermeulen * With protocol information from the hantekdso project, @@ -19,17 +19,10 @@ * along with this program. If not, see . */ -#ifndef LIBSIGROK_HARDWARE_HANTEK_DSO_H -#define LIBSIGROK_HARDWARE_HANTEK_DSO_H +#ifndef LIBSIGROK_HARDWARE_HANTEK_DSO_DSO_H +#define LIBSIGROK_HARDWARE_HANTEK_DSO_DSO_H -/* Message logging helpers with driver-specific prefix string. */ -#define DRIVER_LOG_DOMAIN "hantek-dso: " -#define sr_log(l, s, args...) sr_log(l, DRIVER_LOG_DOMAIN s, ## args) -#define sr_spew(s, args...) sr_spew(DRIVER_LOG_DOMAIN s, ## args) -#define sr_dbg(s, args...) sr_dbg(DRIVER_LOG_DOMAIN s, ## args) -#define sr_info(s, args...) sr_info(DRIVER_LOG_DOMAIN s, ## args) -#define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args) -#define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args) +#define LOG_PREFIX "hantek-dso" #define USB_INTERFACE 0 #define USB_CONFIGURATION 1 @@ -76,8 +69,8 @@ enum dso_commands { CMD_GET_CAPTURESTATE, CMD_SET_VOLTAGE, /* unused */ - cmdSetLogicalData, - cmdGetLogicalData, + CMD_SET_LOGICALDATA, + CMD_GET_LOGICALDATA, }; /* Must match the coupling table. */ @@ -172,7 +165,7 @@ struct dev_context { void *cb_data; uint64_t limit_frames; uint64_t num_frames; - GSList *enabled_probes; + GSList *enabled_channels; /* We can't keep track of an FX2-based device after upgrading * the firmware (it re-enumerates into a different device address * after the upgrade) this is like a global lock. No device will open