Index: PressureCommon.h =================================================================== diff -u -ra6e50d961f79536e62469297ce39f3fb258a25e1 -re3a4d7c5c18dc07a6cc7fe2dc07d0d143fd92c57 --- PressureCommon.h (.../PressureCommon.h) (revision a6e50d961f79536e62469297ce39f3fb258a25e1) +++ PressureCommon.h (.../PressureCommon.h) (revision e3a4d7c5c18dc07a6cc7fe2dc07d0d143fd92c57) @@ -7,36 +7,44 @@ * * @file PressureCommon.h * -* @author (last) Sean -* @date (last) 22-Aug-2024 +* @author (last) Vinayakam Mani +* @date (last) 13-Sep-2024 * * @author (original) Sean * @date (original) 22-Aug-2024 * ***************************************************************************/ - -#ifndef __PRESSURE_COMMON_H__ -#define __PRESSURE_COMMON_H__ - -#include "TDCommon.h" - + +#ifndef __PRESSURE_COMMON_H__ +#define __PRESSURE_COMMON_H__ + +#ifdef _TD_ +#include "TDCommon.h" +#endif +#ifdef _DD_ +#include "DDCommon.h" +#endif +#ifdef _RO_ +#include "FPCommon.h" +#endif + /** * @defgroup PressureCommon PressureCommon * @brief The Pressure Sensor unit provides common conversion functions for - * MicroSensor (MPM258) pressure sensors. + * MicroSensor (MPM3801) pressure sensors. * * @addtogroup PressureCommon * @{ */ -// ********** public definitions ********** - - -// ********** public function prototypes ********** - -F32 convertPressureReading2mmHg( S32 counts ); -F32 convertPressureTempReading2DegC( S32 counts ); - +// ********** public definitions ********** + + +// ********** public function prototypes ********** + +F32 convertPressureReading( S16 counts, F32 min, F32 max ); +F32 convertPressureTempReading2DegC( S16 counts ); + /**@}*/ -#endif +#endif