mbus-core 0.2.0

Modbus client stack for embedded and std environments with TCP, RTU, and ASCII transport support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Modbus Data Unit Module
//!
//! This module provides the core data structures for Modbus communication,
//! encompassing both the Protocol Data Unit (PDU) and the Application Data Unit (ADU).
//!
//! It is organized into two primary sub-modules:
//! - [`common`]: Contains the transport-agnostic [`Pdu`] and the generic [`ModbusMessage`]
//!   structures used across TCP, RTU, and ASCII variants.
//! - [`tcp`]: Specifically handles the Modbus TCP implementation, including the
//!   MBAP (Modbus Application Protocol) header and TCP-specific ADU serialization.
//!
//! The data unit logic is designed to be `no_std` compatible, leveraging `heapless`
//! for deterministic memory management, which is critical for embedded systems
//! where dynamic allocation is often restricted.

pub mod common;