From bc4c34f851e6a19dd0c6be8e05b5e3f039fde37d Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 9 Apr 2010 16:16:17 +0000 Subject: [PATCH] Add two new types: nfc_target_type_t and nfc_target_t. --- include/nfc/nfc-types.h | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/include/nfc/nfc-types.h b/include/nfc/nfc-types.h index 575caf2..001b22a 100644 --- a/include/nfc/nfc-types.h +++ b/include/nfc/nfc-types.h @@ -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