Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -re3ea1f5251b7a7af6e47b9e013c3cfc11466e255 -r5b7121b237be1970c0a040809503ff5786e6da0d --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision e3ea1f5251b7a7af6e47b9e013c3cfc11466e255) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 5b7121b237be1970c0a040809503ff5786e6da0d) @@ -3130,4 +3130,98 @@ return status; } +// Blood leak functions +/*********************************************************************//** + * @brief + * The getFPGABloodLeakStatus function returns the blood leak sensor's + * blood detection status bit. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return blood leak sensor self test status bit + *************************************************************************/ +U08 getFPGABloodLeakStatus( void ) +{ + U08 selfTestStatus = fpgaSensorReadings.fpgaD42PulseStatus; + + return selfTestStatus; +} + +/*********************************************************************//** + * @brief + * The setFPGABloodLeakUARTControl function sets the blood leak sensor UART + * control value. + * @details Inputs: none + * @details Outputs: fpgaActuatorSetPoints + * @return none + *************************************************************************/ +void setFPGABloodLeakUARTControl( U08 value ) +{ + fpgaActuatorSetPoints.fpgaD42UARTControl = value; +} + +/*********************************************************************//** + * @brief + * The setFPGABloodLeakUARTTransmit function sets the blood leak sensor UART + * transmit value. + * @details Inputs: none + * @details Outputs: fpgaActuatorSetPoints + * @return none + *************************************************************************/ +void setFPGABloodLeakUARTTransmit( U08 value ) +{ + fpgaActuatorSetPoints.fpgaD42FIFOTx = value; +} + +/*********************************************************************//** + * @brief + * The getFPGABloodLeakTxFIFOCount function returns the blood leak transmit + * FIFO count. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return fpgaSensorReadings.fpgaD42TxFIFOCnt + *************************************************************************/ +U08 getFPGABloodLeakTxFIFOCount( void ) +{ + return fpgaSensorReadings.fpgaD42TxFIFOCnt; +} + +/*********************************************************************//** + * @brief + * The getFPGABloodLeakRxFIFOCount function returns the blood leak receive + * FIFO count. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return fpgaSensorReadings.fpgaD42RxFIFOCnt + *************************************************************************/ +U16 getFPGABloodLeakRxFIFOCount( void ) +{ + return fpgaSensorReadings.fpgaD42RxFIFOCnt; +} + +/*********************************************************************//** + * @brief + * The getFPGABloodLeakRxErrorCount function returns the blood leak receive + * error count. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return fpgaSensorReadings.fpgaD42RxErrorCnt + *************************************************************************/ +U08 getFPGABloodLeakRxErrorCount( void ) +{ + return fpgaSensorReadings.fpgaD42RxErrorCnt; +} + +/*********************************************************************//** + * @brief + * The getFPGABloodLeakRxFIFODataOut function returns the blood leak receive + * FIFO data out. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return fpgaSensorReadings.fpgaD42RxFIFODataOut + *************************************************************************/ +U08 getFPGABloodLeakRxFIFODataOut( void ) +{ + return fpgaSensorReadings.fpgaD42RxFIFODataOut; +} + /**@}*/