Index: firmware/App/Services/FPGA.c =================================================================== diff -u -rb9300084966f27ebd166962121c5217f5cd30eb0 -r242ad36c7a1ec4ee5012c9f009899f9e0bd87628 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision b9300084966f27ebd166962121c5217f5cd30eb0) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 242ad36c7a1ec4ee5012c9f009899f9e0bd87628) @@ -1974,87 +1974,6 @@ /*********************************************************************//** * @brief - * The noFPGABloodLeakDetected function returns TRUE if no blood leak has been - * detected and FALSE if a blood leak has been detected. - * @details Inputs: fpgaSensorReadings - * @details Outputs: none - * @return noFPGABloodLeakDetected - *************************************************************************/ -BOOL noFPGABloodLeakDetected( void ) -{ - U16 noFPGABloodLeakDetected = fpgaSensorReadings.fpgaGPIO & FPGA_BLOOD_LEAK_STATUS_MASK; - - return ( 0 == noFPGABloodLeakDetected ? TRUE : FALSE ); -} - -/*********************************************************************//** - * @brief - * The setFPGABloodLeakZero function sets the Blood Leak detector into - * zeroing mode via the FPGA. - * @details Inputs: none - * @details Outputs: fpgaActuatorSetPoints - * @return none - *************************************************************************/ -void setFPGABloodLeakZero( void ) -{ - fpgaActuatorSetPoints.fpgaSensorTest |= FPGA_BLOOD_LEAK_ZERO_CMD; -} - -/*********************************************************************//** - * @brief - * The clearFPGABloodLeakZero function clears the Blood Leak detector from - * zeroing mode via the FPGA. - * @details Inputs: fpgaSensorReadings - * @details Outputs: none - * @return none - *************************************************************************/ -void clearFPGABloodLeakZero( void ) -{ - fpgaActuatorSetPoints.fpgaSensorTest &= ~FPGA_BLOOD_LEAK_ZERO_CMD; -} - -/*********************************************************************//** - * @brief - * The setFPGABloodLeakSelfTest function sets the Blood Leak detector into - * self-test mode via the FPGA. - * @details Inputs: none - * @details Outputs: fpgaActuatorSetPoints - * @return: none - *************************************************************************/ -void setFPGABloodLeakSelfTest( void ) -{ - fpgaActuatorSetPoints.fpgaSensorTest |= FPGA_BLOOD_LEAK_SELF_TEST_CMD; -} - -/*********************************************************************//** - * @brief - * The clearFPGABloodLeakSelfTest function clears the Blood Leak detector from - * self-test mode via the FPGA. - * @details Inputs: fpgaSensorReadings - * @details Outputs: none - * @return none - *************************************************************************/ -void clearFPGABloodLeakSelfTest( void ) -{ - fpgaActuatorSetPoints.fpgaSensorTest &= ~FPGA_BLOOD_LEAK_SELF_TEST_CMD; -} - -/*********************************************************************//** - * @brief - * The getFPGABloodLeakZeroStatus function returns the blood leak sensor's - * zero status bit. - * @details Inputs: fpgaSensorReadings - * @details Outputs: none - * @return blood leak sensor zero status bit - *************************************************************************/ -U08 getFPGABloodLeakZeroStatus( void ) -{ - U08 zeroStatus = (U08)( ( fpgaSensorReadings.fpgaGPIO & FPGA_BLOOD_LEAK_ZERO_STATE_MASK ) >> FPAG_BLOOD_LEAK_ZERO_BIT_INDEX ); - return zeroStatus; -} - -/*********************************************************************//** - * @brief * The getFPGABloodLeakStatus function returns the blood leak sensor's * blood detection status bit. * @details Inputs: fpgaSensorReadings