Index: firmware/App/Services/FPGA.c =================================================================== diff -u -rb7c30522ec6cde3ca515f36a053a1fff4e14159c -r67021fbc633259e8e1bce76749dbef7d0cb51998 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision b7c30522ec6cde3ca515f36a053a1fff4e14159c) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 67021fbc633259e8e1bce76749dbef7d0cb51998) @@ -185,7 +185,7 @@ U16 fpgaFanOut2Pulse; ///< Reg 398. Fan outlet 2 pulse time in 2.5 resolution U16 fpgaFanIn3Pulse; ///< Reg 400. Fan inlet 3 pulse time in 2.5 resolution U16 fpgaFanOut3Pulse; ///< Reg 402. Fan outlet 3 pulse time in 2.5 resolution - + U16 fpgaTimerCount_ms; ///< Reg 404. Internal FPGA timer count in ms. } DG_FPGA_SENSORS_T; typedef struct @@ -1849,6 +1849,18 @@ /*********************************************************************//** * @brief + * The getFPGATimerCount function gets the latest FPGA timer millisecond count. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return last FPGA timer count + *************************************************************************/ +U16 getFPGATimerCount( void ) +{ + return fpgaSensorReadings.fpgaTimerCount_ms; +} + +/*********************************************************************//** + * @brief * The noFluidLeakDetected function returns TRUE if no fluid leak has been * detected (dry) and FALSE if a fluid leak has been detected (wet). * @details Inputs: fpgaSensorReadings