Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -r3b3833a0b1aed89f1ff66104519f658f5a41fa99 -ra14bc308c72272ce0275d263cf010c90d8a37355 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 3b3833a0b1aed89f1ff66104519f658f5a41fa99) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision a14bc308c72272ce0275d263cf010c90d8a37355) @@ -215,6 +215,8 @@ U16 fpgaSDPCurrentFeedback; ///< Reg 411. Spent dialysate pump current feedback U08 fpgaDGPHallStatus; ///< Reg 413. Fresh dialysate pump hall sensor direction status U08 fpgaSDPHallStatus; ///< Reg 414. Spent dialysate pump hall sensor direction status + U08 fpgaFloater1Status; ///< Reg 415. Floater 1 level sensor status + U08 fpgaFloater2Status; ///< Reg 416. Floater 2 level sensor status } DD_FPGA_SENSORS_T; typedef struct @@ -2131,6 +2133,32 @@ /*********************************************************************//** * @brief + * The getFPGAFloater1Status function gets the latest FPGA floater 1 level + * reading. + * @details \b Inputs: fpgaSensorReadings.fpgaFloater1Status + * @details \b Outputs: none + * @return last FPGA floater 1 level reading + *************************************************************************/ +U08 getFPGAFloater1Status( void ) +{ + return fpgaSensorReadings.fpgaFloater1Status; +} + +/*********************************************************************//** + * @brief + * The getFPGAFloater2Status function gets the latest FPGA floater 2 level + * reading. + * @details \b Inputs: fpgaSensorReadings.fpgaFloater2Status + * @details \b Outputs: none + * @return last FPGA floater 2 level reading + *************************************************************************/ +U08 getFPGAFloater2Status( void ) +{ + return fpgaSensorReadings.fpgaFloater2Status; +} + +/*********************************************************************//** + * @brief * The getFPGATimerCount function gets the latest FPGA timer millisecond count. * @details \b Inputs: fpgaSensorReadings * @details \b Outputs: none