mbus_core/models/mod.rs
1//! # Modbus Data Models
2//!
3//! This module contains the core data structures representing the different Modbus
4//! data types and their associated access logic.
5//!
6//! Each sub-module corresponds to specific Modbus Function Codes and provides
7//! `no_std` compatible, memory-efficient models for handling protocol data.
8//!
9//! ## Supported Models
10//! - **Coils**: Single-bit read-write status (FC 0x01, 0x05, 0x0F).
11//! - **Discrete Inputs**: Single-bit read-only status (FC 0x02).
12//! - **Registers**: 16-bit read-write or read-only data (FC 0x03, 0x04, 0x06, 0x10).
13//! - **FIFO Queue**: Specialized register reading (FC 0x18).
14//! - **File Records**: Structured memory access (FC 0x14, 0x15).
15//! - **Diagnostic**: Device identification and MEI transport (FC 0x2B).
16
17#[cfg(feature = "coils")]
18pub mod coil;
19#[cfg(feature = "diagnostics")]
20pub mod diagnostic;
21#[cfg(feature = "discrete-inputs")]
22pub mod discrete_input;
23#[cfg(feature = "fifo")]
24pub mod fifo_queue;
25#[cfg(feature = "file-record")]
26pub mod file_record;
27#[cfg(feature = "registers")]
28pub mod register;