/************************************************************************** * * 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 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 setROPumpEnable( BOOL enable ); 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 ); S16 getFPGAPPiRawPressure( void ); S16 getFPGAPPiRawTemperature( void ); U08 getFPGAPPiReadCount( void ); U08 getFPGAPPiErrorCount( void ); U08 getFPGAFloaterState( void ); U16 getFPGAFlowFMP( void ); U16 getFPGAFlowFMPTemp( void ); //U16 getFPGAFlowFMS( void ); //U16 getFPGAFlowFMSTemp( void ); void setFPGACPiControl( U08 control ); void setFPGACPiAddress( U16 address ); void setFPGACPiData( U32 data ); void setFPGACPoControl( U08 control ); void setFPGACPoAddress( U16 address ); void setFPGACPoData( U32 data ); void setFPGACPiReset( void ); void clearFPGACPiReset( void ); void setFPGACPiInitEnable( void ); void clearFPGACPiInitEnable( void ); void setFPGACPiWriteEnable( void ); void clearFPGACPiWriteEnable( void ); void setFPGACPiReadEnable( void ); void clearFPGACPiReadEnable( void ); void setFPGACPoReset( void ); void clearFPGACPoReset( void ); void setFPGACPoInitEnable( void ); void clearFPGACPoInitEnable( void ); void setFPGACPoWriteEnable( void ); void clearFPGACPoWriteEnable( void ); void setFPGACPoReadEnable( void ); void clearFPGACPoReadEnable( void ); U08 getFPGACPiReadCount( void ); U08 getFPGACPiErrorCount( void ); U16 getFPGACPiConductivity( void ); U16 getFPGACPiTemperature( void ); U32 getFPGACPiData( void ); U08 getFPGACPoReadCount( void ); U08 getFPGACPoErrorCount( void ); U16 getFPGACPoConductivity( void ); U16 getFPGACPoTemperature( void ); U32 getFPGACPoData( void ); /**@}*/ #endif