pub fn calculate_crc5( data: &[u8], poly: u8, init: u8, ref_in: bool, ref_out: bool, xor_out: u8 ) -> u8