fn valid_endpoint_id(endpoint_id: u8) -> bool