These Components implement the MIFARE DESFire EVx MIFARE Classic Support functions.
More...
|
| 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...
|
| |
These Components implement the MIFARE DESFire EVx MIFARE Classic Support functions.
◆ phalMfdfEVx_CreateMFCMapping()
Configure a mapping between one or more MIFARE Classic blocks and a DESFire FileType.StandardData, FileType.BackupData and FileType.Value file.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending 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()
Restores the value from one FileType.Value file by transferring it into another File-Type.Value file.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending 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. |