rustbac_mstp/lib.rs
1//! BACnet MS/TP data link layer implementation.
2//!
3//! Implements the ASHRAE 135 Clause 9 master node state machine for
4//! MS/TP (Master-Slave/Token-Passing) over RS-485 serial links.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7#![allow(async_fn_in_trait)]
8
9#[cfg(all(feature = "alloc", not(feature = "std")))]
10extern crate alloc;
11
12/// CRC-8 and CRC-16 routines for MS/TP frame verification.
13pub mod crc;
14/// MS/TP frame encoding and decoding.
15#[cfg(feature = "alloc")]
16pub mod frame;
17#[cfg(feature = "std")]
18mod transport;
19
20#[cfg(feature = "std")]
21pub use transport::{MstpConfig, MstpTransport};