modbius_core/
lib.rs

1#![no_std]
2//! A low level modbus library working with raw data.
3//!
4//! This library provides allocation free functions to work with raw modbus streams.
5//! Directly using this library is discouraged as it is mainly meant to be abstracted over. <br/>
6//! The main idea is that a slice of bytes containing raw modbus data can be passed to various functions
7//! to build and handle requests/responses. If a function returns something it will return a tupel where the last
8//! field is the slice you should pass to the next function.
9
10pub mod functions;
11pub use functions::{ModbusFunction, PublicModbusFunction};
12
13pub mod bitstate;
14pub use bitstate::BitState; 
15
16pub mod slaveid;
17pub use slaveid::SlaveId;
18
19pub mod requests;
20
21pub mod util;
22
23mod error;
24pub use error::*;
25