This is the basic implementation of all the functions of the PN532.
Also the protocol unspecific communication with PN532 is implemented within
this class.
CAUTION: I only test getFirmwareVersion() and readPassivTargetId()!
Authenticate specified block number for a MiFare classic card.
uid: A byte array with the UID of the card.
block_number: The block to authenticate.
key_number: The key type (like MIFARE_CMD_AUTH_A or MIFARE_CMD_AUTH_B).
A byte array with the key data.
Send SAM configuration command with configuration for:
mode is default = 1, normal mode
timeout is default = 20, timeout 50ms * 20 = 1 second (PN532 timeout calculation)
irqPin is default = 1, use IRQ pin if possible (not listened to in this driver)