Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r6f02ff4686ec9dfc60247e9ed3fc9c5cc7771543 -r04c811aa50770c85837d89b7e661b66f33decfb9 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 6f02ff4686ec9dfc60247e9ed3fc9c5cc7771543) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 04c811aa50770c85837d89b7e661b66f33decfb9) @@ -422,18 +422,19 @@ * blood pump rotor revolution counter. * @details \b Inputs: bloodPumpRotorCounter * @details \b Outputs: none - * @return bloodPumpRotorCounter + * @return h4RotorRevsCounter *************************************************************************/ static U32 getBloodPumpRotorCount( void ) { - U32 result = bloodPumpRotorCounter.data; + U32 h4RotorRevsCounter = (U32)getH4RotorRevsCounter(); + bloodPumpRotorCounter.data = h4RotorRevsCounter; if ( OVERRIDE_KEY == bloodPumpRotorCounter.override ) { - result = bloodPumpRotorCounter.ovData; + h4RotorRevsCounter = bloodPumpRotorCounter.ovData; } - return result; + return h4RotorRevsCounter; } /*********************************************************************//** Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -r395522dffef1348e176564925656012f529c1910 -r04c811aa50770c85837d89b7e661b66f33decfb9 --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 395522dffef1348e176564925656012f529c1910) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 04c811aa50770c85837d89b7e661b66f33decfb9) @@ -604,6 +604,19 @@ /*********************************************************************//** * @brief + * The rotorRevsCounter function gets the latest blood pump + * rotor revolutions count. + * @details \b Inputs: fpgaSensorReadings.rotorRevsCounter + * @details \b Outputs: none + * @return Latest blood pump revolutions count reading. + *************************************************************************/ +U16 getH4RotorRevsCounter( void ) +{ + return fpgaSensorReadings.rotorRevsCounter; +} + +/*********************************************************************//** + * @brief * The setH5ControlFlags function sets the control flags for the H5 ejector * stepper motor. * @note Bit 0 - MS1 (bit 1 of microstepping configuration setting) Index: firmware/App/Services/FpgaTD.h =================================================================== diff -u -r395522dffef1348e176564925656012f529c1910 -r04c811aa50770c85837d89b7e661b66f33decfb9 --- firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision 395522dffef1348e176564925656012f529c1910) +++ firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision 04c811aa50770c85837d89b7e661b66f33decfb9) @@ -91,6 +91,7 @@ S16 getH4RotorCount( void ); S16 getH4TorqueCount( void ); +U16 getH4RotorRevsCounter( void ); U08 getH6Status( void ); U08 getH6RotorStatus( void );