Index: PersistentAlarm.c =================================================================== diff -u -r7e186bb97310fb59f525e5399ec7a74711bea571 -rffd3ac3c3107860b53463bc5336bbd3ab69477a4 --- PersistentAlarm.c (.../PersistentAlarm.c) (revision 7e186bb97310fb59f525e5399ec7a74711bea571) +++ PersistentAlarm.c (.../PersistentAlarm.c) (revision ffd3ac3c3107860b53463bc5336bbd3ab69477a4) @@ -250,6 +250,18 @@ persistentAlarms[ alarmId ].errorClearedStartTime = 0; } +/*********************************************************************//** + * @brief + * The isFPGAPersistentAlarmTriggered function checks whether persistent alarm + * has been triggered or not. + * @details Inputs: alarmGroup + * @details Outputs: alarmGroup + * @param alarmGroup which is the alarm group of the persistent alarm + * (i.e. 2-wire temperature sensor) + * @param fpgaCount which is the FPGA count of the sensor group + * @param errorType which is the FPGA error type (i.e. read or error count) + * @return TRUE if the persistent alarm is triggered otherwise, FALSE + *************************************************************************/ static BOOL isFPGAPersistentAlarmTriggered( FPGA_PERSISTENT_ALARM_GROUP_T* alarmGroup, U32 fpgaCount, FPGA_ERROR_TYPE_T errorType ) { BOOL isPersistentTriggered = FALSE; @@ -291,7 +303,19 @@ return isPersistentTriggered; } -void checkFPGAPersistentAlarms( FPGA_PERSISTENT_ALARMS_GROUP_T group, U32 errorCount, U32 readCount, U32 sensorIndex ) +/*********************************************************************//** + * @brief + * The checkFPGAPersistentAlarms function checks the FPGA persistent alarm + * status of the provided FPGA persistent alarm group. + * @details Inputs: fpgaPersistentAlarmGroup + * @details Outputs: fpgaPersistentAlarmGroup + * @param alarmGroup which is the alarm group of the persistent alarm + * (i.e. 2-wire temperature sensor) + * @param errorCount which is the FPGA error count of the sensor group + * @param readCount which is the FPGA read count of the sensor group + * @return none + *************************************************************************/ +void checkFPGAPersistentAlarms( FPGA_PERSISTENT_ALARMS_GROUP_T group, U32 errorCount, U32 readCount ) { if ( group < NUM_OF_FPGA_SENSOR_GROUPS ) { @@ -318,7 +342,7 @@ if ( TRUE == isPersistenceTrgrd ) { - SET_ALARM_WITH_2_U32_DATA( fpgaPersistentAlarmGroup[ group ].fpgaAlarm, type, sensorIndex ); + SET_ALARM_WITH_2_U32_DATA( fpgaPersistentAlarmGroup[ group ].fpgaAlarm, type, group ); } } else