pub fn mask_range(upper: u32, lower: u32) -> u8
Masks out all bits in positions less than upper, but greater than or equal to lower (upper < bit <= lower)