microui  14.5.5
microui
microui_event_decoder.h
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2021-2026 MicroEJ Corp. All rights reserved.
5  * MicroEJ Corp. PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */
7 
16 #if !defined MICROUI_EVENT_DECODER_H
17 #define MICROUI_EVENT_DECODER_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "ui_configuration.h"
24 
25 #if defined UI_FEATURE_EVENT_DECODER && (UI_FEATURE_EVENT_DECODER == 1)
26 
27 // -----------------------------------------------------------------------------
28 // Includes
29 // -----------------------------------------------------------------------------
30 
31 #include <stdlib.h>
32 #include <stdint.h>
33 #include <stdbool.h>
34 
35 // -----------------------------------------------------------------------------
36 // Types
37 // -----------------------------------------------------------------------------
38 
46 typedef void (* MICROUI_EVENT_DECODER_decode_event_data) (uint32_t event, uint32_t data, uint32_t index);
47 
48 // -----------------------------------------------------------------------------
49 // API
50 // -----------------------------------------------------------------------------
51 
55 void MICROUI_EVENT_DECODER_describe_dump_start(void);
56 
60 void MICROUI_EVENT_DECODER_describe_dump_past(void);
61 
65 void MICROUI_EVENT_DECODER_describe_dump_future(void);
66 
71 void MICROUI_EVENT_DECODER_describe_dump_events_objects(void);
72 
76 void MICROUI_EVENT_DECODER_describe_dump_end(void);
77 
78 /*
79  * @brief Drops a data. This is an orphaned data of an old event already executed.
80  */
81 void MICROUI_EVENT_DECODER_drop_data(uint32_t data, uint32_t index);
82 
90 void MICROUI_EVENT_DECODER_decode_event(uint32_t event, uint32_t index,
91  MICROUI_EVENT_DECODER_decode_event_data *fct_data_decoder);
92 
93 // -----------------------------------------------------------------------------
94 // EOF
95 // -----------------------------------------------------------------------------
96 
97 #endif // UI_FEATURE_EVENT_DECODER
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif // MICROUI_EVENT_DECODER_H
MicroEJ MicroUI library low level API: enable some features according to the hardware capabilities.