From 017742f56dc13758dcdab59ed0436f5be10560e5 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 17 Feb 2024 17:58:06 +0100 Subject: [PATCH] Add channel retrieval functions to LimeDriver Introduced new utility functions for obtaining channel information from LimeSDR devices. These enhancements allow users to retrieve a pair of integers representing the number of available RX and TX channels, either directly from a device instance or through a formatted information string. Addressing the need for more accessible device channel analytics contributes to improved configuration and debugging procedures. --- src/limedriver.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/limedriver.h b/src/limedriver.h index 53bf291..1f657a9 100644 --- a/src/limedriver.h +++ b/src/limedriver.h @@ -140,6 +140,9 @@ LimeConfig_t initializeLimeConfig(int Npulses); */ int run_experiment_from_LimeCfg(LimeConfig_t LimeCfg); +std::pair getDeviceChannels(lms_device_t *dev); +std::pair getChannelsFromInfo(const std::string &info); + std::vector getDeviceList(); #endif // LIMECONFIG_H \ No newline at end of file