From a158dc193e319c06e4603a013a3f2df87c13d1bc Mon Sep 17 00:00:00 2001 From: jupfi Date: Thu, 8 Feb 2024 17:53:38 +0100 Subject: [PATCH] Added function to header --- src/limedriver.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/limedriver.h b/src/limedriver.h index 0176678..71ec797 100644 --- a/src/limedriver.h +++ b/src/limedriver.h @@ -112,6 +112,26 @@ struct Config2HDFattr_t { // Device structure, should be initialize to NULL static lms_device_t *device = NULL; +/* Function to initialize the LimeSDR device + + This function will initialize the LimeSDR device and set the parameters + defined in the LimeCfg structure. + + int Npulses: number of pulses to be generated + return: LimeConfig_t structure with the default parameters set +*/ LimeConfig_t initializeLimeConfig(int Npulses); + +/* Function to run the experiment from the LimeCfg structure + + This function will run the experiment defined by the LimeCfg structure. It will + initialize the LimeSDR, configure it, and run the experiment. The data will be + saved to an HDF5 file. + + LimeCfg: LimeConfig_t structure that defines the experiment parameters + return: 0 if successful, -1 if error +*/ +int run_experiment_from_LimeCfg(LimeConfig_t LimeCfg); + #endif // LIMECONFIG_H \ No newline at end of file