Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rfbb77dff1aeac3b26529790ad6af0e63f5a1f578 -ra24b17c782486b016de4970acd35bd85c1e329bb --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision fbb77dff1aeac3b26529790ad6af0e63f5a1f578) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision a24b17c782486b016de4970acd35bd85c1e329bb) @@ -152,7 +152,7 @@ U08 h6RotorStatus; ///< Reg 346. H6 rotor status. U08 reserved5; ///< Reg 347. Reserved register. U16 h12Speed; ///< Reg 348. H12 speed (air pump in RPM). - U16 rotorRevsCounter; ///< Reg 350. Rotor revs counter + U16 h4RotorRevsCounter; ///< Reg 350. Rotor revs counter U16 baroManufactInfo; ///< Reg 352. Baro sensor manufacturing information. U16 baroPresSensitivity; ///< Reg 354. Baro sensor prom coefficient 1. U16 baroPresOffset; ///< Reg 356. Baro sensor prom coefficient 2. @@ -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.h4RotorRevsCounter; +} + +/*********************************************************************//** + * @brief * The setH5ControlFlags function sets the control flags for the H5 ejector * stepper motor. * @note Bit 0 - MS1 (bit 1 of microstepping configuration setting)