libnfc  1.4.2
Enumerations | Functions
pn53x.h File Reference

PN531, PN532 and PN533 common functions. More...

#include <nfc/nfc-types.h>

Go to the source code of this file.

Enumerations

enum  pn53x_modulation_t {
  PM_UNDEFINED = -1, PM_ISO14443A_106 = 0x00, PM_FELICA_212 = 0x01, PM_FELICA_424 = 0x02,
  PM_ISO14443B_106 = 0x03, PM_JEWEL_106 = 0x04, PM_ISO14443B_212 = 0x06, PM_ISO14443B_424 = 0x07,
  PM_ISO14443B_847 = 0x08
}
 NFC modulation. More...
enum  pn53x_target_type_t {
  PTT_UNDEFINED = -1, PTT_GENERIC_PASSIVE_106 = 0x00, PTT_GENERIC_PASSIVE_212 = 0x01, PTT_GENERIC_PASSIVE_424 = 0x02,
  PTT_ISO14443_4B_106 = 0x03, PTT_JEWEL_106 = 0x04, PTT_MIFARE = 0x10, PTT_FELICA_212 = 0x11,
  PTT_FELICA_424 = 0x12, PTT_ISO14443_4A_106 = 0x20, PTT_ISO14443_4B_TCL_106 = 0x23, PTT_DEP_PASSIVE_106 = 0x40,
  PTT_DEP_PASSIVE_212 = 0x41, PTT_DEP_PASSIVE_424 = 0x42, PTT_DEP_ACTIVE_106 = 0x80, PTT_DEP_ACTIVE_212 = 0x81,
  PTT_DEP_ACTIVE_424 = 0x82
}
 NFC target type enumeration. More...
enum  pn53x_target_mode_t { PTM_NORMAL = 0x00, PTM_PASSIVE_ONLY = 0x01, PTM_DEP_ONLY = 0x02, PTM_ISO14443_4_PICC_ONLY = 0x04 }
 PN53x target mode enumeration. More...

Functions

bool pn53x_InJumpForDEP (nfc_device_t *pnd, const nfc_dep_mode_t ndm, const nfc_baud_rate_t nbr, const byte_t *pbtPassiveInitiatorData, const byte_t *pbtNFCID3i, const byte_t *pbtGB, const size_t szGB, nfc_target_t *pnt)
 Wrapper for InJumpForDEP command.

Detailed Description

PN531, PN532 and PN533 common functions.

Definition in file pn53x.h.

Enumeration Type Documentation

NFC modulation.

Enumerator:
PM_UNDEFINED 

Undefined modulation

PM_ISO14443A_106 

ISO14443-A (NXP MIFARE) http://en.wikipedia.org/wiki/MIFARE

PM_FELICA_212 

JIS X 6319-4 (Sony Felica) http://en.wikipedia.org/wiki/FeliCa

PM_FELICA_424 

JIS X 6319-4 (Sony Felica) http://en.wikipedia.org/wiki/FeliCa

PM_ISO14443B_106 

ISO14443-B http://en.wikipedia.org/wiki/ISO/IEC_14443 (Not supported by PN531)

PM_JEWEL_106 

Jewel Topaz (Innovision Research & Development) (Not supported by PN531)

PM_ISO14443B_212 

ISO14443-B http://en.wikipedia.org/wiki/ISO/IEC_14443 (Not supported by PN531 nor PN532)

PM_ISO14443B_424 

ISO14443-B http://en.wikipedia.org/wiki/ISO/IEC_14443 (Not supported by PN531 nor PN532)

PM_ISO14443B_847 

ISO14443-B http://en.wikipedia.org/wiki/ISO/IEC_14443 (Not supported by PN531 nor PN532)

Definition at line 106 of file pn53x.h.

PN53x target mode enumeration.

Enumerator:
PTM_NORMAL 

Configure the PN53x to accept all initiator mode

PTM_PASSIVE_ONLY 

Configure the PN53x to accept to be initialized only in passive mode

PTM_DEP_ONLY 

Configure the PN53x to accept to be initialized only as DEP target

PTM_ISO14443_4_PICC_ONLY 

Configure the PN532 to accept to be initialized only as ISO/IEC14443-4 PICC

Definition at line 172 of file pn53x.h.

NFC target type enumeration.

Enumerator:
PTT_UNDEFINED 

Undefined target type

PTT_GENERIC_PASSIVE_106 

Generic passive 106 kbps (ISO/IEC14443-4A, mifare, DEP)

PTT_GENERIC_PASSIVE_212 

Generic passive 212 kbps (FeliCa, DEP)

PTT_GENERIC_PASSIVE_424 

Generic passive 424 kbps (FeliCa, DEP)

PTT_ISO14443_4B_106 

Passive 106 kbps ISO/IEC14443-4B

PTT_JEWEL_106 

Innovision Jewel tag

PTT_MIFARE 

Mifare card

PTT_FELICA_212 

FeliCa 212 kbps card

PTT_FELICA_424 

FeliCa 424 kbps card

PTT_ISO14443_4A_106 

Passive 106 kbps ISO/IEC 14443-4A

PTT_ISO14443_4B_TCL_106 

Passive 106 kbps ISO/IEC 14443-4B with TCL flag

PTT_DEP_PASSIVE_106 

DEP passive 106 kbps

PTT_DEP_PASSIVE_212 

DEP passive 212 kbps

PTT_DEP_PASSIVE_424 

DEP passive 424 kbps

PTT_DEP_ACTIVE_106 

DEP active 106 kbps

PTT_DEP_ACTIVE_212 

DEP active 212 kbps

PTT_DEP_ACTIVE_424 

DEP active 424 kbps

Definition at line 131 of file pn53x.h.

Function Documentation

bool pn53x_InJumpForDEP ( nfc_device_t pnd,
const nfc_dep_mode_t  ndm,
const nfc_baud_rate_t  nbr,
const byte_t *  pbtPassiveInitiatorData,
const byte_t *  pbtNFCID3i,
const byte_t *  pbtGBi,
const size_t  szGBi,
nfc_target_t pnt 
)

Wrapper for InJumpForDEP command.

Parameters
pmInitModulationdesired initial modulation
pbtPassiveInitiatorDataNFCID1 (4 bytes) at 106kbps (optionnal, see NFCIP-1: 11.2.1.26) or Polling Request Frame's payload (5 bytes) at 212/424kbps (mandatory, see NFCIP-1: 11.2.2.5)
szPassiveInitiatorDatasize of pbtPassiveInitiatorData content
pbtNFCID3iNFCID3 of the initiator
pbtGBiGeneral Bytes of the initiator
szGBicount of General Bytes
[out]pntnfc_target_t which will be filled by this function

Definition at line 968 of file pn53x.c.