drivers: Always use same scanopts/drvopts/devopts/devopts_cg* order.
This commit is contained in:
parent
e66d1892d0
commit
55fb76b348
|
@ -20,14 +20,14 @@
|
|||
#include <config.h>
|
||||
#include "protocol.h"
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_LIMIT_MSEC | SR_CONF_SET,
|
||||
SR_CONF_LIMIT_SAMPLES | SR_CONF_SET | SR_CONF_LIST,
|
||||
|
|
|
@ -46,17 +46,17 @@ static const char *logic_pattern_str[] = {
|
|||
"squid",
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_NUM_LOGIC_CHANNELS,
|
||||
SR_CONF_NUM_ANALOG_CHANNELS,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_DEMO_DEV,
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
SR_CONF_OSCILLOSCOPE,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_NUM_LOGIC_CHANNELS,
|
||||
SR_CONF_NUM_ANALOG_CHANNELS,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_CONTINUOUS,
|
||||
SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET,
|
||||
|
|
|
@ -47,14 +47,14 @@ static const struct dslogic_profile supported_device[] = {
|
|||
ALL_ZERO
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_CONTINUOUS | SR_CONF_SET | SR_CONF_GET,
|
||||
SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET,
|
||||
|
|
|
@ -96,14 +96,14 @@ static const struct fx2lafw_profile supported_fx2[] = {
|
|||
ALL_ZERO
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_CONTINUOUS,
|
||||
SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET,
|
||||
|
|
|
@ -31,15 +31,15 @@ static const char *manufacturers[] = {
|
|||
"Rohde&Schwarz",
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_OSCILLOSCOPE,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
SR_CONF_SERIALCOMM,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_OSCILLOSCOPE,
|
||||
};
|
||||
|
||||
enum {
|
||||
CG_INVALID = -1,
|
||||
CG_NONE,
|
||||
|
|
|
@ -20,16 +20,16 @@
|
|||
#include <config.h>
|
||||
#include "protocol.h"
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
SR_CONF_SERIALCOMM,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
|
|
|
@ -29,16 +29,16 @@
|
|||
#include <config.h>
|
||||
#include "protocol.h"
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
SR_CONF_SERIALCOMM,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
SR_CONF_SERIALCOMM,
|
||||
SR_CONF_MODBUSADDR
|
||||
SR_CONF_MODBUSADDR,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
|
|
|
@ -42,18 +42,18 @@ SR_PRIV int lps_query_status(struct sr_dev_inst *sdi);
|
|||
|
||||
#define VENDOR_MOTECH "Motech"
|
||||
|
||||
/** Driver capabilities generic. */
|
||||
static const uint32_t drvopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
};
|
||||
|
||||
/** Driver scanning options. */
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
SR_CONF_SERIALCOMM,
|
||||
};
|
||||
|
||||
/** Driver capabilities generic. */
|
||||
static const uint32_t drvopts[] = {
|
||||
/* Device class */
|
||||
SR_CONF_POWER_SUPPLY,
|
||||
};
|
||||
|
||||
/** Hardware capabilities generic. */
|
||||
static const uint32_t devopts[] = {
|
||||
/* Device class */
|
||||
|
|
|
@ -22,15 +22,15 @@
|
|||
|
||||
#define SERIALCOMM "115200/8n1"
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
SR_CONF_SERIALCOMM,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
|
||||
SR_CONF_SAMPLERATE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
|
||||
|
|
|
@ -28,14 +28,14 @@
|
|||
|
||||
SR_PRIV struct sr_dev_driver saleae_logic_pro_driver_info;
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_LOGIC_ANALYZER,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_CONTINUOUS,
|
||||
SR_CONF_CONN | SR_CONF_GET,
|
||||
|
|
|
@ -32,14 +32,14 @@
|
|||
#define VICTOR_INTERFACE 0
|
||||
#define VICTOR_ENDPOINT (LIBUSB_ENDPOINT_IN | 1)
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_MULTIMETER,
|
||||
};
|
||||
|
||||
static const uint32_t scanopts[] = {
|
||||
SR_CONF_CONN,
|
||||
};
|
||||
|
||||
static const uint32_t drvopts[] = {
|
||||
SR_CONF_MULTIMETER,
|
||||
};
|
||||
|
||||
static const uint32_t devopts[] = {
|
||||
SR_CONF_CONTINUOUS,
|
||||
SR_CONF_LIMIT_SAMPLES | SR_CONF_SET,
|
||||
|
|
Loading…
Reference in New Issue