struct sr_samplerates is now obsolete
sr_config_get() of SR_CONF_SAMPLERATE now returns a GVARIANT_TYPE_DICTIONARY. This dictionary contains a single key-value pair. Possible values for the key: - "samplerates": the value is an array of GVARIANT_TYPE_UINT64 representing all valid samplerates. - "samplerate-steps": the value is an array of GVARIANT_TYPE_UINT64 with exactly three members, which represent the lowest samplerate, highest samplerate, and the minimum step, respectively.
This commit is contained in:
parent
aeea057220
commit
38f1e846a8
12
libsigrok.h
12
libsigrok.h
|
@ -722,18 +722,6 @@ enum {
|
|||
SR_ST_STOPPING,
|
||||
};
|
||||
|
||||
/*
|
||||
* A device supports either a range of samplerates with steps of a given
|
||||
* granularity, or is limited to a set of defined samplerates. Use either
|
||||
* step or list, but not both.
|
||||
*/
|
||||
struct sr_samplerates {
|
||||
uint64_t low;
|
||||
uint64_t high;
|
||||
uint64_t step;
|
||||
const uint64_t *list;
|
||||
};
|
||||
|
||||
struct sr_dev_driver {
|
||||
/* Driver-specific */
|
||||
char *name;
|
||||
|
|
Loading…
Reference in New Issue