Describes about the MIFARE DUOX File Management commands. More...

Modules | |
| Defines | |
| Macro Definitions for File Management commands. | |
Functions | |
| phStatus_t | phalMfDuoX_CreateStdDataFile (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pISOFileId, uint8_t bFileOption, uint8_t *pAccessRights, uint8_t *pFileSize) |
| Creates files for the storage of plain unformatted user data within an existing application on the PICC. More... | |
| phStatus_t | phalMfDuoX_CreateBackupDataFile (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pISOFileId, uint8_t bFileOption, uint8_t *pAccessRights, uint8_t *pFileSize) |
| Creates files for the storage of plain unformatted user data within an existing application on the PICC, additionally supporting the feature of an integrated backup mechanism. More... | |
| phStatus_t | phalMfDuoX_CreateValueFile (void *pDataParams, uint8_t bFileNo, uint8_t bFileOption, uint8_t *pAccessRights, uint8_t *pLowerLmit, uint8_t *pUpperLmit, uint8_t *pValue, uint8_t bLimitedCredit) |
| Creates files for the storage and manipulation of 32bit signed integer values within an existing application on the PICC. More... | |
| phStatus_t | phalMfDuoX_CreateLinearRecordFile (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pISOFileId, uint8_t bFileOption, uint8_t *pAccessRights, uint8_t *pRecordSize, uint8_t *pMaxNoOfRec) |
| Creates files for multiple storage of structural similar data, for example for loyalty programs within an existing application. More... | |
| phStatus_t | phalMfDuoX_CreateCyclicRecordFile (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pISOFileId, uint8_t bFileOption, uint8_t *pAccessRights, uint8_t *pRecordSize, uint8_t *pMaxNoOfRec) |
| Creates files for multiple storage of structural similar data, for example for logging transactions, within an existing application. More... | |
| phStatus_t | phalMfDuoX_DeleteFile (void *pDataParams, uint8_t bFileNo) |
| Permanently deactivates a file within the file directory of the currently selected application. More... | |
| phStatus_t | phalMfDuoX_GetFileIDs (void *pDataParams, uint8_t **ppFileId, uint16_t *pFileIdLen) |
| Returns the file IDs of all active files within the currently selected application. More... | |
| phStatus_t | phalMfDuoX_GetISOFileIDs (void *pDataParams, uint8_t **ppISOFileId, uint16_t *pISOFileIdLen) |
| Get the ISO File IDs. More... | |
| phStatus_t | phalMfDuoX_GetFileSettings (void *pDataParams, uint8_t bFileNo, uint8_t **ppFSBuffer, uint16_t *pFSBufLen) |
| Get information on the properties of a specific file. More... | |
| phStatus_t | phalMfDuoX_GetFileCounters (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t **ppFileCounters, uint16_t *pFileCounterLen) |
| Get file related counters used for Secure Dynamic Messaging. More... | |
| phStatus_t | phalMfDuoX_ChangeFileSettings (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t bFileOption, uint8_t *pAccessRights, uint8_t *pAddInfo, uint8_t bAddInfoLen) |
| Changes the access parameters of an existing file. More... | |
Describes about the MIFARE DUOX File Management commands.
| phStatus_t phalMfDuoX_CreateStdDataFile | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pISOFileId, | ||
| uint8_t | bFileOption, | ||
| uint8_t * | pAccessRights, | ||
| uint8_t * | pFileSize | ||
| ) |
Creates files for the storage of plain unformatted user data within an existing application on the PICC.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Option to represent the presence of ISO information. |
| [in] | bFileNo | [In] The file number to be created. ORed with Secondary Application indicator. |
| [in] | pISOFileId | [In] ISO File ID to be used. Should be two bytes. |
| [in] | bFileOption | [In] Option for the targeted file.
|
| [in] | pAccessRights | [In] The new access right to be applied for the file. Should be 2 byte.
|
| [in] | pFileSize | [In] The size of the file. Will be of 3 bytes with LSB first. If size 0x10 need to be created, then the FileSize will be 10 00 00. |
| phStatus_t phalMfDuoX_CreateBackupDataFile | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pISOFileId, | ||
| uint8_t | bFileOption, | ||
| uint8_t * | pAccessRights, | ||
| uint8_t * | pFileSize | ||
| ) |
Creates files for the storage of plain unformatted user data within an existing application on the PICC, additionally supporting the feature of an integrated backup mechanism.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Option to represent the presence of ISO information. |
| [in] | bFileNo | [In] The file number to be created. ORed with Secondary Application indicator. |
| [in] | pISOFileId | [In] ISO File ID to be used. Should be two bytes. |
| [in] | bFileOption | [In] Option for the targeted file.
|
| [in] | pAccessRights | [In] The new access right to be applied for the file. Should be 2 byte.
|
| [in] | pFileSize | [In] The size of the file. Will be of 3 bytes with LSB first. If size 0x10 need to be created, then the FileSize will be 10 00 00. |
| phStatus_t phalMfDuoX_CreateValueFile | ( | void * | pDataParams, |
| uint8_t | bFileNo, | ||
| uint8_t | bFileOption, | ||
| uint8_t * | pAccessRights, | ||
| uint8_t * | pLowerLmit, | ||
| uint8_t * | pUpperLmit, | ||
| uint8_t * | pValue, | ||
| uint8_t | bLimitedCredit | ||
| ) |
Creates files for the storage and manipulation of 32bit signed integer values within an existing application on the PICC.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bFileNo | [In] The file number to be created. ORed with Secondary Application indicator. |
| [in] | bFileOption | [In] Option for the targeted file.
|
| [in] | pAccessRights | [In] The new access right to be applied for the file. Should be 2 byte. |
| [in] | pLowerLmit | [In] The lower limit for the file. Will be of 4 bytes with LSB first. If value 0x10 need to be set as lower limit, then the value will be 10 00 00 00. |
| [in] | pUpperLmit | [In] The upper limit for the file. Will be of 4 bytes with LSB first. If value 0x20 need to be set as upper limit, then the value will be 20 00 00 00. |
| [in] | pValue | [In] The initial value. Will be of 4 bytes with LSB first. If value 0x10 need to be set as initial value, then the value will be 10 00 00 00. |
| [in] | bLimitedCredit | [In] Encodes if LimitedCredit and free GetValue are allowed for this file.
|
| phStatus_t phalMfDuoX_CreateLinearRecordFile | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pISOFileId, | ||
| uint8_t | bFileOption, | ||
| uint8_t * | pAccessRights, | ||
| uint8_t * | pRecordSize, | ||
| uint8_t * | pMaxNoOfRec | ||
| ) |
Creates files for multiple storage of structural similar data, for example for loyalty programs within an existing application.
Once the file is filled, further writing is not possible unless it is cleared.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Option to represent the presence of ISO information. |
| [in] | bFileNo | [In] The file number to be created. ORed with Secondary Application indicator. |
| [in] | pISOFileId | [In] ISO File ID to be used. Should be two bytes. |
| [in] | bFileOption | [In] Option for the targeted file.
|
| [in] | pAccessRights | [In] The new access right to be applied for the file. Should be 2 byte.
|
| [in] | pRecordSize | [In] The size of the file. Will be of 3 bytes with LSB first. If size 0x10 need to be created, then the RecordSize will be 10 00 00. |
| [in] | pMaxNoOfRec | [In] The maximum number of record in the file. Will be of 3 bytes with LSB first. If size 0x04 need to be created, then the value will be 04 00 00. |
| phStatus_t phalMfDuoX_CreateCyclicRecordFile | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pISOFileId, | ||
| uint8_t | bFileOption, | ||
| uint8_t * | pAccessRights, | ||
| uint8_t * | pRecordSize, | ||
| uint8_t * | pMaxNoOfRec | ||
| ) |
Creates files for multiple storage of structural similar data, for example for logging transactions, within an existing application.
Once the file is filled, the PICC automatically overwrites the oldest record with the latest written one.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Option to represent the presence of ISO information. |
| [in] | bFileNo | [In] The file number to be created. ORed with Secondary Application indicator. |
| [in] | pISOFileId | [In] ISO File ID to be used. Should be two bytes. |
| [in] | bFileOption | [In] Option for the targeted file.
|
| [in] | pAccessRights | [In] The new access right to be applied for the file. Should be 2 byte.
|
| [in] | pRecordSize | [In] The size of the file. Will be of 3 bytes with LSB first. If size 0x10 need to be created, then the RecordSize will be 10 00 00. |
| [in] | pMaxNoOfRec | [In] The maximum number of record in the file. Will be of 3 bytes with LSB first. If size 0x04 need to be created, then the value will be 04 00 00. |
| phStatus_t phalMfDuoX_DeleteFile | ( | void * | pDataParams, |
| uint8_t | bFileNo | ||
| ) |
Permanently deactivates a file within the file directory of the currently selected application.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bFileNo | [In] The file number to be deleted. ORed with Secondary Application indicator. |
| phStatus_t phalMfDuoX_GetFileIDs | ( | void * | pDataParams, |
| uint8_t ** | ppFileId, | ||
| uint16_t * | pFileIdLen | ||
| ) |
Returns the file IDs of all active files within the currently selected application.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | If the buffer is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [out] | ppFileId | [Out] The buffer containing the available File ID(s). |
| [out] | pFileIdLen | [Out] Length of bytes available in ppFid buffer. |
| phStatus_t phalMfDuoX_GetISOFileIDs | ( | void * | pDataParams, |
| uint8_t ** | ppISOFileId, | ||
| uint16_t * | pISOFileIdLen | ||
| ) |
Get the ISO File IDs.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | If the buffer is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [out] | ppISOFileId | [Out] The buffer containing the available ISO File ID(s). |
| [out] | pISOFileIdLen | [Out] Length of bytes available in ppFid buffer. |
| phStatus_t phalMfDuoX_GetFileSettings | ( | void * | pDataParams, |
| uint8_t | bFileNo, | ||
| uint8_t ** | ppFSBuffer, | ||
| uint16_t * | pFSBufLen | ||
| ) |
Get information on the properties of a specific file.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | If the buffer is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bFileNo | [In] The file number for which the setting to be retrieved. ORed with Secondary Application indicator. |
| [out] | ppFSBuffer | [Out] The buffer containing the settings. |
| [out] | pFSBufLen | [Out] Length of bytes available in ppFSBuffer buffer. |
| phStatus_t phalMfDuoX_GetFileCounters | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t ** | ppFileCounters, | ||
| uint16_t * | pFileCounterLen | ||
| ) |
Get file related counters used for Secure Dynamic Messaging.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | If the buffer is null. |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Indicates the mode of communication to be used while exchanging the data to PICC. |
| [in] | bFileNo | [In] File number for which the Counter information need to be received. ORed with Secondary Application indicator. |
| [out] | ppFileCounters | [Out] The SDMReadCounter information returned by the PICC. |
| [out] | pFileCounterLen | [Out] Length of bytes available in ppFileCounters buffer. |
| phStatus_t phalMfDuoX_ChangeFileSettings | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t | bFileOption, | ||
| uint8_t * | pAccessRights, | ||
| uint8_t * | pAddInfo, | ||
| uint8_t | bAddInfoLen | ||
| ) |
Changes the access parameters of an existing file.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER |
|
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bOption | [In] Indicates the mode of communication to be used while exchanging the data to PICC. |
| [in] | bFileNo | [In] File number for which the setting need to be updated. ORed with Secondary Application indicator. |
| [in] | bFileOption | [In] Option for the targeted file.
|
| [in] | pAccessRights | [In] Set of access conditions for the 1st set in the file. Should be 2 byte. |
| [in] | pAddInfo | [In] Buffer should contain the following information.
|
| [in] | bAddInfoLen | [In] Length of bytes available in pAddInfo buffer. |