pub fn from_register(val: u8) -> Self {
        match val {
            0 => MdmaSize::Byte,
            1 => MdmaSize::HalfWord,
            2 => MdmaSize::Word,
            3 => MdmaSize::DoubleWord,
            _ => unreachable!(),
        }
    }
/// Returns MdmaSize from the register value
Returns MdmaSize from the register value
Returns MdmaSize from the register value
pub fn from_register(val: u8) -> Self {
        match val {
            0 => MdmaSize::Byte,
            1 => MdmaSize::HalfWord,
            2 => MdmaSize::Word,
            3 => MdmaSize::DoubleWord,
            _ => unreachable!(),
        }
    }
pub fn from_register ( val : u8 ) -> Self { match val { 0 => MdmaSize :: Byte , 1 => MdmaSize :: HalfWord , 2 => MdmaSize :: Word , 3 => MdmaSize :: DoubleWord , _ => unreachable ! ( ) , } }
Returns MdmaSize from the register value
Returns MdmaSize from the register value
val
u8
val
u8