Module functions

Source
Expand description

Mapping of modbus function codes and routines to read and check them

The main way to interact with modbus function codes is to construct ModbusFunction instances The PublicModbusFunction enum maps publicly documented function codes. For reference see https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf

Structs§

ModbusFunction
A modbus function. This struct may store public as well as custom functions. The only invalid function is 0.

Enums§

PublicModbusFunction
An enum mapping all publicly documented modbus function codes

Functions§

get_function
Gets the function code of the given modbus data.
get_function_unchecked
Gets the function code of the given modbus data.