medius 3.4.2

Host control library for the medius transparent mouse passthrough box
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Serial transport for the control link.

use std::time::Duration;

pub(crate) const CTRL_BAUD: u32 = 6_000_000;

// Bounds a parked read so the reader thread stays responsive to stop and reconnect.
const IO_TIMEOUT: Duration = Duration::from_millis(100);

#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub(crate) use windows::SerialTransport;

#[cfg(not(windows))]
mod portable;
#[cfg(not(windows))]
pub(crate) use portable::SerialTransport;