erpc_interface/erpc_PLCObject/client.py
changeset 4043 b217fb367574
parent 4035 c317fc64035e
equal deleted inserted replaced
4042:03df7946c2fa 4043:b217fb367574
     1 #
     1 #
     2 # Generated by erpcgen 1.12.0 on Mon May 20 17:53:37 2024.
     2 # Generated by erpcgen 1.13.0 on Fri Nov  8 11:06:24 2024.
     3 #
     3 #
     4 # AUTOGENERATED - DO NOT EDIT
     4 # AUTOGENERATED - DO NOT EDIT
     5 #
     5 #
     6 
     6 
     7 import erpc
     7 import erpc
   290         self._clientManager.perform_request(request)
   290         self._clientManager.perform_request(request)
   291         success.value = codec.read_bool()
   291         success.value = codec.read_bool()
   292         _result = codec.read_uint32()
   292         _result = codec.read_uint32()
   293         return _result
   293         return _result
   294 
   294 
   295 
   295     def ExtendedCall(self, method, argument, answer):
       
   296         assert type(answer) is erpc.Reference, "out parameter must be a Reference object"
       
   297 
       
   298         # Build remote function invocation message.
       
   299         request = self._clientManager.create_request()
       
   300         codec = request.codec
       
   301         codec.start_write_message(erpc.codec.MessageInfo(
       
   302                 type=erpc.codec.MessageType.kInvocationMessage,
       
   303                 service=self.SERVICE_ID,
       
   304                 request=self.EXTENDEDCALL_ID,
       
   305                 sequence=request.sequence))
       
   306         if method is None:
       
   307             raise ValueError("method is None")
       
   308         codec.write_string(method)
       
   309         if argument is None:
       
   310             raise ValueError("argument is None")
       
   311         codec.write_binary(argument)
       
   312 
       
   313         # Send request and process reply.
       
   314         self._clientManager.perform_request(request)
       
   315         answer.value = codec.read_binary()
       
   316         _result = codec.read_uint32()
       
   317         return _result
       
   318 
       
   319