/**********************************************************************//** * * Copyright (c) 2020 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file LoadCell.h * * @date 25-Feb-2020 * @author S. Nejatali * * @brief Processing sensor data. * **************************************************************************/ #ifndef __LOADCELL_H__ #define __LOADCELL_H__ #include "DGCommon.h" /** * @defgroup LoadCells LoadCells * @brief LoadCells monitor module. * Monitors and filters load cell sensor readings. * * @addtogroup LoadCells * @{ */ // ********** 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. DATA_ARRAY_GET_PROTOTYPE( U32, getMeasuredRawLoadCellReading, loadCellID ); F32 getLoadCellFilteredWeight( LOAD_CELL_ID_T loadCellID ); BOOL testSetLoadCellOverride( U32 value, U32 loadCellID ); BOOL testResetLoadCellOverride( U32 loadCellID ); /**@}*/ #endif /* APP_CONTROLLERS_LOADCELL_H_ */