Index: AlarmMgmt.c =================================================================== diff -u -rca1d590217b1bfd14f0e0682f88e04de076ff199 -r4aab00e6bcb5c9e807f3006b3aa9a8fdcc073232 --- AlarmMgmt.c (.../AlarmMgmt.c) (revision ca1d590217b1bfd14f0e0682f88e04de076ff199) +++ AlarmMgmt.c (.../AlarmMgmt.c) (revision 4aab00e6bcb5c9e807f3006b3aa9a8fdcc073232) @@ -403,7 +403,20 @@ return result; } +/*********************************************************************//** + * @brief + * The getAlarmSource function returns the source subsystem of the given alarm. + * @details \b Inputs: ALARM_TABLE[] + * @details \b Outputs: none + * @param alarm ID of alarm to get the source. + * @return Source subsystem of the given alarm. + *************************************************************************/ +ALARM_SOURCE_T getAlarmSource( ALARM_ID_T alarm ) +{ + return getAlarmProperties( alarm ).alarmSource; +} + /************************************************************************* * TEST SUPPORT FUNCTIONS *************************************************************************/