Index: firmware/App/Services/FpgaRO.h =================================================================== diff -u -r129a1c2f4343bc85efdb4767c2dec35e4ba8ce98 -rd4d21b42ee8bd292a6d9f7966fe37abe0271dfda --- firmware/App/Services/FpgaRO.h (.../FpgaRO.h) (revision 129a1c2f4343bc85efdb4767c2dec35e4ba8ce98) +++ firmware/App/Services/FpgaRO.h (.../FpgaRO.h) (revision d4d21b42ee8bd292a6d9f7966fe37abe0271dfda) @@ -1,28 +1,80 @@ +/************************************************************************** +* +* Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. +* +* THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +* WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +* +* @file FpgaRO.h +* +* @author (last) Sean Nash +* @date (last) 09-Nov-2024 +* +* @author (original) Sean Nash +* @date (original) 09-Nov-2024 +* +***************************************************************************/ - #ifndef __FPGA_RO_H__ #define __FPGA_RO_H__ #include "ROCommon.h" +#include "FPGA.h" /** * @defgroup FpgaRO FpgaRO * @brief FPGA service unit for RO firmware. * The FPGA unit contains get/set functions for the RO FPGA registers. * - * @addtogroup FpgaTD + * @addtogroup FpgaRO * @{ */ // ********** public definitions ********** + // ********** public function prototypes ********** void initFPGARO( void ); +SELF_TEST_STATUS_T execFPGATest( void ); void checkFPGACommFailure( void ); BOOL checkFPGAFEOEFailure( void ); +void setFPGAValveStates( U16 valveStates ); +U08 getFPGAValveStates( void ); + +void setROPumpPWMPct( U16 pwm ); +U16 getROPumpPWMPct( void ); +U16 getROPumpTachCount( void ); + +S16 getFPGAPRiRawPressure( void ); +S16 getFPGAPRiRawTemperature( void ); +U08 getFPGAPRiReadCount( void ); +U08 getFPGAPRiErrorCount( void ); + +S16 getFPGAPRoRawPressure( void ); +S16 getFPGAPRoRawTemperature( void ); +U08 getFPGAPRoReadCount( void ); +U08 getFPGAPRoErrorCount( void ); + +S16 getFPGAPC2oRawPressure( void ); +S16 getFPGAPC2oRawTemperature( void ); +U08 getFPGAPC2oReadCount( void ); +U08 getFPGAPC2oErrorCount( void ); + +S16 getFPGAPPoRawPressure( void ); +S16 getFPGAPPoRawTemperature( void ); +U08 getFPGAPPoReadCount( void ); +U08 getFPGAPPoErrorCount( void ); + +S16 getFPGAPMpRawPressure( void ); +S16 getFPGAPMpRawTemperature( void ); +U08 getFPGAPMpReadCount( void ); +U08 getFPGAPMpErrorCount( void ); + +U08 getFPGAFloaterState( void ); + /**@}*/ #endif