NXP Reader Library  v17.1.0.2535
Commands_MIFARE_ClassicSupport

These Components implement the MIFARE DESFire EVx MIFARE Classic Support functions. More...

Collaboration diagram for Commands_MIFARE_ClassicSupport:

Functions

phStatus_t phalMfdfEVx_CreateMFCMapping (void *pDataParams, uint8_t bCommOption, uint8_t bFileNo, uint8_t bFileOption, uint8_t *pMFCBlockList, uint8_t bMFCBlocksLen, uint8_t bRestoreSource, uint8_t *pMFCLicense, uint8_t bMFCLicenseLen, uint8_t *pMFCLicenseMAC)
 Configure a mapping between one or more MIFARE Classic blocks and a DESFire FileType.StandardData, FileType.BackupData and FileType.Value file. More...
 
phStatus_t phalMfdfEVx_RestoreTransfer (void *pDataParams, uint8_t bCommOption, uint8_t bTargetFileNo, uint8_t bSourceFileNo)
 Restores the value from one FileType.Value file by transferring it into another File-Type.Value file. More...
 
phStatus_t phalMfdfEVx_RestrictMFCUpdate (void *pDataParams, uint8_t bOption, uint8_t *pMFCConfig, uint8_t bMFCConfigLen, uint8_t *pMFCLicense, uint8_t bMFCLicenseLen, uint8_t *pMFCLicenseMAC)
 Configure restriction of certain update operations over the MIFARE Classic interface. More...
 

Detailed Description

These Components implement the MIFARE DESFire EVx MIFARE Classic Support functions.

Function Documentation

◆ phalMfdfEVx_CreateMFCMapping()

phStatus_t phalMfdfEVx_CreateMFCMapping ( void *  pDataParams,
uint8_t  bCommOption,
uint8_t  bFileNo,
uint8_t  bFileOption,
uint8_t pMFCBlockList,
uint8_t  bMFCBlocksLen,
uint8_t  bRestoreSource,
uint8_t pMFCLicense,
uint8_t  bMFCLicenseLen,
uint8_t pMFCLicenseMAC 
)

Configure a mapping between one or more MIFARE Classic blocks and a DESFire FileType.StandardData, FileType.BackupData and FileType.Value file.

phalMfdfEVx_ComputeMFCLicenseMAC command.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layers parameter structure.
[in]bCommOption[In] The option to be enabled / disabled of the file.
[in]bFileNo[In] The file number to be created. ORed with PHAL_MFDFEVX_SAI to indicate secondary application indicator.
[in]bFileOption[In] The option to be enabled / disabled of the file.
[in]pMFCBlockList[In] List of block numbers of the targeted blocks.
[in]bMFCBlocksLen[In] Length of Bytes available in MFCBlockList buffer.
[in]bRestoreSource[In] File number of the allowed restore source.
[in]pMFCLicense[In] MIFARE Classic License. Should be as follows BlockCount || BlockNr1 || BlockOption1 [|| BlockNr2 || BlockOption2 || ... || BlockNrN || BlockOptionN]
[in]bMFCLicenseLen[In] Length of Bytes available in MFCLicense buffer.
[in]pMFCLicenseMAC[In] The computed MFCLicenseMAC. Should be 8 bytes.

◆ phalMfdfEVx_RestoreTransfer()

phStatus_t phalMfdfEVx_RestoreTransfer ( void *  pDataParams,
uint8_t  bCommOption,
uint8_t  bTargetFileNo,
uint8_t  bSourceFileNo 
)

Restores the value from one FileType.Value file by transferring it into another File-Type.Value file.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layers parameter structure.
[in]bCommOption[In] Communication settings for the file.
[in]bTargetFileNo[In] File number of the TargetFile to be updated.
[in]bSourceFileNo[In] File number of the SourceFile to be restored.

◆ phalMfdfEVx_RestrictMFCUpdate()

phStatus_t phalMfdfEVx_RestrictMFCUpdate ( void *  pDataParams,
uint8_t  bOption,
uint8_t pMFCConfig,
uint8_t  bMFCConfigLen,
uint8_t pMFCLicense,
uint8_t  bMFCLicenseLen,
uint8_t pMFCLicenseMAC 
)

Configure restriction of certain update operations over the MIFARE Classic interface.

To compute the MFCLicenseMAC call phalMfdfEVx_ComputeMFCLicenseMAC command.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layers parameter structure.
[in]bOption[In] Configuration Option. Define length and content of the Data parameter.
[in]pMFCConfig[In] Data content depends on option values.
[in]bMFCConfigLen[In] Length of Bytes available in MFCConfig buffer.
[in]pMFCLicense[In] MIFARE Classic License. Should be as follows BlockCount || BlockNr1 || BlockOption1 [|| BlockNr2 || BlockOption2 || ... || BlockNrN || BlockOptionN]
[in]bMFCLicenseLen[In] Length of Bytes available in MFCLicense buffer.
[in]pMFCLicenseMAC[In] The computed MFCLicenseMAC. Should be 8 bytes.