SR_CONF_VDIV,
};
-static const struct sr_rational timebases[] = {
+static const uint64_t timebases[][2] = {
/* 24 MHz */
{ 42, 1e9 },
/* 12 MHz */
NULL,
};
-static const struct sr_rational vdivs[] = {
+static const uint64_t vdivs[][2] = {
{ 1, 1 },
{ 2, 1 },
{ 5, 2 },
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. */
enum {
SR_DF_HEADER = 10000,