Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r61716bc97ecca8af1ec560333844a8cf602eccb0 -rcf0f5e54c1a7af4d8a739cbd677d899d95e4019b --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 61716bc97ecca8af1ec560333844a8cf602eccb0) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision cf0f5e54c1a7af4d8a739cbd677d899d95e4019b) @@ -478,6 +478,21 @@ /*********************************************************************//** * @brief + * The isBloodPumpRampComplete function returns whether the blood pump has + * completed its ramp up and entered control state (closed or open loop). + * @details Inputs: bloodPumpState + * @details Outputs: none + * @return TRUE if pump is in control state, FALSE if not + *************************************************************************/ +BOOL isBloodPumpRampComplete( void ) +{ + BOOL result = ( BLOOD_PUMP_CONTROL_TO_TARGET_STATE == bloodPumpState ? TRUE : FALSE ); + + return result; +} + +/*********************************************************************//** + * @brief * The resetBloodPumpRotorCount function resets the blood pump rotor counter * that is a proxy for cartridge wear. Call this function after a new cartridge * has been installed.