zephyr/subsys/modbus
Henrik Lindblom 01757cfd32 modbus: add support for defining custom functions
Enables support for custom function codes. Modbus specification allows
vendor specific function codes in the range 65-72 & 100-110 [1] and this
feature allows users to implement custom logic for those codes.
Additionally, since the Zephyr Modbus stack doesn't implement all defined
Modbus fcs this feature allows users to add support for codes outside the
basic register reading / writing functionality offered by Zephyr.

Custom function codes can be added on a per-interface basis and the handler
structures are allocated by the caller.

[1]: https://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf

Signed-off-by: Henrik Lindblom <henrik.lindblom@vaisala.com>
2023-09-29 13:05:42 +02:00
..
CMakeLists.txt modbus: add raw ADU support 2021-03-19 15:50:21 +01:00
Kconfig crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
modbus_client.c modbus: use macro for function code for input register 2023-08-16 14:58:47 +02:00
modbus_core.c modbus: add support for defining custom functions 2023-09-29 13:05:42 +02:00
modbus_internal.h modbus: add support for defining custom functions 2023-09-29 13:05:42 +02:00
modbus_raw.c modbus: add user data for adu callback 2022-09-02 10:51:57 +02:00
modbus_serial.c modbus: serial: Convert to DEVICE_DT_GET 2022-06-30 10:32:42 +02:00
modbus_server.c modbus: add support for defining custom functions 2023-09-29 13:05:42 +02:00