static struct sr_samplerates samplerates = {
SR_KHZ(200),
SR_MHZ(200),
- 0,
+ SR_HZ(0),
supported_samplerates,
};
};
static struct sr_samplerates samplerates = {
- 1,
+ SR_HZ(1),
SR_GHZ(1),
- 1,
+ SR_HZ(1),
NULL,
};
};
static uint64_t supported_samplerates[] = {
- 100,
- 200,
- 500,
+ SR_HZ(100),
+ SR_HZ(200),
+ SR_HZ(500),
SR_KHZ(1),
SR_KHZ(2),
SR_KHZ(5),
};
static struct sr_samplerates samplerates = {
- 100,
+ SR_HZ(100),
SR_MHZ(200),
- 0,
+ SR_HZ(0),
supported_samplerates,
};
};
static struct sr_samplerates samplerates = {
- 10,
+ SR_HZ(10),
SR_MHZ(200),
- 1,
- 0,
+ SR_HZ(1),
+ NULL,
};
/* List of struct sr_serial_device_instance */
static struct sr_samplerates samplerates = {
SR_KHZ(200),
SR_MHZ(24),
- 0,
+ SR_HZ(0),
supported_samplerates,
};
* that high.
*/
static uint64_t supported_samplerates[] = {
- 100,
- 500,
+ SR_HZ(100),
+ SR_HZ(500),
SR_KHZ(1),
SR_KHZ(5),
SR_KHZ(25),
};
static struct sr_samplerates samplerates = {
- 0, 0, 0,
+ SR_HZ(0),
+ SR_HZ(0),
+ SR_HZ(0),
supported_samplerates,
};
#define SR_MAX_PROBENAME_LEN 32
/* Handy little macros */
+#define SR_HZ(n) (n)
#define SR_KHZ(n) ((n) * 1000)
#define SR_MHZ(n) ((n) * 1000000)
#define SR_GHZ(n) ((n) * 1000000000)