Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rf45f5b29e98a1ae3ec6085b4532a29082797daa8 -r8e475892c40ff0416fc5b093c2fed6be0ef92acb --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision f45f5b29e98a1ae3ec6085b4532a29082797daa8) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 8e475892c40ff0416fc5b093c2fed6be0ef92acb) @@ -504,6 +504,21 @@ /*********************************************************************//** * @brief + * The getBPStatus function gets the latest blood pump hall sensor status. + * Bit 0: 0=Forward pump direction detected, 1=Reverse pump direction detected + * Bit 1: 0=Correct pump direction detected, 1=Incorrect pump direction detected + * Bit 2..7: Running incorrect pump direction counter (wraps). + * @details \b Inputs: fpgaSensorReadings.BPHallStatus + * @details \b Outputs: none + * @return Latest blood pump hall sensor status bits. + *************************************************************************/ +U08 getBPStatus( void ) +{ + return fpgaSensorReadings.BPHallStatus; +} + +/*********************************************************************//** + * @brief * The getBloodPumpHallSensorCount function gets the latest blood pump * hall sensor count. Count is a 16 bit free running counter. If counter is * counting up, indicates motor is running in forward direction. If counter is