Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -r9eae2f683887bededd2240f51ddfc667d8c1d566 -r862bea855cd392328aad1f4a93a275980ee17f26 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 9eae2f683887bededd2240f51ddfc667d8c1d566) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 862bea855cd392328aad1f4a93a275980ee17f26) @@ -458,6 +458,11 @@ U08 fpgaP18TempReadCount; ///< Reg 818. P18 temperature successful read count U08 fpgaP18TempErrorCount; ///< Reg 819. P18 Temperature error read count U08 fpgaP18CalMemCounter; ///< Reg 820. P18 CAL counter + U08 notUsed; ///< Reg 821. Not used. + U16 fpgaACDCPMonIrms; ///< Reg 822. AC DC Power Supply RMS Current + U16 fpgaACDCPMonVrms; ///< Reg 824. AC DC Power Supply RMS Voltage + U16 fpgaACHeaterPMonIrms; ///< Reg 826. AC Heater RMS Current + U16 fpgaACHeaterPMonVrms; ///< Reg 828. AC Heater RMS Voltage. } DD_FPGA_SENSORS_T; // TODO: Remove when Beta 1.9 is obsolete @@ -4015,4 +4020,52 @@ return fpgaSensorReadings.fpgaD92SpeedCnt; } +/*********************************************************************//** + * @brief + * The getFPGAACToDCPowerSupplyCurrent function gets AC/DC Power Supply Current + * @details \b Inputs: fpgaACDCPMonIrms + * @details \b Outputs: none + * @return power supply current in counts. + *************************************************************************/ +U16 getFPGAACToDCPowerSupplyCurrent( void ) +{ + return fpgaSensorReadings.fpgaACDCPMonIrms; +} + +/*********************************************************************//** + * @brief + * The getFPGAACToDCPowerSupplyVoltage function gets AC/DC Power Supply Voltage + * @details \b Inputs: fpgaACDCPMonVrms + * @details \b Outputs: none + * @return power supply voltage in counts. + *************************************************************************/ +U16 getFPGAACToDCPowerSupplyVoltage( void ) +{ + return fpgaSensorReadings.fpgaACDCPMonVrms; +} + +/*********************************************************************//** + * @brief + * The getFPGAACHeaterCurrent function gets AC Heater Current + * @details \b Inputs: fpgaACHeaterPMonIrms + * @details \b Outputs: none + * @return ac heater current in counts. + *************************************************************************/ +U16 getFPGAACHeaterCurrent( void ) +{ + return fpgaSensorReadings.fpgaACHeaterPMonIrms; +} + +/*********************************************************************//** + * @brief + * The getFPGAACHeaterVoltage function gets AC Heater Voltage + * @details \b Inputs: fpgaACHeaterPMonVrms + * @details \b Outputs: none + * @return power supply current in counts. + *************************************************************************/ +U16 getFPGAACHeaterVoltage( void ) +{ + return fpgaSensorReadings.fpgaACHeaterPMonVrms; +} + /**@}*/