Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rc049177f4d18a4740a357941b48a833d7115b581 -r28d0fee79edb31bd1813045997c747bbcd0c6af1 --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision c049177f4d18a4740a357941b48a833d7115b581) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 28d0fee79edb31bd1813045997c747bbcd0c6af1) @@ -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) @@ -1278,6 +1291,18 @@ /*********************************************************************//** * @brief + * The getAirPumpRPM function reads the air pump RPM from FPGA. + * @details \b Inputs: fpgaSensorReadings + * @details \b Outputs: none + * @return air pump RPM value + *************************************************************************/ +U16 getAirPumpRPM( void ) +{ + return fpgaSensorReadings.h12Speed; +} + +/*********************************************************************//** + * @brief * The checkFPGACommFailure function increments the FPGA comm failure * windowed timer and returns whether or not the number of failures in * the window have been reached.