Mask out uninportant bits when detecting the card.