X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hardware%2Fchronovu-la8%2Fprotocol.h;h=cd71936c168bdce594eb965fbf1ea65151fb29f5;hb=3544f848e0d7f67af8e11ce7ec344b34cd797df3;hp=8c78ef077bd94705b537b1b45bad22b6ac7643f7;hpb=3e9b7f9c776221c2c6b0d9f51b48db31383a4b03;p=libsigrok.git diff --git a/hardware/chronovu-la8/protocol.h b/hardware/chronovu-la8/protocol.h index 8c78ef07..cd71936c 100644 --- a/hardware/chronovu-la8/protocol.h +++ b/hardware/chronovu-la8/protocol.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2011-2012 Uwe Hermann * @@ -27,14 +27,7 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with driver-specific prefix string. */ -#define DRIVER_LOG_DOMAIN "la8: " -#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 "la8" #define USB_VENDOR_ID 0x0403 #define USB_DESCRIPTION "ChronoVu LA8" @@ -111,10 +104,9 @@ struct dev_context { }; /* protocol.c */ -extern SR_PRIV uint64_t supported_samplerates[]; -extern SR_PRIV const int hwcaps[]; -extern SR_PRIV const char *probe_names[]; -extern const struct sr_samplerates samplerates; +extern const int32_t chronovu_la8_hwcaps[]; +extern uint64_t chronovu_la8_samplerates[]; +extern SR_PRIV const char *chronovu_la8_probe_names[]; SR_PRIV void fill_supported_samplerates_if_needed(void); SR_PRIV int is_valid_samplerate(uint64_t samplerate); SR_PRIV uint8_t samplerate_to_divcount(uint64_t samplerate);