Crate async_modbus

Crate async_modbus 

Source
Expand description

§async-modbus

async-modbus provides a lightweight implementation of Modbus requests and responses with the help of zerocopy. It is designed for resource-constrained environments (being no_std by default) like embedded systems but can be used in any Rust project.

There is a basic client implementation available behind the embedded-io feature flag (enabled by default).

Re-exports§

pub use zerocopy;

Modules§

embedded_io
Client functions for embedded_io_async-based IO.
request
Modbus request messages. You can use zerocopy::IntoBytes to convert them into byte buffers for sending.
response
Modbus response messages and validation against requests.

Structs§

CrcError
Error indicating a CRC validation failure.

Enums§

Error
Errors that can occur when talking to a Modbus server.
ValidationError
Errors that can occur when validating a Modbus response.

Functions§

crc
CRC for Modbus RTU messages.