ConOpSys V2970  P004.07
ANVILEX control operating system
Event_Manager_Defines.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Event_Manager_Defines.h
3 //! @brief Event manager defines header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Engine/Event_Manager_Defines.h $
7 //! $Revision: 2076 $
8 //! $Date: 2020-09-12 20:30:44 +0500 (Sa, 12 Sep 2020) $
9 //! $Author: minch $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //
38 //------------------------------------------------------------------------------
39 
40 #pragma once
41 
42 //------------------------------------------------------------------------------
43 // System includes
44 //------------------------------------------------------------------------------
45 
46 #include "Defines.h"
47 
48 //------------------------------------------------------------------------------
49 // Global macro definitions
50 //------------------------------------------------------------------------------
51 
52 //! @brief Event descriptor memory mapping attribute definition
53 #define EVENT_DESCRIPTOR_DATABASE __attribute__( ( section ( "EVENT_DESCRIPTOR_DATABASE" ) ) )
54 
55 //------------------------------------------------------------------------------
56 // Global type definitions
57 //------------------------------------------------------------------------------
58 
59 //! @brief Event description structure with language index
60 typedef struct
61 {
62 
63  //! @brief Two character language code according ISO 639-1
64  union
65  {
66 
67  //! @brief Language code as 2 character ISO code string
68  C8 c8_Index[ 2 ];
69 
70  //! @brief Language code represented as U16
71  U16 u16_Index;
72 
73  } struct_Language;
74 
75  //! @brief Description text format
76  TText_Encoding enum_Encoding;
77 
78  //! @brief Pointer to the event description string
79  C8* pc8_Description_Text;
80 
82 
83 //------------------------------------------------------------------------------
84 
85 //!< Event descriptor structure
86 typedef struct
87 {
88 
89  //! @brief Event ID
91 
92  //! @brief Pointer to the description string
93  TEvent_Description_Descriptor *struct_Description;
94 
96 
97 //------------------------------------------------------------------------------
98 
99 //! @brief Event code descriptor structure. Will be depricated in the future.
100 typedef struct
101 {
102 
103  //! @brief Event code
104  U32 u32_Event_Code;
105 
106  //! @brief Pointer to event code description
107  C8 *pc8_Event_Code_Description;
108 
110 
111 //------------------------------------------------------------------------------
112 // End of file
113 //------------------------------------------------------------------------------
ConOpSys data type definitions header file.
TText_Encoding
Text encoding codes.
Definition: Defines.h:598
unsigned long long U64
Binary 64-Bit unsigned integer datatype defenition.
Definition: Defines.h:213
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
unsigned short U16
Binary 16-Bit unsigned integer datatype defenition.
Definition: Defines.h:193
char C8
ASCII 8-Bit char datatype defenition.
Definition: Defines.h:156
< DEPRICATED: Event code descriptor structure.
Definition: Event_Database.h:278
Event description structure with language index.
Definition: Event_Database.h:215
Event descriptor structure.
Definition: Event_Database.h:241
U64 u64_ID
Event ID.
Definition: Event_Manager_Defines.h:90