Skip to main content

Crate rusty_modbus_frame

Crate rusty_modbus_frame 

Source
Expand description

Modbus frame layer — bridges the no_std codec to tokio async.

Implements tokio_util::codec::Decoder/Encoder for MBAP (TCP) and RTU framing. Houses CRC-16/Modbus computation and owned ('static) response types backed by Bytes.

Re-exports§

pub use crc::crc16;
pub use crc::verify_crc;
pub use error::FrameError;
pub use frame::Frame;
pub use frame::FrameHeader;
pub use frame::RtuFrameMeta;
pub use mbap::MbapCodec;
pub use owned::OwnedDeviceIdentification;
pub use owned::OwnedResponsePdu;

Modules§

crc
CRC-16/Modbus computation for RTU framing.
error
Frame-layer error types.
frame
Unified frame type for decoded Modbus frames.
mbap
MBAP codec for Modbus/TCP framing.
owned
Owned ('static, Bytes-backed) Modbus response types.
rtu
RTU serial codec for Modbus framing.
rtu_tcp
RTU-over-TCP codec for Modbus framing.