aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs/trx_vty.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-14 17:52:15 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-15 15:45:29 +0100
commita7bf6cd8a41c62c95959298978e86f324a8e140f (patch)
tree82e8924a14dc6b1d706820999569e6e1d6b60ce9 /CommonLibs/trx_vty.h
parente7f6a27ab6bb3f59d517c2be89793204b9eda0c2 (diff)
lms: Store device type specific parameters in one place
Add an enum containing each supported device type (LimeSDR-USB, LimeSDR-Mini and LimeNet-Micro) plus "unknown", to leave some room for yet-to-come devices to run with some generic parameters without rebuilding osmo-trx. Each device type is assigned a dev_desc structure, and all of them are put in HashMap, similar to what's already done in UHDDevice.cpp. Device type is infered from string provided by LMS_GetDeviceInfo(), as it was already done before in several places. From now on, we only need to parse the string once since we store the device type after first during open time. Later on, more fields will be moved to device-type specific structure, such as Tx timing offset, clock rate, etc. Change-Id: I7658615787c5bc41c365bab9c11733b701ac2ae5
Diffstat (limited to 'CommonLibs/trx_vty.h')
-rw-r--r--CommonLibs/trx_vty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/CommonLibs/trx_vty.h b/CommonLibs/trx_vty.h
index d20dd96..c0d54cf 100644
--- a/CommonLibs/trx_vty.h
+++ b/CommonLibs/trx_vty.h
@@ -5,6 +5,7 @@
#include "config_defs.h"
extern struct vty_app_info g_vty_info;
+extern const struct value_string clock_ref_names[];
extern const struct value_string filler_names[];
/* Maximum number of physical RF channels */