|
1 /* |
|
2 * Generated by erpcgen 1.11.0 on Wed Mar 27 13:43:44 2024. |
|
3 * |
|
4 * AUTOGENERATED - DO NOT EDIT |
|
5 */ |
|
6 |
|
7 |
|
8 #if !defined(_erpc_PLCObject_common_hpp_) |
|
9 #define _erpc_PLCObject_common_hpp_ |
|
10 |
|
11 |
|
12 #include <cstdbool> |
|
13 #include <cstddef> |
|
14 #include <cstdint> |
|
15 |
|
16 #include "erpc_version.h" |
|
17 |
|
18 #if 11100 != ERPC_VERSION_NUMBER |
|
19 #error "The generated shim code version is different to the rest of eRPC code." |
|
20 #endif |
|
21 |
|
22 |
|
23 #if !defined(ERPC_TYPE_DEFINITIONS_ERPC_PLCOBJECT) |
|
24 #define ERPC_TYPE_DEFINITIONS_ERPC_PLCOBJECT |
|
25 |
|
26 // Enumerators data types declarations |
|
27 typedef enum PLCstatus_enum |
|
28 { |
|
29 Empty = 0, |
|
30 Stopped = 1, |
|
31 Started = 2, |
|
32 Broken = 3, |
|
33 Disconnected = 4 |
|
34 } PLCstatus_enum; |
|
35 |
|
36 // Aliases data types declarations |
|
37 typedef struct binary_t binary_t; |
|
38 typedef struct PSKID PSKID; |
|
39 typedef struct PLCstatus PLCstatus; |
|
40 typedef struct trace_sample trace_sample; |
|
41 typedef struct list_trace_sample_1_t list_trace_sample_1_t; |
|
42 typedef struct TraceVariables TraceVariables; |
|
43 typedef struct extra_file extra_file; |
|
44 typedef struct list_extra_file_1_t list_extra_file_1_t; |
|
45 typedef struct trace_order trace_order; |
|
46 typedef struct list_trace_order_1_t list_trace_order_1_t; |
|
47 typedef struct log_message log_message; |
|
48 |
|
49 // Structures/unions data types declarations |
|
50 struct binary_t |
|
51 { |
|
52 uint8_t * data; |
|
53 uint32_t dataLength; |
|
54 }; |
|
55 |
|
56 struct PSKID |
|
57 { |
|
58 char * ID; |
|
59 char * PSK; |
|
60 }; |
|
61 |
|
62 struct PLCstatus |
|
63 { |
|
64 PLCstatus_enum PLCstatus; |
|
65 uint32_t logcounts[4]; |
|
66 }; |
|
67 |
|
68 struct trace_sample |
|
69 { |
|
70 uint32_t tick; |
|
71 binary_t TraceBuffer; |
|
72 }; |
|
73 |
|
74 struct list_trace_sample_1_t |
|
75 { |
|
76 trace_sample * elements; |
|
77 uint32_t elementsCount; |
|
78 }; |
|
79 |
|
80 struct TraceVariables |
|
81 { |
|
82 PLCstatus_enum PLCstatus; |
|
83 list_trace_sample_1_t traces; |
|
84 }; |
|
85 |
|
86 struct extra_file |
|
87 { |
|
88 char * fname; |
|
89 binary_t blobID; |
|
90 }; |
|
91 |
|
92 struct list_extra_file_1_t |
|
93 { |
|
94 extra_file * elements; |
|
95 uint32_t elementsCount; |
|
96 }; |
|
97 |
|
98 struct trace_order |
|
99 { |
|
100 uint32_t idx; |
|
101 binary_t force; |
|
102 }; |
|
103 |
|
104 struct list_trace_order_1_t |
|
105 { |
|
106 trace_order * elements; |
|
107 uint32_t elementsCount; |
|
108 }; |
|
109 |
|
110 struct log_message |
|
111 { |
|
112 char * msg; |
|
113 uint32_t tick; |
|
114 uint32_t sec; |
|
115 uint32_t nsec; |
|
116 }; |
|
117 |
|
118 |
|
119 #endif // ERPC_TYPE_DEFINITIONS_ERPC_PLCOBJECT |
|
120 |
|
121 |
|
122 #endif // _erpc_PLCObject_common_hpp_ |