use smart_default::SmartDefault;
#[derive(Debug, Clone, Copy, SmartDefault)]
pub struct FxpToFp(u32);
impl FxpToFp {
pub fn new(int_width: u32) -> Self {
Self(int_width)
}
pub fn int_width(&self) -> u32 {
self.0
}
}
#[derive(Debug, Clone, Copy, SmartDefault)]
pub struct FpToFxp(u32);
impl FpToFxp {
pub fn new(int_width: u32) -> Self {
Self(int_width)
}
pub fn int_width(&self) -> u32 {
self.0
}
}