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.
This commit is contained in:
Kumi 2024-02-17 17:58:06 +01:00
parent 4c839fae5d
commit 017742f56d
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -140,6 +140,9 @@ LimeConfig_t initializeLimeConfig(int Npulses);
*/
int run_experiment_from_LimeCfg(LimeConfig_t LimeCfg);
std::pair<int, int> getDeviceChannels(lms_device_t *dev);
std::pair<int, int> getChannelsFromInfo(const std::string &info);
std::vector<std::string> getDeviceList();
#endif // LIMECONFIG_H