autd3_driver/firmware/driver/
option.rs1use std::time::Duration;
2
3pub use super::parallel_mode::ParallelMode;
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7pub struct SenderOption {
8 pub send_interval: Duration,
10 pub receive_interval: Duration,
12 pub timeout: Option<Duration>,
16 pub parallel: ParallelMode,
18 pub strict: bool,
20}
21
22impl Default for SenderOption {
23 fn default() -> Self {
24 Self {
25 send_interval: Duration::from_millis(1),
26 receive_interval: Duration::from_millis(1),
27 timeout: None,
28 parallel: ParallelMode::Auto,
29 strict: true,
30 }
31 }
32}