pub fn from_type<T: Sized>() -> Self {
        match mem::size_of::<T>() {
            1 => MdmaSize::Byte,
            2 => MdmaSize::HalfWord,
            4 => MdmaSize::Word,
            8 => MdmaSize::DoubleWord,
            _ => unreachable!(),
        }
    }
/// Returns MdmaSize from the size of a type. Undefined if
/// embedded_dma::Word is implemented for types not 1, 2, 4 or 8 bytes long.
Returns MdmaSize from the size of a type. Undefined if
embedded_dma::Word is implemented for types not 1, 2, 4 or 8 bytes long.
Returns MdmaSize from the size of a type . Undefined if embedded_dma :: Word is implemented for types not 1 2 4 or 8 bytes long .
pub fn from_type<T: Sized>() -> Self {
        match mem::size_of::<T>() {
            1 => MdmaSize::Byte,
            2 => MdmaSize::HalfWord,
            4 => MdmaSize::Word,
            8 => MdmaSize::DoubleWord,
            _ => unreachable!(),
        }
    }
pub fn from_type < T : Sized > ( ) -> Self { match mem :: size_of :: < T > ( ) { 1 => MdmaSize :: Byte , 2 => MdmaSize :: HalfWord , 4 => MdmaSize :: Word , 8 => MdmaSize :: DoubleWord , _ => unreachable ! ( ) , } }
Returns MdmaSize from the size of a type.
Returns MdmaSize from the size of a type .