Add sr_ prefix to 'struct samplerates'.
This commit is contained in:
parent
8a2efef2d5
commit
60679b18e6
|
@ -56,7 +56,7 @@ static uint64_t supported_samplerates[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct samplerates samplerates = {
|
static struct sr_samplerates samplerates = {
|
||||||
KHZ(200),
|
KHZ(200),
|
||||||
MHZ(200),
|
MHZ(200),
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -52,7 +52,7 @@ static uint64_t supported_samplerates[] = {
|
||||||
MHZ(10), MHZ(20), MHZ(50), MHZ(100), MHZ(200), 0
|
MHZ(10), MHZ(20), MHZ(50), MHZ(100), MHZ(200), 0
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct samplerates samplerates = {
|
static struct sr_samplerates samplerates = {
|
||||||
100, MHZ(200), 0, supported_samplerates,
|
100, MHZ(200), 0, supported_samplerates,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ static int capabilities[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct samplerates samplerates = {
|
static struct sr_samplerates samplerates = {
|
||||||
10,
|
10,
|
||||||
MHZ(200),
|
MHZ(200),
|
||||||
1,
|
1,
|
||||||
|
|
|
@ -86,7 +86,7 @@ static uint64_t supported_samplerates[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct samplerates samplerates = {
|
static struct sr_samplerates samplerates = {
|
||||||
KHZ(200),
|
KHZ(200),
|
||||||
MHZ(24),
|
MHZ(24),
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -108,7 +108,7 @@ static uint64_t supported_samplerates[] = {
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct samplerates samplerates = {
|
static struct sr_samplerates samplerates = {
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
supported_samplerates,
|
supported_samplerates,
|
||||||
};
|
};
|
||||||
|
|
4
sigrok.h
4
sigrok.h
|
@ -299,7 +299,7 @@ enum {
|
||||||
SR_DI_INSTANCE,
|
SR_DI_INSTANCE,
|
||||||
/* The number of probes connected to this device */
|
/* The number of probes connected to this device */
|
||||||
SR_DI_NUM_PROBES,
|
SR_DI_NUM_PROBES,
|
||||||
/* Samplerates supported by this device, (struct samplerates) */
|
/* Samplerates supported by this device, (struct sr_samplerates) */
|
||||||
SR_DI_SAMPLERATES,
|
SR_DI_SAMPLERATES,
|
||||||
/* Types of trigger supported, out of "01crf" (char *) */
|
/* Types of trigger supported, out of "01crf" (char *) */
|
||||||
SR_DI_TRIGGER_TYPES,
|
SR_DI_TRIGGER_TYPES,
|
||||||
|
@ -314,7 +314,7 @@ enum {
|
||||||
* granularity, or is limited to a set of defined samplerates. Use either
|
* granularity, or is limited to a set of defined samplerates. Use either
|
||||||
* step or list, but not both.
|
* step or list, but not both.
|
||||||
*/
|
*/
|
||||||
struct samplerates {
|
struct sr_samplerates {
|
||||||
uint64_t low;
|
uint64_t low;
|
||||||
uint64_t high;
|
uint64_t high;
|
||||||
uint64_t step;
|
uint64_t step;
|
||||||
|
|
Loading…
Reference in New Issue