diff options
author | Martijn Coenen <martijn.coenen@nxp.com> | 2011-01-13 23:24:24 +0100 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2011-02-25 06:44:34 +0900 |
commit | a6e012a748e70ab203655d4e1c0d0a77b6515fad (patch) | |
tree | a3aeefc1f4816c58a4e943d85fca89678432f159 /src/phFriNfc_NdefMap.h | |
parent | 29e144ebf81b0f09b3fe4c26b67485ce836909c6 (diff) | |
download | external_libnfc-nxp-a6e012a748e70ab203655d4e1c0d0a77b6515fad.zip external_libnfc-nxp-a6e012a748e70ab203655d4e1c0d0a77b6515fad.tar.gz external_libnfc-nxp-a6e012a748e70ab203655d4e1c0d0a77b6515fad.tar.bz2 |
Added support for NDEF on ICODE.
This patch allows reading and writing of NDEF messages on ICODE tags.
Change-Id: I43b4845c898c2bf268f609a5a81e991460059ff6
Diffstat (limited to 'src/phFriNfc_NdefMap.h')
-rw-r--r-- | src/phFriNfc_NdefMap.h | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/src/phFriNfc_NdefMap.h b/src/phFriNfc_NdefMap.h index a7d3459..13eb348 100644 --- a/src/phFriNfc_NdefMap.h +++ b/src/phFriNfc_NdefMap.h @@ -20,9 +20,9 @@ * * Project: NFC-FRI * - * $Date: Tue Jul 27 08:58:22 2010 $ + * $Date: Mon Dec 13 14:14:14 2010 $ * $Author: ing02260 $ - * $Revision: 1.24 $ + * $Revision: 1.25 $ * $Aliases: $ * */ @@ -108,6 +108,8 @@ #define PH_FRINFC_NDEFMAP_ISO14443_4A_CARD_EV1 9 /**< \internal Iso 14443-4A EV1 */ #endif /* #ifdef DESFIRE_EV1 */ +#define PH_FRINFC_NDEFMAP_ISO15693_CARD 10 /**< \internal ISO 15693 */ + #ifdef PH_NDEF_MIFARE_ULC #define PH_FRINFC_NDEFMAP_MIFARE_ULC_CARD 8 /**< \internal Mifare UL */ @@ -245,7 +247,41 @@ typedef enum #ifndef PH_FRINFC_EXCLUDE_FROM_TESTFW /* */ +#ifndef PH_FRINFC_MAP_ISO15693_DISABLED + +#define ISO15693_MAX_DATA_TO_STORE 0x04U +typedef struct phFriNfc_ISO15693Cont +{ + /**< \internal block number that is executed */ + uint16_t current_block; + /**< \internal The state of the operation */ + uint8_t state; + /**< \internal Completion routine index */ + uint8_t cr_index; + /**< \internal Execution sequence */ + uint8_t ndef_seq; + /**< \internal NDEF TLV size */ + uint16_t actual_ndef_size; + /**< \internal NDEF TLV size */ + uint16_t max_data_size; + /**< \internal NDEF TLV TYPE block number */ + uint16_t ndef_tlv_type_blk; + /**< \internal NDEF TLV TYPE byte number in the + "ndef_tlv_type_blk" */ + uint8_t ndef_tlv_type_byte; + /**< \internal Store the remaining bytes that can be used for + READ with continue option */ + uint8_t store_read_data[ISO15693_MAX_DATA_TO_STORE]; + uint8_t store_length; + /**< \internal Remaining size that can be read */ + uint16_t remaining_size_to_read; + uint8_t read_capabilities; + + +}phFriNfc_ISO15693Cont_t; + +#endif /* #ifndef PH_FRINFC_MAP_ISO15693_DISABLED */ @@ -903,6 +939,10 @@ typedef struct phFriNfc_NdefMap phFriNfc_TopazCont_t TopazContainer; #endif /* PH_FRINFC_MAP_TOPAZ_DISABLED */ +#ifndef PH_FRINFC_MAP_ISO15693_DISABLED + phFriNfc_ISO15693Cont_t ISO15693Container; +#endif /* #ifndef PH_FRINFC_MAP_ISO15693_DISABLED */ + #ifdef PHFRINFC_OVRHAL_MOCKUP phFriNfc_MockupCont_t MochupContainer; #endif /* PHFRINFC_OVRHAL_MOCKUP */ |