Index: firmware/App/Services/FPGA.h =================================================================== diff -u -r984bfc66d6fe07456671a1039472356871f0161c -r7d4711edd7b40cd3e29f43e766f79a8a09586fe9 --- firmware/App/Services/FPGA.h (.../FPGA.h) (revision 984bfc66d6fe07456671a1039472356871f0161c) +++ firmware/App/Services/FPGA.h (.../FPGA.h) (revision 7d4711edd7b40cd3e29f43e766f79a8a09586fe9) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2022 Diality Inc. - All Rights Reserved. +* 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 FPGA.h * * @author (last) Dara Navaei -* @date (last) 10-Oct-2022 +* @date (last) 20-Jul-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -20,6 +20,7 @@ #include "DGCommon.h" #include "Interrupts.h" +#include "Utilities.h" /** * @defgroup FPGA FPGA @@ -48,6 +49,8 @@ void setFPGACPiProbeType( U16 probeType ); void setFPGAV3AcidPumpControl( U08 pumpControl ); void setFPGAV3BicarbPumpControl( U08 pumpControl ); +void setFPGAV3AcidPumpParkCmd( void ); +void setFPGAV3BicarbPumpParkCmd( void ); void setFPGAAcidPumpSetStepSpeed( U16 stepSpeed ); void setFPGABicarbSetStepSpeed( U16 stepSpeed ); @@ -99,7 +102,11 @@ U08 getFPGACPoErrorCount( void ); U32 getFPGACPo( void ); -U08 getFPGAConcentratePumpsFault( void ); +U08 getFPGAConcentratePumpsFault( void ); +BOOL getFPGAAcidPumpIsParked( void ); +BOOL getFPGABicarbPumpIsParked( void ); +BOOL getFPGAAcidPumpParkFault( void ); +BOOL getFPGABicarbPumpParkFault( void ); U08 getFPGAEmstatCD1CD2OutByte( void ); U08 getFPGAEmstatCD1CD2RxErrCount( void ); @@ -143,9 +150,18 @@ U16 getFPGAInternalVccAuxiliaryVoltage( void ); U16 getFPGAVPVNVoltage( void ); +#ifndef _RELEASE_ +HARDWARE_CONFIG_T getHardwareConfigStatus( void ); +#endif + //***************** DVT Functions ***************************/ + void setFPGAAcidPumpControl( U08 control ); +U08 getFPGAAcidPumpControlStatus( void ); void setFPGABicarbPumpControl( U08 control ); +U08 getFPGABicarbPumpControlStatus( void ); +void setFPGAAcidPumpParkCmd( void ); +void setFPGABicarbPumpParkCmd( void ); U08 getFPGABaroReadCount( void ); U08 getFPGABaroErrorCount( void ); @@ -182,6 +198,7 @@ U08 getFPGADrainPumpDirection( void ); U16 getFPGAOnBoardThermistorCount( void ); +U16 getFPGAPowerSupply2ThermistorCount( void ); /**@}*/