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
38
39
40
41
42
43
44
//! # easycom
//!
//! A Rust library implementing the Easycom antenna rotator control protocol,
//! supporting the Yaesu GS-232A/B command set, Easycomm II, and Easycomm III.
//!
//! ## Quick start (std)
//!
//! ```rust,no_run
//! use easycom::{Session, Command, Response};
//! use easycom::transport::MockTransport;
//!
//! let mut transport = MockTransport::new();
//! transport.enqueue_response(b"AZ=270 EL=045\r".to_vec());
//!
//! let mut session = Session::new(transport);
//! match session.send(Command::QueryPosition).unwrap() {
//! Response::Position { az, el } => println!("AZ={az} EL={el}"),
//! Response::AzimuthPosition(az) => println!("AZ={az}"),
//! Response::ElevationPosition(el) => println!("EL={el}"),
//! Response::Status(status) => println!("status: {status:?}"),
//! Response::StatusRegister(val) => println!("status register: {val}"),
//! Response::ErrorRegister(val) => println!("error register: {val}"),
//! Response::ConfigValue { register, value } => println!("CR{register}={value}"),
//! Response::Ack => println!("ack"),
//! Response::Error => println!("device error"),
//! }
//! ```
extern crate alloc;
pub use ;
pub use Error;
pub use ;
pub use Session;
pub use Transport;