Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r5182f3133eb380a6dfb76b7402fb65fe69201297 -ra06953d0fc210dd9157388c27120e2225c898a37 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 5182f3133eb380a6dfb76b7402fb65fe69201297) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision a06953d0fc210dd9157388c27120e2225c898a37) @@ -1972,87 +1972,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