/************************************************************************** * * 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 PersistentAlarm.h * * @author (last) Quang Nguyen * @date (last) 02-Sep-2020 * * @author (original) Quang Nguyen * @date (original) 17-Aug-2020 * ***************************************************************************/ #ifndef __PERSISTENTALARM_H__ #define __PERSISTENTALARM_H__ #include "Common.h" /** * @defgroup PersistentAlarm PersistentAlarm * @brief Persistent alarm monitor module. * Check for persistent error and return indication on whether alarm is triggered or alarm condition is cleared. * * @addtogroup PersistentAlarm * @{ */ // ********** public function prototypes ********** // Persistent period resolution is in ms void initPersistentAlarm( ALARM_ID_T alarmIndex, U32 persistentClearPeriod, U32 persistentTriggerPeriod ); BOOL isPersistentAlarmTriggered( ALARM_ID_T alarmIndex, BOOL const isErrorOccurred ); BOOL isPersistentAlarmConditionCleared( ALARM_ID_T alarmIndex, BOOL const isErrorOccurred ); /**@}*/ #endif