Index: firmware/App/Controllers/LoadCell.h =================================================================== diff -u -r5a882c7292cea58e74b5a28d4e85dd60e741b834 -r25770b4b27e75e730d89ac046f7db405b1bfe39f --- firmware/App/Controllers/LoadCell.h (.../LoadCell.h) (revision 5a882c7292cea58e74b5a28d4e85dd60e741b834) +++ firmware/App/Controllers/LoadCell.h (.../LoadCell.h) (revision 25770b4b27e75e730d89ac046f7db405b1bfe39f) @@ -7,8 +7,8 @@ * * @file LoadCell.h * -* @author (last) Sean Nash -* @date (last) 25-Jun-2020 +* @author (last) Quang Nguyen +* @date (last) 21-Aug-2020 * * @author (original) Saeed Nejatali * @date (original) 25-Feb-2020 @@ -19,6 +19,7 @@ #define __LOADCELL_H__ #include "DGCommon.h" +#include "DGDefs.h" /** * @defgroup LoadCells LoadCells @@ -30,21 +31,13 @@ // ********** public definitions ********** -/// Enumeration of load cells. -typedef enum LoadCells -{ - LOAD_CELL_A1 = 0, ///< Load cell A1 - LOAD_CELL_A2, ///< Load cell A2 - LOAD_CELL_B1, ///< Load cell B1 - LOAD_CELL_B2, ///< Load cell B2 - NUM_OF_LOAD_CELLS ///< Number of reservoirs -} LOAD_CELL_ID_T; - // ********** public function prototypes ********** void initLoadCell( void ); // Initialize the LoadCell module. void execLoadCell( void ); // Execute the LoadCell monitor. +void tareLoadCell( LOAD_CELL_ID_T loadCellID ); +void resetLoadCellOffset( LOAD_CELL_ID_T loadCellID ); F32 getLoadCellFilteredWeight( LOAD_CELL_ID_T loadCellID ); BOOL testSetLoadCellOverride( U32 loadCellID, F32 value );