Index: firmware/App/Drivers/ConductivityTeensy.h =================================================================== diff -u -r011ea36116a350c145cea26774fba1966c365430 -r60ae19fffcc93ee4bfeb1756af18be93acc9dd70 --- firmware/App/Drivers/ConductivityTeensy.h (.../ConductivityTeensy.h) (revision 011ea36116a350c145cea26774fba1966c365430) +++ firmware/App/Drivers/ConductivityTeensy.h (.../ConductivityTeensy.h) (revision 60ae19fffcc93ee4bfeb1756af18be93acc9dd70) @@ -35,6 +35,22 @@ MAX_TEENSY_SENSOR ///< Total number of mapped sensors } TEENSY_SENSOR_INDEX_T; +typedef enum TeensyCmdIndex +{ + TEENSY_CMD_INIT_SENSOR = 0, ///< Maps to command "a" + TEENSY_CMD_GET_INIT_STATUS, ///< Maps to command "l" + TEENSY_CMD_UPDATE_EEPROM_DATA, ///< Maps to command "save" + TEENSY_CMD_GET_EEPROM_DATA, ///< Maps to command "e" + TEENSY_CMD_UPDATE_MEASUREMENT_SETTINGS, ///< Maps to command "cfg" + TEENSY_CMD_GET_MEASUREMENT_SETTINGS, ///< Maps to command "k" + TEENSY_CMD_GET_MEASUREMENT, ///< Maps to command "m" + TEENSY_CMD_STOP_MEASUREMENT, ///< Maps to command "n" + TEENSY_CMD_GET_ALL_MEASUREMENTS, ///< Maps to command "g" + TEENSY_CMD_SELECT_SENSOR, ///< Maps to command "j" + TEENSY_CMD_GET_SINGLE_MEASUREMENT, ///< Maps to command "h" + MAX_TEENSY_CMD_ ///< Total number of commands +} TEENSY_CMD_INDEX_T; + /// Initialization status of all the sensors connected to Teensy typedef enum Conductivity_Init_Status { @@ -44,7 +60,6 @@ CONDUCTIVITY_INIT_STATUS_FAILED ///< Initialization process completed but one or more sensor was not initialized properly. }CONDUCTIVITY_INIT_STATUS_T; - typedef enum Conductivity_Parse_Status { CONDUCTIVITY_PARSE_SUCCESS = 0, @@ -87,7 +102,6 @@ F64 B3; }CONDUCTIVITY_COEFFICIENTS_T; - /// Structure to receive Sensor Measurement data from Teensy #pragma pack(push, 1) typedef struct