use serde::{Deserialize, Serialize};
mod motion;
pub use motion::*;
mod modbus;
pub use modbus::*;
mod io;
pub use io::*;
mod arm_state;
pub use arm_state::*;
#[derive(Debug, Serialize, Deserialize)]
pub struct SetStateResponse {
pub command: String,
pub set_state: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct WriteStateResponse {
pub command: String,
pub write_state: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ReceiveStateResponse {
pub command: String,
pub receive_state: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmStopResponse {
pub command: String,
pub arm_stop: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmSlowStopResponse {
pub command: String,
pub arm_slow_stop: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmPauseResponse {
pub command: String,
pub arm_pause: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmContinueResponse {
pub command: String,
pub arm_continue: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmJointTeachResponse {
pub command: String,
pub joint_teach: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmPosTeachResponse {
pub command: String,
pub pos_teach: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmOrtTeachResponse {
pub command: String,
pub ort_teach: bool,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ArmStopTeachResponse {
pub command: String,
pub stop_teach: bool,
}