pub fn get_u32<E: Copy + Into<u32>>(buf: &[E], reg: &Reg) -> u32
Retrieves the given register from a buffer and interprets it as a u32