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

Modules | |
| Defines | |
| Macro Definitions for Data Management commands. | |
Functions | |
| phStatus_t | phalMfDuoX_ReadData (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint8_t *pOffset, uint8_t *pLength, uint8_t **ppResponse, uint16_t *pRspLen) |
| Reads data from Standard data files, Backup data files or TransactionMAC File. More... | |
| phStatus_t | phalMfDuoX_WriteData (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint16_t wCRLVer, uint8_t *pOffset, uint8_t *pData, uint8_t *pLength) |
| Writes data to standard data files, backup data files or these files enabled to store CRL information. More... | |
| phStatus_t | phalMfDuoX_GetValue (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t **ppValue, uint16_t *pValueLen) |
| Reads the currently stored value from value files. More... | |
| phStatus_t | phalMfDuoX_Credit (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pData) |
| Increases a value stored in a Value File. More... | |
| phStatus_t | phalMfDuoX_Debit (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pData) |
| Decreases a value stored in a Value File. More... | |
| phStatus_t | phalMfDuoX_LimitedCredit (void *pDataParams, uint8_t bOption, uint8_t bFileNo, uint8_t *pData) |
| Allows a limited increase of a value stored in a Value file without having full Cmd.Credit permissions to the file. More... | |
| phStatus_t | phalMfDuoX_ReadRecords (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint8_t *pRecNo, uint8_t *pRecCount, uint8_t *pRecSize, uint8_t **ppResponse, uint16_t *pRspLen) |
| Reads out a set of complete records from a Cyclic or Linear Record File. More... | |
| phStatus_t | phalMfDuoX_WriteRecord (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint8_t *pOffset, uint8_t *pData, uint8_t *pLength) |
| Writes data to a record in a Cyclic or Linear Record File. More... | |
| phStatus_t | phalMfDuoX_UpdateRecord (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint8_t *pRecNo, uint8_t *pOffset, uint8_t *pData, uint8_t *pLength) |
| Updates data of an existing record in a LinearRecord or CyclicRecord file. More... | |
| phStatus_t | phalMfDuoX_ClearRecordFile (void *pDataParams, uint8_t bFileNo) |
| Resets a Cyclic or Linear Record File. More... | |
Describes about the MIFARE DUOX Data Management commands.
| phStatus_t phalMfDuoX_ReadData | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bIns, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pOffset, | ||
| uint8_t * | pLength, | ||
| uint8_t ** | ppResponse, | ||
| uint16_t * | pRspLen | ||
| ) |
Reads data from Standard data files, Backup data files or TransactionMAC File.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_SUCCESS_CHAINING | Indicating more data to be read. |
| 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] Options for processing of Secure Messaging and reading of data.
|
| [in] | bIns | [In] Type of chaining needs to be applied. One of the below values.
|
| [in] | bFileNo | [In] The file number from where the data to be read. ORed with Secondary Application indicator. |
| [in] | pOffset | [In] The offset from where the data should be read. Will be of 3 bytes with LSB first. If 0x10 need to be offset, then it will be 10 00 00.
|
| [in] | pLength | [In] The number of bytes to be read. Will be of 3 bytes with LSB first.
|
| [out] | ppResponse | [Out] The data returned by the PICC. |
| [out] | pRspLen | [Out] Length of bytes available in ppResponse buffer. |
| phStatus_t phalMfDuoX_WriteData | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bIns, | ||
| uint8_t | bFileNo, | ||
| uint16_t | wCRLVer, | ||
| uint8_t * | pOffset, | ||
| uint8_t * | pData, | ||
| uint8_t * | pLength | ||
| ) |
Writes data to standard data files, backup data files or these files enabled to store CRL information.
| 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] Options for processing of Secure Messaging and writing of data. |
ORed with CRLFile as target file.
| [in] | bIns | [In] Type of chaining needs to be applied. One of the below values. |
| [in] | bFileNo | [In] The file number to which the data to be written. ORed with Secondary Application indicator. |
| [in] | wCRLVer | [In] CRLVersion is a 16-bit value encoding the current version of the CRLFile. Valid if targeting CRL File. |
| [in] | pOffset | [In] The offset from where the data should be written. Will be of 3 bytes with LSB first. If 0x10 need to be offset, then it will be 10 00 00. |
| [in] | pData | [In] The data to be written to the PICC.
|
| [in] | pLength | [In] The number of bytes to be written. Will be of 3 bytes with LSB first.
|
| phStatus_t phalMfDuoX_GetValue | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t ** | ppValue, | ||
| uint16_t * | pValueLen | ||
| ) |
Reads the currently stored value from value files.
| 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] Options for processing of Secure Messaging while retrieving Value information. |
| [in] | bFileNo | [In] The file number from which the value to be retrieved. ORed with Secondary Application indicator. |
| [out] | ppValue | [Out] The value returned by the PICC. |
| [out] | pValueLen | [Out] Length of bytes available in ppValue buffer. |
| phStatus_t phalMfDuoX_Credit | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pData | ||
| ) |
Increases a value stored in a Value 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] Communication settings for the file. |
| [in] | bFileNo | [In] The file number to which the value should be credited. ORed with Secondary Application indicator. |
| [in] | pData | [In] The value to be credited. Will be of 4 bytes with LSB first. If value 0x10 need to be credited, then it will be 10 00 00 00. |
| phStatus_t phalMfDuoX_Debit | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pData | ||
| ) |
Decreases a value stored in a Value 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] Communication settings for the file. |
| [in] | bFileNo | [In] The file number to which the value should be debited. ORed with Secondary Application indicator. |
| [in] | pData | [In] The value to be debited. Will be of 4 bytes with LSB first. If value 0x10 need to be debited, then it will be 10 00 00 00. |
| phStatus_t phalMfDuoX_LimitedCredit | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pData | ||
| ) |
Allows a limited increase of a value stored in a Value file without having full Cmd.Credit permissions to the 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] Communication settings for the file. |
| [in] | bFileNo | [In] The file number to which the value should be credited. ORed with Secondary Application indicator. |
| [in] | pData | [In] The value to be credited. Will be of 4 bytes with LSB first. If value 0x10 need to be credited, then it will be 10 00 00 00. |
| phStatus_t phalMfDuoX_ReadRecords | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bIns, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pRecNo, | ||
| uint8_t * | pRecCount, | ||
| uint8_t * | pRecSize, | ||
| uint8_t ** | ppResponse, | ||
| uint16_t * | pRspLen | ||
| ) |
Reads out a set of complete records from a Cyclic or Linear Record File.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_SUCCESS_CHAINING | Indicating more data to be read. |
| 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] Options for processing ofSecure Messaging and reading of data.
|
| [in] | bIns | [In] Type of chaining needs to be applied. One of the below values.
|
| [in] | bFileNo | [In] The file number from where the data to be read. ORed with Secondary Application indicator. |
| [in] | pRecNo | [In] Record number of the newest record targeted, starting to count from the latest record written. Will be of 3 bytes with LSB first. If 0x10 need to be record number, then it will be 10 00 00. |
| [in] | pRecCount | [In] Number of records to be read. If 0x10 need to be record number, then it will be 10 00 00. |
| [in] | pRecSize | [In] The number of bytes to be read. Will be of 3 bytes with LSB first. |
| [out] | ppResponse | [Out] The data returned by the PICC. |
| [out] | pRspLen | [Out] Length of bytes available in ppResponse buffer. |
| phStatus_t phalMfDuoX_WriteRecord | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bIns, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pOffset, | ||
| uint8_t * | pData, | ||
| uint8_t * | pLength | ||
| ) |
Writes data to a record in a Cyclic or Linear Record 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] Options for processing of Secure Messaging and writing of data. |
| [in] | bIns | [In] Type of chaining needs to be applied. One of the below values. |
| [in] | bFileNo | [In] The file number to which the data to be written. ORed with Secondary Application indicator. |
| [in] | pOffset | [In] The offset from where the data should be written. Will be of 3 bytes with LSB first. If 0x10 need to be offset, then it will be 10 00 00. |
| [in] | pData | [In] The data to be written to the PICC. |
| [in] | pLength | [In] The number of bytes to be written. Will be of 3 bytes with LSB first. If 0x10 bytes need to be written, then it will be 10 00 00. |
| phStatus_t phalMfDuoX_UpdateRecord | ( | void * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t | bIns, | ||
| uint8_t | bFileNo, | ||
| uint8_t * | pRecNo, | ||
| uint8_t * | pOffset, | ||
| uint8_t * | pData, | ||
| uint8_t * | pLength | ||
| ) |
Updates data of an existing record in a LinearRecord or CyclicRecord 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] Options for processing of Secure Messaging and updating of data. |
| [in] | bIns | [In] Type of chaining needs to be applied. One of the below values. |
| [in] | bFileNo | [In] The file number to which the data to be updated. ORed with Secondary Application indicator. |
| [in] | pRecNo | [In] Record number of the newest record targeted, starting to count from the latest record updated. Will be of 3 bytes with LSB first. If 0x10 need to be record number, then it will be 10 00 00. |
| [in] | pOffset | [In] The offset from where the data should be updated. Will be of 3 bytes with LSB first. If 0x10 need to be offset, then it will be 10 00 00. |
| [in] | pData | [In] The data to be updated to the PICC. |
| [in] | pLength | [In] The number of bytes to be updated. Will be of 3 bytes with LSB first. If 0x10 bytes need to be updated, then it will be 10 00 00. |
| phStatus_t phalMfDuoX_ClearRecordFile | ( | void * | pDataParams, |
| uint8_t | bFileNo | ||
| ) |
Resets a Cyclic or Linear Record File.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | If DataParams is null. |
| PH_ERR_INVALID_PARAMETER | For Invalid File Number (bFileNo). |
| XXXX |
|
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bFileNo | [In] The file number which needs to be cleared. ORed with Secondary Application indicator. |