Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -r35ccc443e6440d79231ab4a3951bebc0e9789b68 -r7245d34b8ac29013f54c6032f3f26d36f09cbe26 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 35ccc443e6440d79231ab4a3951bebc0e9789b68) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 7245d34b8ac29013f54c6032f3f26d36f09cbe26) @@ -457,6 +457,12 @@ 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 +4021,52 @@ return fpgaSensorReadings.fpgaD92SpeedCnt; } +/*********************************************************************//** + * @brief + * The getFPGAACDCPowerSupplyCurrent function gets AC/DC Power Supply Current + * @details \b Inputs: fpgaACDCPMonIrms + * @details \b Outputs: none + * @return power supply current in counts. + *************************************************************************/ +U16 getFPGAACDCPowerSupplyCurrent( void ) +{ + return fpgaSensorReadings.fpgaACDCPMonIrms; +} + +/*********************************************************************//** + * @brief + * The getFPGAACDCPowerSupplyCurrent function gets AC/DC Power Supply Voltage + * @details \b Inputs: fpgaACDCPMonVrms + * @details \b Outputs: none + * @return power supply voltage in counts. + *************************************************************************/ +U16 getFPGAACDCPowerSupplyVoltage( 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; +} + /**@}*/