1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Modbus Discrete Inputs Service Module
//!
//! This module provides the necessary structures and logic to handle Modbus operations
//! related to Discrete Inputs (Function Code 0x02).
//!
//! It includes functionality for:
//! - Reading multiple or single discrete inputs.
//! - Packing and unpacking input states into bit-fields within bytes.
//! - Validating and parsing response PDUs from Modbus servers.
//!
//! This module is designed for `no_std` environments using `heapless` collections.
use ;
/// Provides operations for creating and parsing Modbus discrete input request/response PDUs.
pub