Make constants in LimeSuite.h static
prevent multiple definition errors
@@ -140,7 +140,6 @@ API_EXPORT bool CALL_CONV LMS_IsOpen(lms_device_t *device, int port);
/** @} (End FN_INIT) */
-
/**
* @defgroup FN_HIGH_LVL High-level control functions
*
@@ -151,8 +150,8 @@ API_EXPORT bool CALL_CONV LMS_IsOpen(lms_device_t *device, int port);
*/
/**Convenience constants for TX/RX selection*/
-const bool LMS_CH_TX = true;
-const bool LMS_CH_RX = false;
+static const bool LMS_CH_TX = true;
+static const bool LMS_CH_RX = false;
/**Structure used to represent the allowed value range of various parameters*/
typedef struct
@@ -377,6 +376,9 @@ API_EXPORT int CALL_CONV LMS_SetLPFBW(lms_device_t *device, bool dir_tx,
/**
* Get the currently configured analog LPF RF bandwidth.
*
+ * @note readback from board is currently not supported, only returns last set
+ * value cached by software.
+ *
* @param device Device handle previously obtained by LMS_Open().
* @param dir_tx Select RX or TX
* @param chan Channel index
@@ -388,7 +390,7 @@ API_EXPORT int CALL_CONV LMS_GetLPFBW(lms_device_t *device, bool dir_tx,
size_t chan, float_type *bandwidth);
/**
- * Get the RF bandwidth setting range supported by the analog LPF of LMS chip
+ * Get the RF bandwidth setting range supported by the analog LPF of LMS chip.
*
* @param device Device handle previously obtained by LMS_Open().
* @param dir_tx Select RX or TX
@@ -459,6 +461,10 @@ API_EXPORT int CALL_CONV LMS_CalibrateTxGain(lms_device_t *device, float maxGain
/**
* Load LMS chip configuration from a file
*
+ * @note this only loads LMS chip configuration, in oder for streaming to work
+ * properly FPGA has also to be configured. Use LMS_SetSampleRate() to configure
+ * LMS and FPGA for streaming.
+ *
* @param device Device handle
* @param filename path to file
*
@@ -526,7 +532,7 @@ typedef enum
/**Number of NCO frequency/phase offset values*/
-const size_t LMS_NCO_VAL_COUNT = 16;
+static const size_t LMS_NCO_VAL_COUNT = 16;
/** Convenience type for fixed length name string*/
@@ -909,10 +915,11 @@ API_EXPORT int CALL_CONV LMS_GetReferenceClock(lms_device_t * device,
float_type * clock_Hz);
/**
- * Write value to VCTCXO trim DAC
+ * Write value to VCTCXO trim DAC. Used to adjust/calibrate reference clock
+ * generated by voltage controlled oscillator.
*
* @param dev Device handle previously obtained by LMS_Open().
- * @param val Value to write to VCTCXO trim DAC
+ * @param val Value to write to VCTCXO trim DAC, range 0-255
*
* @return 0 on success, (-1) on failure
*/
