Function u8bits::get_bit_range

source ·
pub fn get_bit_range(b: &u8, lsb: u8, msb: u8) -> u8
Expand description

Return the ‘value’ of byte ‘b’ in the range of the given bit positions ‘lsb’ (least significant bit) and ‘msb’ (most significant bit) inclusive.