author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Tue, 03 Dec 2024 21:26:52 +0100 | |
changeset 4058 | 5472b88bbc9d |
permissions | -rw-r--r-- |
4058
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1 |
/* |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
2 |
* Generated by erpcgen 1.13.0 on Fri Nov 22 15:03:08 2024. |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
3 |
* |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
4 |
* AUTOGENERATED - DO NOT EDIT |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
5 |
*/ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
6 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
7 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
8 |
#include "c_erpc_PLCObject_client.h" |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
9 |
#include "erpc_PLCObject_client.hpp" |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
10 |
#include "erpc_manually_constructed.hpp" |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
11 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
12 |
using namespace erpc; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
13 |
using namespace std; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
14 |
using namespace erpcShim; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
15 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
16 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
17 |
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
18 |
BeremizPLCObjectService_client *s_BeremizPLCObjectService_client = nullptr; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
19 |
#else |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
20 |
ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_client, s_BeremizPLCObjectService_client); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
21 |
#endif |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
22 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
23 |
uint32_t AppendChunkToBlob(const binary_t * data, const binary_t * blobID, binary_t * newBlobID) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
24 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
25 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
26 |
result = s_BeremizPLCObjectService_client->AppendChunkToBlob(data, blobID, newBlobID); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
27 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
28 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
29 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
30 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
31 |
uint32_t GetLogMessage(uint8_t level, uint32_t msgID, log_message * message) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
32 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
33 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
34 |
result = s_BeremizPLCObjectService_client->GetLogMessage(level, msgID, message); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
35 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
36 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
37 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
38 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
39 |
uint32_t GetPLCID(PSKID * plcID) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
40 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
41 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
42 |
result = s_BeremizPLCObjectService_client->GetPLCID(plcID); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
43 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
44 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
45 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
46 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
47 |
uint32_t GetPLCstatus(PLCstatus * status) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
48 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
49 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
50 |
result = s_BeremizPLCObjectService_client->GetPLCstatus(status); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
51 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
52 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
53 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
54 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
55 |
uint32_t GetTraceVariables(uint32_t debugToken, TraceVariables * traces) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
56 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
57 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
58 |
result = s_BeremizPLCObjectService_client->GetTraceVariables(debugToken, traces); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
59 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
60 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
61 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
62 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
63 |
uint32_t MatchMD5(const char * MD5, bool * match) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
64 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
65 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
66 |
result = s_BeremizPLCObjectService_client->MatchMD5(MD5, match); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
67 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
68 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
69 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
70 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
71 |
uint32_t NewPLC(const char * md5sum, const binary_t * plcObjectBlobID, const list_extra_file_1_t * extrafiles, bool * success) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
72 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
73 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
74 |
result = s_BeremizPLCObjectService_client->NewPLC(md5sum, plcObjectBlobID, extrafiles, success); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
75 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
76 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
77 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
78 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
79 |
uint32_t PurgeBlobs(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
80 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
81 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
82 |
result = s_BeremizPLCObjectService_client->PurgeBlobs(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
83 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
84 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
85 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
86 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
87 |
uint32_t RepairPLC(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
88 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
89 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
90 |
result = s_BeremizPLCObjectService_client->RepairPLC(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
91 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
92 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
93 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
94 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
95 |
uint32_t ResetLogCount(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
96 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
97 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
98 |
result = s_BeremizPLCObjectService_client->ResetLogCount(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
99 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
100 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
101 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
102 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
103 |
uint32_t SeedBlob(const binary_t * seed, binary_t * blobID) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
104 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
105 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
106 |
result = s_BeremizPLCObjectService_client->SeedBlob(seed, blobID); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
107 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
108 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
109 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
110 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
111 |
uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, int32_t * debugtoken) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
112 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
113 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
114 |
result = s_BeremizPLCObjectService_client->SetTraceVariablesList(orders, debugtoken); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
115 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
116 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
117 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
118 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
119 |
uint32_t StartPLC(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
120 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
121 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
122 |
result = s_BeremizPLCObjectService_client->StartPLC(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
123 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
124 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
125 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
126 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
127 |
uint32_t StopPLC(bool * success) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
128 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
129 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
130 |
result = s_BeremizPLCObjectService_client->StopPLC(success); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
131 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
132 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
133 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
134 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
135 |
uint32_t ExtendedCall(const char * method, const binary_t * argument, binary_t * answer) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
136 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
137 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
138 |
result = s_BeremizPLCObjectService_client->ExtendedCall(method, argument, answer); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
139 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
140 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
141 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
142 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
143 |
void initBeremizPLCObjectService_client(erpc_client_t client) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
144 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
145 |
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
146 |
erpc_assert(s_BeremizPLCObjectService_client == nullptr); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
147 |
s_BeremizPLCObjectService_client = new BeremizPLCObjectService_client(reinterpret_cast<ClientManager *>(client)); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
148 |
#else |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
149 |
erpc_assert(!s_BeremizPLCObjectService_client.isUsed()); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
150 |
s_BeremizPLCObjectService_client.construct(reinterpret_cast<ClientManager *>(client)); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
151 |
#endif |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
152 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
153 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
154 |
void deinitBeremizPLCObjectService_client(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
155 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
156 |
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
157 |
if (s_BeremizPLCObjectService_client != nullptr) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
158 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
159 |
delete s_BeremizPLCObjectService_client; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
160 |
s_BeremizPLCObjectService_client = nullptr; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
161 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
162 |
#else |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
163 |
s_BeremizPLCObjectService_client.destroy(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
164 |
#endif |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
165 |
} |