Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -ra074eec2ed7d04a1ea90072d7c9c013bf27a6e90 -r22a8500467c47070dff55824e2ec567c007434ce --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision a074eec2ed7d04a1ea90072d7c9c013bf27a6e90) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 22a8500467c47070dff55824e2ec567c007434ce) @@ -576,6 +576,20 @@ /*********************************************************************//** * @brief + * The getH4TorqueCount function gets the latest blood pump + * torque count. Count is the period in 10 uS resolution. Firmware converts + * the period to frequency and 1kHz = 10mN.m. + * @details \b Inputs: fpgaSensorReadings.h4Torque + * @details \b Outputs: none + * @return Latest blood pump torque sensor count reading. + *************************************************************************/ +S16 getH4TorqueCount( void ) +{ + return fpgaSensorReadings.h4Torque; +} + +/*********************************************************************//** + * @brief * The setH5ControlFlags function sets the control flags for the H5 ejector * stepper motor. * @note Bit 0 - MS1 (bit 1 of microstepping configuration setting)