drivers: Always use same scanopts/drvopts/devopts/devopts_cg* order.

This commit is contained in:
Uwe Hermann 2017-07-18 22:12:54 +02:00
parent e66d1892d0
commit 55fb76b348
12 changed files with 50 additions and 50 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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[] = {

View File

@ -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 */

View File

@ -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,

View File

@ -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,

View File

@ -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,