Index: firmware/App/Controllers/BloodFlow.h =================================================================== diff -u -r794a0f21a465227d432a91d7b7fd7d513cfe3ecb -r395522dffef1348e176564925656012f529c1910 --- firmware/App/Controllers/BloodFlow.h (.../BloodFlow.h) (revision 794a0f21a465227d432a91d7b7fd7d513cfe3ecb) +++ firmware/App/Controllers/BloodFlow.h (.../BloodFlow.h) (revision 395522dffef1348e176564925656012f529c1910) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2024-2024 Diality Inc. - All Rights Reserved. +* Copyright (c) 2024-2026 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 BloodFlow.h * -* @author (last) Sean -* @date (last) 25-Oct-2024 +* @author (last) Dara Navaei +* @date (last) 26-Oct-2025 * -* @author (original) Sean -* @date (original) 25-Oct-2024 +* @author (original) Sean Nash +* @date (original) 24-Oct-2024 * ***************************************************************************/ @@ -43,11 +43,13 @@ F32 h4MeasFlow; ///< Measured flow rate in mL/min. F32 h4MeasRotorSpd; ///< Measured rotor speed in RPM. F32 h4MeasPumpSpd; ///< Measured pump speed in RPM. - F32 h4MeasCurr; ///< Measure motor current in Amps. + F32 h4MeasTorquemNm; ///< Measured torque in mN.m. F32 h4SetRPM; ///< Set motor speed in RPM. U32 h4RotorCount; ///< Rotor count. U32 h4PresFlow; ///< Prescribed blood flow in mL/min. - U32 h4RotorHallState; ///< Rotor hall state (1=home, 0=not home). + U32 h6RotorHallState; ///< Rotor hall state (1=home, 0=not home). + //U32 bPstate; + //U32 bpRotorStatus; } BLOOD_PUMP_STATUS_PAYLOAD_T; #pragma pack(pop) @@ -71,6 +73,7 @@ F32 getMeasuredBloodFlowRate( void ); F32 getMeasuredBloodPumpRotorSpeed( void ); F32 getMeasuredBloodPumpSpeed( void ); +F32 getMeasuredBloodPumpTorque( void ); BOOL testBloodFlowDataPublishIntervalOverride( MESSAGE_T *message ); BOOL testSetTargetBloodFlowRateOverride( MESSAGE_T *message ); @@ -79,6 +82,11 @@ BOOL testMeasuredBloodPumpRotorSpeedOverride( MESSAGE_T *message ); BOOL testMeasuredBloodPumpSpeedOverride( MESSAGE_T *message ); BOOL testBloodPumpRotorCountOverride( MESSAGE_T *message ); +BOOL testHomeBloodPump( MESSAGE_T *message ); +BOOL testHardStopBloodPump( MESSAGE_T *message ); +BOOL testBPFlowAlphaYInterceptOverride( MESSAGE_T *message ); +BOOL testBPFlowWearATermOverride( MESSAGE_T *message ); +BOOL testBPFlowWearBTermOverride( MESSAGE_T *message ); /**@}*/