astrotools 0.8.0

Basic building block for the lightspeed protocol and lightspeed compliant drivers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::types::{DevType, DeviceType};

pub trait FilterWheel {
    fn actual_slot(&self) -> i32;
    fn set_slot(&self, slot: i32);
    fn set_unidirection(&self, flag: bool);
    fn is_unidirectional(&self) -> bool;
}

impl DevType for dyn FilterWheel {
    fn dev_type(&self) -> DeviceType {
        DeviceType::FilterWheel
    }
}