Index: firmware/App/Services/FPGA.h =================================================================== diff -u -r4fa5628781e2b420cad6afc42a4b754dd484b997 -r0dec8744af40d0c87a6d7cd1923920c1c2bd1d2f --- firmware/App/Services/FPGA.h (.../FPGA.h) (revision 4fa5628781e2b420cad6afc42a4b754dd484b997) +++ firmware/App/Services/FPGA.h (.../FPGA.h) (revision 0dec8744af40d0c87a6d7cd1923920c1c2bd1d2f) @@ -1,18 +1,19 @@ -/************************************************************************** - * - * Copyright (c) 2019-2020 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 - * - * @date 21-Oct-2019 - * @author S. Nash - * - * @brief header file for FPGA Interface service. - * - **************************************************************************/ +/************************************************************************** +* +* Copyright (c) 2019-2020 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) Quang Nguyen +* @date (last) 16-Jul-2020 +* +* @author (original) Dara Navaei +* @date (original) 05-Nov-2019 +* +***************************************************************************/ #ifndef __FPGA_H__ #define __FPGA_H__ @@ -32,10 +33,56 @@ void signalFPGAReceiptCompleted( void ); void signalFPGATransmitCompleted( void ); +void setFPGAValveStates( U16 valveStates ); +void setFPGADrainPumpSpeed( U08 drainPumpDAC ); + U16 getFPGAStatus( void ); +U16 getFPGAValveStates( void ); +U16 getFPGAROPumpFlowRate( void ); +U16 getFPGADrainPumpSpeed( void ); U32 getFPGALoadCellA1( void ); U32 getFPGALoadCellA2( void ); U32 getFPGALoadCellB1( void ); U32 getFPGALoadCellB2( void ); +U32 getFPGATPiTemp( void ); +U32 getFPGATPoTemp( void ); + +U32 getFPGACD1Temp( void ); +U32 getFPGACD2Temp( void ); + +U08 getFPGARTDErrorCount( void ); +U08 getFPGARTDReadCount( void ); + +U32 getFPGATHDoTemp( void ); + +U08 getFPGATHDoErrorCount( void ); +U08 getFPGATHDoReadCount( void ); + +U32 getFPGATDiTemp( void ); + +U08 getFPGATDiErrorCount( void ); +U08 getFPGATDiReadCount( void ); + +U16 getFPGAPrimaryHeaterTemp( void ); + +U08 getFPGAPrimaryHeaterFlags( void ); +U08 getFPGAPrimaryHeaterReadCount( void ); + +U16 getFPGATrimmerHeaterTemp( void ); + +U08 getFPGATrimmerHeaterFlags( void ); +U08 getFPGATrimmerHeaterReadCount( void ); + +U16 getFPGAPRimaryColdJunctionTemp ( void ); +U16 getFPGATrimmerColdJunctionTemp ( void ); + +U08 getFPGACPiReadCount ( void ); +U08 getFPGACPiErrorCount ( void ); +U32 getFPGACPi ( void ); + +U08 getFPGACPoReadCount ( void ); +U08 getFPGACPoErrorCount ( void ); +U32 getFPGACPo ( void ); + #endif