X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fchronovu-la8%2Fprotocol.h;h=a5509b8c9f7d5432932a3cda71595294b00c2808;hb=695d0e1efa819dc98914ce1baec388c8734e98a7;hp=b28a81663c132fc5ad6b7163ed747968d6833834;hpb=45e080b60b2526fd9723dd822215294f973bff2a;p=libsigrok.git diff --git a/hardware/chronovu-la8/protocol.h b/hardware/chronovu-la8/protocol.h index b28a8166..a5509b8c 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 * @@ -43,7 +43,7 @@ #define USB_MODEL_VERSION "" #define NUM_PROBES 8 -#define TRIGGER_TYPES "01" +#define TRIGGER_TYPE "01" #define SDRAM_SIZE (8 * 1024 * 1024) #define MIN_NUM_SAMPLES 1 @@ -64,8 +64,7 @@ struct dev_context { /** The current sampling limit (in number of samples). */ uint64_t limit_samples; - /** TODO */ - void *session_dev_id; + void *cb_data; /** * A buffer containing some (mangled) samples from the device. @@ -112,10 +111,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);