Add two new types: nfc_target_type_t and nfc_target_t.

This commit is contained in:
Romuald Conty 2010-04-09 16:16:17 +00:00
parent af9f744390
commit bc4c34f851

View file

@ -231,6 +231,54 @@ typedef union {
nfc_dep_info_t ndi;
} nfc_target_info_t;
/**
* @enum nfc_target_type_t
* @brief NFC target type enumeration
*/
typedef enum {
/** Generic passive 106 kbps (ISO/IEC14443-4A, mifare, DEP) */
NTT_GENERIC_PASSIVE_106 = 0x00,
/** Generic passive 212 kbps (FeliCa, DEP) */
NTT_GENERIC_PASSIVE_212 = 0x01,
/** Generic passive 424 kbps (FeliCa, DEP) */
NTT_GENERIC_PASSIVE_424 = 0x02,
/** Passive 106 kbps ISO/IEC14443-4B */
NTT_ISO14443B_106 = 0x03,
/** Innovision Jewel tag */
NTT_JEWEL_106 = 0x04,
/** mifare card */
NTT_MIFARE = 0x10,
/** FeliCa 212 kbps card */
NTT_FELICA_212 = 0x11,
/** FeliCa 424 kbps card */
NTT_FELICA_424 = 0x12,
/** Passive 106 kbps ISO/IEC14443-4A */
NTT_ISO14443A_106 = 0x20,
/** Passive 106 kbps ISO/IEC14443-4B with TCL flag */
NTT_ISO14443B_TCL_106 = 0x23,
/** DEP passive 106 kbps */
NTT_DEP_PASSIVE_106 = 0x40,
/** DEP passive 212 kbps */
NTT_DEP_PASSIVE_212 = 0x41,
/** DEP passive 424 kbps */
NTT_DEP_PASSIVE_424 = 0x42,
/** DEP active 106 kbps */
NTT_DEP_ACTIVE_106 = 0x80,
/** DEP active 212 kbps */
NTT_DEP_ACTIVE_212 = 0x81,
/** DEP active 424 kbps */
NTT_DEP_ACTIVE_424 = 0x82,
} nfc_target_type_t;
/**
* @struct nfc_target_t
* @brief NFC target structure
*/
typedef struct {
nfc_target_info_t nti;
nfc_target_type_t ntt;
} nfc_target_t;
////////////////////////////////////////////////////////////////////
// InDataExchange, MIFARE Classic card