User manual

NXP Semiconductors
UM10663
NXP Reader Library User Manual
UM10663
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2013. All rights reserved.
User Manual
COMPANY PUBLIC
Rev. 1.224 July 2013
257412
35 of 47
2.4.12 PersonalizeUID
- phalMfc_PersonalizeUid()
This function configures UID to given personalization option, which has direct impact on
behavior during Anti-collision, Selection and. The default configuration at delivery
enables the ISO/IEC 14443-3 compliant anti-collision and selection. The execution of this
command requires an authentication to sector 0. Once this command has been issued
and accepted by the PICC, the configuration is automatically locked.
phStatus_t phalMfc_PersonalizeUid(
void * pDataParams, [In]
uint8_t bUidType ); [In]
*pDataParams: pointer to the MIFARE Classic AL layer data parameter structure.
bUidType: UID type.
PHAL_MFC_UID_TYPE_UIDF0 -
anti-collision and selection with the double size UID according to
ISO/IEC14443-3
#PHAL_MFC_UID_TYPE_UIDF1 -
anti-collision and selection with the double size UID according to
ISO/IEC 14443-3 and optional usage of a selection process shortcut
PHAL_MFC_UID_TYPE_UIDF2 -
anti-collision and selection with a single size random ID according
to ISO/IEC
14443-3
PHAL_MFC_UID_TYPE_UIDF3 -
anti-collision and selection with a single size NUID according to
ISO/IEC 14443-3 where the NUID is calculated out of the 7-byte UID
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.5 AL: MIFARE Ultralight commands
You can find further information about MIFARE Ultralight commands in [3]. All of them
are implemented in the Application Layer of the NXP Reader Library in the folder
NxpRdbLib_PublicRelease/comps/phalMful.
2.5.1 Init MIFARE Ultralight
- phalMfu_Sw_Init()
This function initiates MIFARE Ultralight card component.
phStatus_t phalMfu_Sw_Init(
phalMful_Sw_DataParams_t * pDataParams, [In]
uint16_t wSizeOfDataParams, [In]
void * pPalMifareDataParams, [In]
void * pKeyStoreDataParams, [In]
void * pCryptoDataParams, [In]
void * pCryptoRngDataParams ); [In]
*pDataParams: pointer to the MFUL AL layer parameter structure.
wSizeOfDataParams: specifies the size data parameter structure. Recommended to
pass here
sizeof(phalMful_Sw_DataParams_t)
.
*pPalMifareDataParams: pointer to the palMifare parameter structure.
*pKeyStoreDataParams: pointer to the phKeystore parameter structure.