Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r61e5717c3410c16144d49351e727fae0992e45d2 -rc38c6d64b5f4df1fe08e2daabb37d3a7a483a4be --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 61e5717c3410c16144d49351e727fae0992e45d2) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision c38c6d64b5f4df1fe08e2daabb37d3a7a483a4be) @@ -548,12 +548,12 @@ { fpgaReadByteSize = sizeof( DG_FPGA_SENSORS_T ); -/*#ifndef _RELEASE_ +#ifndef _RELEASE_ if( ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_ENABLE_V3_SYSTEM ) ) && ( getCurrentOperationMode() != DG_MODE_INIT ) ) { fpgaReadByteSize = FPGA_SIZE_OF_V3_READ_BYTES; } -#endif*/ +#endif // FPGA incoming state machine switch ( fpgaState ) @@ -703,7 +703,7 @@ // did FPGA Ack the read command? if ( fpgaReadResponseBuffer[ 0 ] == FPGA_READ_CMD_ACK ) { - U32 rspSize = FPGA_READ_RSP_HDR_LEN + sizeof(FPGA_HEADER_T); + U32 rspSize = FPGA_READ_RSP_HDR_LEN + sizeof( FPGA_HEADER_T ); U32 crcPos = rspSize; U16 crc = MAKE_WORD_OF_BYTES( fpgaReadResponseBuffer[ crcPos ], fpgaReadResponseBuffer[ crcPos + 1 ] ); @@ -2239,21 +2239,51 @@ return fpgaSensorReadings.fpgaCPiCPoEmstatRxErrCount; } +/*********************************************************************//** + * @brief + * The getFPGATHdTemp function gets the FPGA THd temperature sensor. + * @details Inputs: fpgaSensorReadings.fpgaTHdTemp + * @details Outputs: none + * @return THd temperature sensor + *************************************************************************/ U32 getFPGATHdTemp( void ) { return fpgaSensorReadings.fpgaTHdTemp; } +/*********************************************************************//** + * @brief + * The getFPGATHdInternalTemp function gets the FPGA THd internal ADC temperature sensor. + * @details Inputs: fpgaSensorReadings.fpgaTHdInternalTemp + * @details Outputs: none + * @return THd internal ADC temperature sensor + *************************************************************************/ U32 getFPGATHdInternalTemp( void ) { return fpgaSensorReadings.fpgaTHdInternalTemp; } +/*********************************************************************//** + * @brief + * The getFPGATHdReadCount function gets the FPGA THd temperature sensor read + * count. + * @details Inputs: fpgaSensorReadings.fpgaTHdRTDReadCount + * @details Outputs: none + * @return THd FPGA read count + *************************************************************************/ U08 getFPGATHdReadCount( void ) { return fpgaSensorReadings.fpgaTHdRTDReadCount; } +/*********************************************************************//** + * @brief + * The getFPGATHdErrorCount function gets the FPGA THd temperature sensor error + * count. + * @details Inputs: fpgaSensorReadings.fpgaTHdRTDErrorCount + * @details Outputs: none + * @return THd FPGA error count + *************************************************************************/ U08 getFPGATHdErrorCount( void ) { return fpgaSensorReadings.fpgaTHdRTDErrorCount;