autd3_core/ethercat/mod.rs
1mod dc_sys_time;
2
3pub use dc_sys_time::DcSysTime;
4
5use core::time::Duration;
6
7/// PDO output frame size
8pub const EC_OUTPUT_FRAME_SIZE: usize = 626;
9/// PDO input frame size
10pub const EC_INPUT_FRAME_SIZE: usize = 2;
11
12/// The base unit of the EtherCAT
13pub const EC_CYCLE_TIME_BASE: Duration = Duration::from_micros(500);
14
15/// The base point of system time
16pub const ECAT_DC_SYS_TIME_BASE: time::OffsetDateTime =
17 time::macros::datetime!(2000-01-01 0:00 UTC);