/************************************************************************** * * 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 ********** #define MAX_RO_PUMP_PWM 100U ///< Maximum RO pump PWM duty cycle percentage. // ********** public function prototypes ********** void initFPGARO( 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 ); /**@}*/ #endif