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
// Copyright The odrive-can-driver Contributors
//! ODrive CANSimple 的无分配共享总线驱动 core。
//!
//! 此 crate 只追踪本地发送与观察到的协议帧;它不保证设备执行命令,也不会自动重试、
//! 查询、清错或改变轴状态。
//!
//! ```
//! use odrive_can_driver::{Driver, OperationState, protocol::{Command, NodeId}};
//!
//! let mut driver = Driver::new(NodeId::new(1).unwrap());
//! let id = driver.prepare_command(Command::ClearErrors, 0, 10).unwrap();
//! let attempt = driver.begin_send(id, 1).unwrap();
//! assert_eq!(attempt.frame().data(), &[]);
//! attempt.submitted(1).unwrap();
//! let report = driver.take_report(id).unwrap();
//! assert_eq!(report.state, OperationState::Submitted);
//! ```
pub use ;
/// ODrive CANSimple 编解码器及硬件无关帧类型。