roco_z21_driver/
lib.rs

1//! This crate provides asynchronous communication with a Roco Fleischmann Z21 station.
2//! It implements a reusable approach for sending and receiving asynchronous commands to and from the Z21 station.  
3//! The crate is based on the Tokio runtime.
4//!
5//! ## Features
6//! - Interacting with system state of Z21
7//! - Loco and peripheral control.
8//! - CV programming.
9//! - Asynchronous, subscription-based event handling.
10//! - Error handling.
11//! - Ready to use driver for integration into other projects.
12
13mod packet;
14mod station;
15pub use station::Loco;
16pub use station::Z21Station;
17pub mod messages;