OpenClovis Logo

clAlarmDefinitions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : alarm
21  * File : clAlarmDefinitions.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * This file has alarm related definitions
28  *
29  *
30  *****************************************************************************/
31 
43 #ifndef _CL_ALARM_DEFINITIONS_H_
44 #define _CL_ALARM_DEFINITIONS_H_
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 #include <clCommon.h>
51 #include <clVersion.h>
52 #include <clCorMetaData.h>
53 
54 /****************************************************************************
55  * Type/Constant definitions
56  ****************************************************************************/
57 
62 /****************************************************************************
63  * Categories of Alarm
64  ****************************************************************************/
69 #define ClAlarmEventName "CL_ALARM_EVENT_CHANNEL"
70 
75 #define CL_ALARM_EVENT 1
76 
81 typedef enum{
82 
87 
92 
97 
102 
107 
112 
113 
115 
116 /****************************************************************************
117  * Specific problem of Alarm
118  ****************************************************************************/
119 
126 typedef ClUint32T ClAlarmSpecificProblemT;
127 
131 typedef ClUint32T ClAlarmHandleT;
132 
133 /****************************************************************************
134  * Severities of Alarm
135  ****************************************************************************/
136 
142 typedef enum{
143 
148 
153 
158 
163 
168 
173 
178 
180 
181 /****************************************************************************
182  * List of probable cause of alarms.
183  ****************************************************************************/
184 
189 typedef enum{
203 
208 
213 
218 
223 
228 
233 
238 
243 
248 
253 
262 
267 
272 
277 
282 
287 
292 
297 
306 
311 
316 
321 
326 
331 
336 
341 
346 
351 
357 
362 
371 
377 
382 
387 
392 
397 
402 
407 
412 
417 
422 
427 
432 
437 
446 
451 
456 
461 
466 
471 
476 
481 
486 
491 
496 
502 
503 
509 typedef enum{
530 
532 
543 typedef struct
544 {
549 
554 
559 
567 
572 
577  ClAlarmSpecificProblemT specificProblem;
578 
583 
588 
592  ClUint32T len;
593 
597  ClUint8T buff[1];
598 
599 }ClAlarmInfoT;
600 
605 
611 typedef struct
612 {
616  ClAlarmHandleT alarmHandle;
622 
623 
627 typedef enum
628 {
635 
641 
645 typedef enum
646 {
671 
672 
677 typedef struct {
682 
686  ClAlarmSpecificProblemT specificProblem;
688 
689 typedef ClAlarmRuleEntryT VDECL_VER(ClAlarmIdT, 4, 1, 0);
690 
696 typedef struct
697 {
704 
711 
712 
720 typedef struct ClAlarmProfile
721 {
722 
728 
733 
738 
743 
747  ClUint32T assertSoakingTime;
748 
752  ClUint32T clearSoakingTime;
753 
758 
763 
767  ClAlarmSpecificProblemT specificProblem;
769 
776 {
777 
782 
787  ClUint32T pollingTime;
788 
795 
799 typedef struct ClAlarmPendingAlmInfo
800 {
804  ClAlarmHandleT alarmHandle;
805 
809  ClAlarmInfoPtrT pAlarmInfo;
811 
816 
820 typedef struct ClAlarmPendingAlmList
821 {
827  ClUint32T noOfPendingAlarm;
828 
834  ClAlarmPendingAlmInfoPtrT pAlarmList;
836 
841 
842 #ifdef __cplusplus
843 }
844 #endif
845 
846 #endif /* _CL_ALARM_DEFINITIONS_H_ */
847 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen