diff options
Diffstat (limited to 'src/phFriNfc_TopazMap.h')
-rw-r--r-- | src/phFriNfc_TopazMap.h | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/src/phFriNfc_TopazMap.h b/src/phFriNfc_TopazMap.h index d13faac..967a6ce 100644 --- a/src/phFriNfc_TopazMap.h +++ b/src/phFriNfc_TopazMap.h @@ -20,10 +20,10 @@ * * Project: NFC-FRI * - * $Date: Tue Mar 30 11:51:44 2010 $ + * $Date: Tue Aug 31 15:13:10 2010 $ * $Author: ing02260 $ - * $Revision: 1.24 $ - * $Aliases: NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1023_R35_1 $ + * $Revision: 1.25 $ + * $Aliases: $ * */ @@ -31,16 +31,18 @@ #define PHFRINFC_TOPAZMAP_H #include <phFriNfc.h> -#if !defined PH_HAL4_ENABLE +#ifdef PH_HAL4_ENABLE #include <phHal4Nfc.h> +#else +#include <phHalNfc.h> #endif #include <phNfcStatus.h> #include <phNfcTypes.h> #include <phFriNfc_NdefMap.h> -#define PH_FRINFC_NDEFMAP_TOPAZMAP_FILEREVISION "$Revision: 1.24 $" -#define PH_FRINFC_NDEFMAP_TOPAZMAP_FILEALIASES "$Aliases: NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1023_R35_1 $" +#define PH_FRINFC_NDEFMAP_TOPAZMAP_FILEREVISION "$Revision: 1.25 $" +#define PH_FRINFC_NDEFMAP_TOPAZMAP_FILEALIASES "$Aliases: $" #if !defined (ES_HW_VER) @@ -57,6 +59,8 @@ #endif /* #if (ES_HW_VER == 32) */ +#define TOPAZ_UID_LENGTH_FOR_READ_WRITE 0x04U + /*! * \name Topaz - states of the Finite State machine * @@ -70,6 +74,12 @@ #define PH_FRINFC_TOPAZ_STATE_WRITE_NMN 6 /*!< Write ndef magic number */ #define PH_FRINFC_TOPAZ_STATE_WRITE_L_TLV 7 /*!< Write length field of TLV */ #define PH_FRINFC_TOPAZ_STATE_WR_CC_OR_TLV 8 /*!< Write CC or NDEF TLV */ + +#ifdef FRINFC_READONLY_NDEF + + #define PH_FRINFC_TOPAZ_STATE_READ_ONLY 9 /*!< READ ONLY state */ + +#endif /* #ifdef FRINFC_READONLY_NDEF */ /*@}*/ /*! @@ -223,6 +233,30 @@ enum */ void phFriNfc_TopazMap_H_Reset( phFriNfc_NdefMap_t *NdefMap); +#ifdef FRINFC_READONLY_NDEF + +/*! + * \ingroup grp_fri_smart_card_formatting + * + * \brief Initiates the conversion of the already NDEF formatted tag to READ ONLY. + * + * \copydoc page_ovr The function initiates the conversion of the already NDEF formatted + * tag to READ ONLY.After this formation, remote card would be properly Ndef Compliant and READ ONLY. + * Depending upon the different card type, this function handles formatting procedure. + * This function supports only for the TOPAZ tags. + * + * \param[in] NdefMap Pointer to a valid instance of the \ref phFriNfc_NdefMap_t structure describing + * the component context. + * \retval NFCSTATUS_PENDING The action has been successfully triggered. + * \retval Other values An error has occurred. + * + */ +NFCSTATUS +phFriNfc_TopazMap_ConvertToReadOnly ( + phFriNfc_NdefMap_t *NdefMap); + +#endif /* #ifdef FRINFC_READONLY_NDEF */ + /*! * \brief \copydoc page_ovr Initiates Reading of NDEF information from the Remote Device. * |