orbita3d_controller/io/
mod.rs

1use serde::{Deserialize, Serialize};
2
3mod fake;
4
5#[cfg(feature = "build_dynamixel")]
6mod cached_dynamixel_serial;
7#[cfg(feature = "build_dynamixel")]
8pub use cached_dynamixel_serial::CachedDynamixelSerialController;
9#[cfg(feature = "build_dynamixel")]
10mod dynamixel_serial;
11#[cfg(feature = "build_dynamixel")]
12pub use dynamixel_serial::DynamixelSerialController;
13#[cfg(feature = "build_dynamixel")]
14mod cached_poulpe;
15#[cfg(feature = "build_dynamixel")]
16pub use cached_poulpe::CachedDynamixelPoulpeController;
17#[cfg(feature = "build_dynamixel")]
18mod poulpe;
19#[cfg(feature = "build_dynamixel")]
20pub use poulpe::DynamixelPoulpeController;
21
22#[cfg(feature = "build_ethercat")]
23mod poulpe_ethercat;
24#[cfg(feature = "build_ethercat")]
25pub use poulpe_ethercat::EthercatPoulpeController;
26
27#[derive(Debug, Deserialize, Serialize)]
28/// IOConfig
29pub enum Orbita3dIOConfig {
30    #[cfg(feature = "build_dynamixel")]
31    /// DynamixelSerial Config
32    DynamixelSerial(dynamixel_serial::DynamixelSerialConfig),
33    #[cfg(feature = "build_dynamixel")]
34    /// DynamixelPoule Config
35    DynamixelPoulpe(poulpe::DynamixelPoulpeConfig),
36    /// FakeMotors Config
37    FakeMotors(fake::FakeConfig),
38    #[cfg(feature = "build_ethercat")]
39    /// Ethercat Poulpe Config
40    PoulpeEthercat(poulpe_ethercat::PoulpeEthercatConfig),
41}