Added new example, PN53x chips will now emulate NDEF tag! not in build-script yet

This commit is contained in:
Roel Verdult 2010-09-28 16:15:59 +00:00
parent 5efa9e2cdb
commit 6dfe88113e
10 changed files with 159 additions and 18 deletions

View file

@ -262,6 +262,19 @@ typedef union {
nfc_dep_info_t ndi;
} nfc_target_info_t;
/**
* @enum nfc_target_mode_t
* @brief NFC target type enumeration
*/
typedef enum {
/** Configure the PN532 to accept to be initialized only in passive mode */
NTM_PASSIVE = 0x01,
/** configure the PN532 to accept to be initialized only as DEP target */
NTM_DEP = 0x02,
/** configure the PN532 to accept to be initialized only as ISO/IEC14443-4 PICC */
NTM_PICC = 0x04
} nfc_target_mode_t;
/**
* @enum nfc_target_type_t
* @brief NFC target type enumeration

View file

@ -90,7 +90,7 @@ extern "C" {
byte_t * pbtRxPar);
/* NFC target: act as tag (i.e. MIFARE Classic) or NFC target device. */
NFC_EXPORT bool nfc_target_init (nfc_device_t * pnd, byte_t * pbtRx, size_t * pszRxBits);
NFC_EXPORT bool nfc_target_init (nfc_device_t * pnd, nfc_target_mode_t tm, byte_t * pbtRx, size_t * pszRxLen);
NFC_EXPORT bool nfc_target_send_bytes (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxLen);
NFC_EXPORT bool nfc_target_receive_bytes (nfc_device_t * pnd, byte_t * pbtRx, size_t * pszRxLen);
NFC_EXPORT bool nfc_target_send_bits (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxBits,