astrotools/filter_wheel.rs
1use crate::types::{DevType, DeviceType};
2
3pub trait FilterWheel {
4 fn actual_slot(&self) -> i32;
5 fn set_slot(&self, slot: i32);
6 fn set_unidirection(&self, flag: bool);
7 fn is_unidirectional(&self) -> bool;
8}
9
10impl DevType for dyn FilterWheel {
11 fn dev_type(&self) -> DeviceType {
12 DeviceType::FilterWheel
13 }
14}