Index: Utilities.h =================================================================== diff -u -r2801d97e877dd78189aa891e80a2f7cf60a6a2b7 -r17607d3644f379c1b93ff271ed3cfefda80b0e6e --- Utilities.h (.../Utilities.h) (revision 2801d97e877dd78189aa891e80a2f7cf60a6a2b7) +++ Utilities.h (.../Utilities.h) (revision 17607d3644f379c1b93ff271ed3cfefda80b0e6e) @@ -58,10 +58,9 @@ TIME_WINDOWED_COUNT_BATT_COMM_ERROR, ///< Battery communication error #endif #ifdef _DD_ - TIME_WINDOWED_COUNT_FPGA_CONDUCTIVITY_SENSOR_ERROR, ///< FPGA Conductivity sensor error - TIME_WINDOWED_COUNT_FPGA_TEMPERATURE_SENSOR_ERROR, ///< FPGA Temperature sensor error - TIME_WINDOWED_COUNT_FPGA_COMM_FAILURES, ///< FPGA communication failure (NAK, CRC, timeout) - TIME_WINDOWED_COUNT_FPGA_DRAIN_PUMP_HALL_SENSOR_ERROR, ///< FPGA Drain pump hall sensor failure + TIME_WINDOWED_COUNT_FPGA_COMM_FAILURES, ///< FPGA communication failure (NAK, CRC, timeout) + TIME_WINDOWED_COUNT_FPGA_FRESH_DIALYSATE_PUMP_HALL_SENSOR_ERROR,///< FPGA fresh dialysate pump hall sensor failure + TIME_WINDOWED_COUNT_FPGA_SPENT_DIALYSATE_PUMP_HALL_SENSOR_ERROR,///< FPGA spent dialysate pump hall sensor failure #endif NUM_OF_TIME_WINDOWED_COUNTS ///< Number of pressure sensors } TIME_WINDOWED_COUNT_T; @@ -109,6 +108,8 @@ U08 crc8( const U08 *address, U32 len ); U08 crc4( U16* buffer, U32 byteCount ); +S16 signExtend16( U16 value, U32 signBit ); + U32 u32DiffWithWrap( U32 start, U32 end ); S32 u32BiDiffWithWrap( U32 start, U32 end ); U16 u16DiffWithWrap( U16 start, U16 end );