Index: firmware/App/Services/FPGA.c =================================================================== diff -u -re6f3a632890f96a5aa282922d11df148bdd06587 -r52763239a17119a1ffab1fb53e8eedf992ae800c --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision e6f3a632890f96a5aa282922d11df148bdd06587) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 52763239a17119a1ffab1fb53e8eedf992ae800c) @@ -185,7 +185,15 @@ 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. + U16 fpgaTimerCount_ms; ///< Reg 404. Internal FPGA timer count in ms. + U16 fpgaVccIntVoltage; ///< Req 406. Internal FPGA Vcc Int voltage + U16 fpgaVccAuxVoltage; ///< Req 408. Internal FPGA Vcc Aux voltage + U16 fpgaVpvnVoltage; ///< Req 410. Internal FPGA VPVN voltage + U16 fpgaRoPumpFeedBack; ///< Req 412. Internal FPGA RO pump feedback register + U16 fpgaDrainPumpSpeedMeasure; ///< Req 414. Drain pump speed measurement + U16 fpgaDrainPumpCurrent; ///< Req 416. Drain pump electrical current measurement + U16 fpgaDialysateFlowRate; ///< Req 418. Dialysate flow rate measurement + } DG_FPGA_SENSORS_T; typedef struct @@ -1180,6 +1188,18 @@ /*********************************************************************//** * @brief + * The getFPGAROPumpFlowRate function gets the latest RO flow rate. + * @details Inputs: fpgaSensorReadings.fpgaROFlowRate + * @details Outputs: none + * @return last RO flow rate reading + *************************************************************************/ +U16 getFPGADialysateMeterFlowRate( void ) +{ + return fpgaSensorReadings.fpgaDialysateFlowRate; +} + +/*********************************************************************//** + * @brief * The getFPGADrainPumpSpeed function gets the latest sensed drain pump speed. * @details Inputs: fpgaSensorReadings.fpgaDrainPumpSpeed * @details Outputs: none