diff options
author | Thomas Tsou <tom@tsou.cc> | 2013-11-13 22:53:15 -0500 |
---|---|---|
committer | Thomas Tsou <tom@tsou.cc> | 2013-11-15 23:35:07 -0500 |
commit | 2c1f85a10c2c567ebc763b53acd335d4dc6f1e17 (patch) | |
tree | 41fb36aa918df7030f4f99659366751b7c90ff58 /Transceiver52M/UHDDevice.cpp | |
parent | a2fe91a688fb16f1055e3af77478cfb4bceb3ae2 (diff) |
Transceiver52M: UHD: Add string descriptors to device-offset pairs
As we add more channel combintions including but not limited to
new devices, signal processing schemes, and diversity, we'll
need to handle more special cases. Add string descriptions for
just a bit more sanity.
Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/UHDDevice.cpp')
-rw-r--r-- | Transceiver52M/UHDDevice.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index a2c2471..681f939 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -52,6 +52,7 @@ struct uhd_dev_offset { enum uhd_dev_type type; int sps; double offset; + const std::string desc; }; /* @@ -65,16 +66,16 @@ struct uhd_dev_offset { * USRP1 with timestamps is not supported by UHD. */ static struct uhd_dev_offset uhd_offsets[NUM_USRP_TYPES * 2] = { - { USRP1, 1, 0.0 }, - { USRP1, 4, 0.0 }, - { USRP2, 1, 1.2184e-4 }, - { USRP2, 4, 8.0230e-5 }, - { B100, 1, 1.2104e-4 }, - { B100, 4, 7.9307e-5 }, - { B2XX, 1, 9.9692e-5 }, - { B2XX, 4, 6.9248e-5 }, - { UMTRX, 1, 9.9692e-5 }, - { UMTRX, 4, 7.3846e-5 }, + { USRP1, 1, 0.0, "USRP1 not supported" }, + { USRP1, 4, 0.0, "USRP1 not supported"}, + { USRP2, 1, 1.2184e-4, "N2XX 1 SPS" }, + { USRP2, 4, 8.0230e-5, "N2XX 4 SPS" }, + { B100, 1, 1.2104e-4, "B100 1 SPS" }, + { B100, 4, 7.9307e-5, "B100 4 SPS" }, + { B2XX, 1, 9.9692e-5, "B2XX 1 SPS" }, + { B2XX, 4, 6.9248e-5, "B2XX 4 SPS" }, + { UMTRX, 1, 9.9692e-5, "UmTRX 1 SPS" }, + { UMTRX, 4, 7.3846e-5, "UmTRX 4 SPS" }, }; static double get_dev_offset(enum uhd_dev_type type, int sps) |