mod frame;
pub mod registers;
pub use frame::{Frame, FrameBuilder, ResponseFrame};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Resolution {
Int8,
Int16,
Int32,
Float,
}
impl Resolution {
pub fn size(&self) -> usize {
match self {
Resolution::Int8 => 1,
Resolution::Int16 => 2,
Resolution::Int32 => 4,
Resolution::Float => 4,
}
}
}