Index: firmware/App/Services/FPGA.c =================================================================== diff -u -re6c4c61c793a91f9ed9dfe969e01bdeee565347d -rd8dbfa71fd70064ffe00d09ffa270f477c8f7af2 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision e6c4c61c793a91f9ed9dfe969e01bdeee565347d) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision d8dbfa71fd70064ffe00d09ffa270f477c8f7af2) @@ -243,6 +243,7 @@ U08 fpgaHeater1ADCErrorCount; ///< Reg 481. Heater 1 ADC error count U16 fpgaPowerSupply2; ///< Reg 482. Power supply 2 count U16 fpgaOnBoardThermistor; ///< Reg 484. Onboard thermistor + U08 fpgaDrainPumpDirection; ///< Reg 486. Drain pump direction } DG_FPGA_SENSORS_T; typedef struct @@ -2430,4 +2431,42 @@ return fpgaSensorReadings.fpgaHeater1ADCErrorCount; } +/*********************************************************************//** + * @brief + * The getFPGADrainPumpCurrentFeedback function returns the drain pump current + * feedback. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return drain pump current feedback + *************************************************************************/ +U16 getFPGADrainPumpCurrentFeedback( void ) +{ + return fpgaSensorReadings.fpgaDrainPumpCurrentFeedback; +} + +/*********************************************************************//** + * @brief + * The getFPGADrainPumpSpeedFeedback function returns the drain pump speed + * feedback. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return drain pump speed feedback + *************************************************************************/ +U16 getFPGADrainPumpSpeedFeedback( void ) +{ + return fpgaSensorReadings.fpgaDrainPumpSpeedFeedback; +} + +/*********************************************************************//** + * @brief + * The getFPGADrainPumpDirecion function returns the drain pump direction. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return drain pump direction + *************************************************************************/ +U08 getFPGADrainPumpDirecion( void ) +{ + return fpgaSensorReadings.fpgaDrainPumpDirection; +} + /**@}*/