Index: firmware/App/Controllers/BloodFlow.h =================================================================== diff -u -rcf0f5e54c1a7af4d8a739cbd677d899d95e4019b -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Controllers/BloodFlow.h (.../BloodFlow.h) (revision cf0f5e54c1a7af4d8a739cbd677d899d95e4019b) +++ firmware/App/Controllers/BloodFlow.h (.../BloodFlow.h) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2022 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2024 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 Nash -* @date (last) 12-Nov-2021 +* @date (last) 06-Jun-2023 * * @author (original) Sean Nash * @date (original) 07-Nov-2019 @@ -35,7 +35,7 @@ #define MIN_SET_BLOOD_FLOW_RATE 100 ///< Minimum blood flow rate (in mL/min). #define SALINE_BOLUS_FLOW_RATE 150 ///< Saline bolus flow rate (in mL/min). -#define VOLUME_PER_BP_MOTOR_REV_ML 0.216 ///< Theoretical volume (mL) of blood/saline volume per motor revolution. +#define VOLUME_PER_BP_MOTOR_REV_ML 0.216F ///< Theoretical volume (mL) of blood/saline volume per motor revolution. #define BP_HALL_EDGE_COUNTS_PER_REV 48 ///< Number of hall sensor edge counts per motor revolution. /// Payload record structure for a blood pump data message. @@ -49,6 +49,8 @@ F32 measMCCurr; F32 pwmDC; U32 rotorCount; + U32 presFlow; + U32 rotorHall; } BLOOD_PUMP_STATUS_PAYLOAD_T; // ********** public function prototypes ********** @@ -57,7 +59,8 @@ void execBloodFlowMonitor( void ); void execBloodFlowController( void ); -BOOL setBloodPumpTargetFlowRate( U32 flowRate, MOTOR_DIR_T dir, PUMP_CONTROL_MODE_T mode ); +BOOL setBloodPumpTargetFlowRate( U32 flowRate, MOTOR_DIR_T dir, PUMP_CONTROL_MODE_T mode ); +BOOL setBloodPumpTargetRPM( U32 rpm, MOTOR_DIR_T dir ); void signalBloodPumpHardStop( void ); void signalBloodPumpRotorHallSensor( void ); BOOL homeBloodPump( void ); @@ -91,6 +94,7 @@ BOOL testResetMeasuredBloodPumpMCCurrentOverride( void ); BOOL testSetBloodPumpRotorCountOverride( U32 value ); BOOL testResetBloodPumpRotorCountOverride( void ); +BOOL testSetBloodPumpTargetDutyCycle( F32 value ); /**@}*/