Index: firmware/App/Drivers/ConductivityTeensy.h =================================================================== diff -u -rd305a91c82fe89a76d9accbb8faa3d81e3106341 -r11dbd4210f75d1587be89117e60409cf1b4d1085 --- firmware/App/Drivers/ConductivityTeensy.h (.../ConductivityTeensy.h) (revision d305a91c82fe89a76d9accbb8faa3d81e3106341) +++ firmware/App/Drivers/ConductivityTeensy.h (.../ConductivityTeensy.h) (revision 11dbd4210f75d1587be89117e60409cf1b4d1085) @@ -23,6 +23,7 @@ // ********** public definitions ********** #define DOUBLE_COUNT 8 ///< Number of double values in Teensy EEPROM data #define FLOAT_COUNT 16 ///< Number of float values in Teensy EEPROM data +#define MAX_COND_MST_PARAM_IDX 7 ///< Total number of parameters in measurement settings CONDUCTIVITY_MEASUREMENT_SETTINGS_T /// Enumeration of conductivity sensors. typedef enum ConductivitySensors @@ -116,19 +117,6 @@ COND_MST_STATUS_SUCCESS }CONDUCTIVITY_UPDATE_MST_STATUS_T; -// Update Measurement Settings Status -typedef enum mst_param_idx -{ - CONDUCTIVITY_MST_PARAM_IDX_SINFREQ = 0, ///< SinFreq : Frequency of excitation signal - CONDUCTIVITY_MST_PARAM_IDX_DACPP, ///< DacVoltPP : DAC output voltage in mV peak to peak. Maximum value is 800mVpp. Peak to peak voltage - CONDUCTIVITY_MST_PARAM_IDX_BIAS, ///< BiasVolt : The excitation signal is DC+AC. This parameter decides the DC value in mV unit. 0.0mV means no DC bias. - CONDUCTIVITY_MST_PARAM_IDX_RTIA, ///< HstiaRtiaSel : Valid param values ( 0, 1, 2, 3, 4, 5, 6, 7 ) - CONDUCTIVITY_MST_PARAM_IDX_PGA, ///< AdcPgaGain : Valid param values ( 1, 1.5, 2, 4, 9 ) i.e interpreted as ( 0, 1, 2, 3, 4 ) respectively in Teensy. - CONDUCTIVITY_MST_PARAM_IDX_DFTNUM, ///< DftNum : DFT number Valid param values ( 4096, 2048, 1024, 512, 256 ) i.e interpreted as ( 10, 9, 8, 7, 6 ) respectively in Teensy. - CONDUCTIVITY_MST_PARAM_IDX_AVGNUM, ///< ADCAvgNum : Valid param values ( 2, 4, 8, 16 )i.e interpreted as ( 0, 1, 2, 3 ) respectively in Teensy. - MAX_CONDUCTIVITY_MST_PARAM_IDX ///< Total number of Measurement settings parameters -}CONDUCTIVITY_MST_PARAM_IDX_T; - typedef struct { F64 A0;