Remove sr_rational
This commit is contained in:
parent
bc653a5678
commit
b9470914d0
|
@ -42,7 +42,7 @@ static const int32_t hwcaps[] = {
|
||||||
SR_CONF_VDIV,
|
SR_CONF_VDIV,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct sr_rational timebases[] = {
|
static const uint64_t timebases[][2] = {
|
||||||
/* 24 MHz */
|
/* 24 MHz */
|
||||||
{ 42, 1e9 },
|
{ 42, 1e9 },
|
||||||
/* 12 MHz */
|
/* 12 MHz */
|
||||||
|
@ -94,7 +94,7 @@ static const char *probe_names[] = {
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct sr_rational vdivs[] = {
|
static const uint64_t vdivs[][2] = {
|
||||||
{ 1, 1 },
|
{ 1, 1 },
|
||||||
{ 2, 1 },
|
{ 2, 1 },
|
||||||
{ 5, 2 },
|
{ 5, 2 },
|
||||||
|
|
|
@ -138,14 +138,6 @@ enum {
|
||||||
SR_T_KEYVALUE,
|
SR_T_KEYVALUE,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Rational number data type, containing numerator and denominator values. */
|
|
||||||
struct sr_rational {
|
|
||||||
/** Numerator of the rational number. */
|
|
||||||
uint64_t p;
|
|
||||||
/** Denominator of the rational number. */
|
|
||||||
uint64_t q;
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Value for sr_datafeed_packet.type. */
|
/** Value for sr_datafeed_packet.type. */
|
||||||
enum {
|
enum {
|
||||||
SR_DF_HEADER = 10000,
|
SR_DF_HEADER = 10000,
|
||||||
|
|
Loading…
Reference in New Issue