Crate modbius_core

Source
Expand description

A low level modbus library working with raw data.

This library provides allocation free functions to work with raw modbus streams. Directly using this library is discouraged as it is mainly meant to be abstracted over.
The main idea is that a slice of bytes containing raw modbus data can be passed to various functions to build and handle requests/responses. If a function returns something it will return a tupel where the last field is the slice you should pass to the next function.

Re-exports§

pub use functions::ModbusFunction;
pub use functions::PublicModbusFunction;
pub use bitstate::BitState;
pub use slaveid::SlaveId;

Modules§

bitstate
functions
Mapping of modbus function codes and routines to read and check them
requests
slaveid
Modbus Slave Ids.
util

Enums§

ModbusSerializationError
An error type describing what can happen when parsing Modbus data from bytes