46 #include "Application_Resource_Configuration.h"
57 #define RECORD_SIZE 64
58 #define EVENT_MANAGER_BUFFER_SIZE 32
59 #define EVENT_MANAGER_BUFFERS_COUNT 2
60 #define GLOBAL_INDEX_BYTES_NUMBER 8
150 } TEvent_Header_Record;
157 U8 u8_Raw_Data[ 64 ];
189 } TEvent_Payload_Record;
196 U8 u8_Raw_Data[ 64 ];
210 } TEvent_Generic_Record;
222 //--------------------------------------------------------------------------
233 //--------------------------------------------------------------------------
303 //--------------------------------------------------------------------------
305 BOOL Format_Event_Storage();
339 //--------------------------------------------------------------------------
341 VOID Create_Header_Event( TEvent_Header_Record **struct_Event_Record );
353 //--------------------------------------------------------------------------
355 VOID Create_Data_Event( U64 u64_Relative_Event_Index, TEvent_Payload_Record **struct_Event_Record );
386 //--------------------------------------------------------------------------
388 U32 Get_Event_Buffer_Size();
398 //--------------------------------------------------------------------------
400 U32 Get_Event_Record_Size();
410 //--------------------------------------------------------------------------
412 U32 Get_Current_Buffer_Index();
426 //--------------------------------------------------------------------------
428 BOOL Get_Event_Record_By_Index( U64 u64_Event_Index, TEvent_Generic_Record **struct_Event_Record );
523 //--------------------------------------------------------------------------
525 VOID Send_Event_Description( TProtocol_Base *object_Protocol, U32 enum_Event_ID );
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
unsigned long long U64
Binary 64-Bit unsigned integer datatype defenition.
Definition: Defines.h:213
unsigned char U8
Binary 8-Bit unsigned integer datatype defenition.
Definition: Defines.h:183
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
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
Event database header file.
Communication protocol base class header file.
SPI NAND FLASH memory chip S25FL512 hardware driver class header file.
SPI connected memory base class header file.
System date and time calss implementation.
Event manager class.
Definition: Event_Manager_Base.h:68
virtual VOID Assign_Memory(TS25FL512 *object_Memory_Pointer)
Memory type assignment method.
Definition: Event_Manager_Base.cpp:120
virtual BOOL Get_Selected_Event(TEvent_Generic_Record **struct_Event_Record)
Method get selected event.
Definition: Event_Manager_Base.cpp:272
virtual BOOL Get_Event_Description_By_Event_ID(U32 u32_Event_ID, C8 **c8_Event_Description)
Method get pointer to event description by given event ID.
Definition: Event_Manager_Base.cpp:316
virtual VOID Execute()
Event manager background execution method.
Definition: Event_Manager_Base.cpp:180
virtual VOID Init()
Event manager initialisation method.
Definition: Event_Manager_Base.cpp:91
virtual VOID Create(U32 u32_Event_ID)
Method for creating event with determine event index.
Definition: Event_Manager_Base.cpp:148
virtual VOID Done()
Event manager finalisation method.
Definition: Event_Manager_Base.cpp:99
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Method send diagnostic information about event manager.
Definition: Event_Manager_Base.cpp:296
virtual VOID Show_Boot_Information(TProtocol_Base *object_Protocol)
Method show boot information message method.
Definition: Event_Manager_Base.cpp:107
virtual U32 Get_OS_Status()
This method return OS status.
Definition: Event_Manager_Base.cpp:352
virtual BOOL Start_Operation()
This method set module in operation mode.
Definition: Event_Manager_Base.cpp:364
virtual U32 Get_Database_Record_Count()
Method get event database descriptor hash.
Definition: Event_Manager_Base.cpp:340
virtual U64 Get_First_Event_Index()
Method get index of the first event record.
Definition: Event_Manager_Base.cpp:224
virtual BOOL Set_Selected_Event_Index(U64 u64_Selected_Event_New_Index)
Method set index of the currently selected even.
Definition: Event_Manager_Base.cpp:260
virtual U64 Get_Last_Event_Index()
Method get index of the last event record.
Definition: Event_Manager_Base.cpp:236
virtual U32 Get_Database_Hash()
Method get event database descriptor hash.
Definition: Event_Manager_Base.cpp:188
virtual U64 Get_Selected_Event_Index()
Method get index of the currently selected event.
Definition: Event_Manager_Base.cpp:248
virtual VOID Verify_Database()
Verify database method.
Definition: Event_Manager_Base.cpp:128
Definition: Protocol_Base.h:57
NAND memory hardware driver.
Definition: S25FL512.h:62
Date and time structure.
Definition: System_Date.h:88
Event descriptor structure.
Definition: Event_Database.h:241
ConOpSys variant data storage structure.
Definition: ConOpSys_Variant.h:403
TEvent_Payload_Record Event_Data
Event payload record.
Definition: Event_Manager_Base.h:206
TEvent_Header_Record Event_Header
Event header record.
Definition: Event_Manager_Base.h:203
Event payload data record, 64 bytes.
Definition: Event_Manager_Base.h:154
U32 u32_CRC
CRC32, 4 bytes.
Definition: Event_Manager_Base.h:173
U64 u64_Relative_Event_Index
Relative event information, 8 bytes.
Definition: Event_Manager_Base.h:167
U32 u32_Data_Block_Index
Data block index, 4 bytes.
Definition: Event_Manager_Base.h:170
U64 u64_Global_Event_Index
Global event index, 8 bytes.
Definition: Event_Manager_Base.h:164