NXP Reader Library  v17.1.0.2535
Commands_MemoryConfiguration

These Components implement the MIFARE DESFire Light Memory and Configuration Management related commands. More...

Collaboration diagram for Commands_MemoryConfiguration:

Functions

phStatus_t phalMfdfLight_SetConfiguration (void *pDataParams, uint8_t bOption, uint8_t *pData, uint8_t bDataLen)
 Configures the card and pre personalizes the card with a key, defines if the UID or the random ID is sent back during communication setup and configures the ATS string. More...
 
phStatus_t phalMfdfLight_GetCardUID (void *pDataParams, uint8_t *pUid)
 Returns the Unique ID of the PICC. More...
 
phStatus_t phalMfdfLight_GetVersion (void *pDataParams, uint8_t *pVerInfo)
 Returns manufacturing related data of the PICC. More...
 

Options for SetConfiguration command.

#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION0   0x00U
 Option 0 for PICC Configuration.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION1   0x01U
 Option 1 Reserved.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION2   0x02U
 Option 2 for ATS Update.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION3   0x03U
 Option 3 for SAK Update.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION4   0x04U
 Option 4 for Secure Messaging Configuration.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION5   0x05U
 Option 5 for Capability Data.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION6   0x06U
 Option 6 for Application Renaming.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION8   0x08U
 Option 8 for File Renaming.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION9   0x09U
 Option 9 for Value file type configuration.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION10   0x0AU
 Option 10 for Failed Authentication Counter Configuration.
 
#define PHAL_MFDFLIGHT_SET_CONFIG_OPTION11   0x0BU
 Option 11 for Hardware Configuration.
 

Detailed Description

These Components implement the MIFARE DESFire Light Memory and Configuration Management related commands.

Function Documentation

◆ phalMfdfLight_SetConfiguration()

phStatus_t phalMfdfLight_SetConfiguration ( void *  pDataParams,
uint8_t  bOption,
uint8_t pData,
uint8_t  bDataLen 
)

Configures the card and pre personalizes the card with a key, defines if the UID or the random ID is sent back during communication setup and configures the ATS string.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bOption[In] Configuration Option. Define length and content of the Data parameter.
[in]pData[In] Data for the option specified.
[in]bDataLen[In] Length of bytes available in Data buffer.

◆ phalMfdfLight_GetCardUID()

phStatus_t phalMfdfLight_GetCardUID ( void *  pDataParams,
uint8_t pUid 
)

Returns the Unique ID of the PICC.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[out]pUid[Out] The complete UID of the PICC.

◆ phalMfdfLight_GetVersion()

phStatus_t phalMfdfLight_GetVersion ( void *  pDataParams,
uint8_t pVerInfo 
)

Returns manufacturing related data of the PICC.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[out]pVerInfo[Out] The version information of the product.