scdsu-core 0.1.1

core library crate for steam-controler-dsu
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::dsu::DSUFrame;
use crate::errors::DeviceError;

pub trait Device {
    /// Initialize the device
    fn initialize(&self) -> Result<(), DeviceError>;

    /// Read a DSU frame from the device
    fn read_frame(&self) -> Result<DSUFrame, DeviceError>;
}