erpc_interface/README.md
author Edouard Tisserant <edouard@beremiz.fr>
Thu, 05 Dec 2024 16:45:37 +0100
changeset 4061 e0dfe8b8db4a
parent 3946 8815b44be31e
permissions -rw-r--r--
py_ext: rework logic CSV reader FB output refresh logic.

Saving with CSV write FB now triggers CSV read FBs to refresh outputs immediately.
# eRPC Interface

This directory contains the eRPC interface definition and Python generated code for RPC channel used in between IDE and PLC.

## Directory Structure

- `erpc_PLCObject.erpc`: eRPC interface definition, subset of IDL language
- `erpc_PLCObject/`: This directory contains eRPC interface generated python code
- `__init__.py`: Useless and empty file also generated by `erpcgen`


## eRPC Interface Definition

The eRPC interface definition files define the communication protocol and message formats used by the project. These files are used to generate the necessary code for both the client and server sides.

## Generated Code

The Python code generated from the eRPC interface definition provides the necessary functions and classes to interact with the eRPC server. This code is used to implement both sides of the communication.

```sh
erpcgen -g py erpc_PLCObject.erpc
```