use crate::lib_enum;
use crate::result::{Error, Result};
lib_enum! {
TimingInterface: u8 {
default: BackwardsCompatible,
error: Error,
BackwardsCompatible = 0x0,
HighSpeed = 0x1,
HS200 = 0x2,
HS400 = 0x3,
}
}
impl TimingInterface {
pub const fn try_from_inner(val: u8) -> Result<Self> {
Self::from_raw(val)
}
pub const fn into_inner(self) -> u8 {
self.into_raw()
}
}