NXP Reader Library  v17.1.0.2535
Commands_DataManagement

These Components implement the MIFARE NTAG 42xDNA Data Management related commands. More...

Collaboration diagram for Commands_DataManagement:

Functions

phStatus_t phalMfNtag42XDna_ReadData (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint8_t *pOffset, uint8_t *pLength, uint8_t **ppRxdata, uint16_t *pRxdataLen)
 Reads data from standard data files or backup data files. More...
 
phStatus_t phalMfNtag42XDna_WriteData (void *pDataParams, uint8_t bOption, uint8_t bIns, uint8_t bFileNo, uint8_t *pOffset, uint8_t *pTxData, uint8_t *pTxDataLen)
 Writes data to standard data files or backup data files. More...
 

Detailed Description

These Components implement the MIFARE NTAG 42xDNA Data Management related commands.

Function Documentation

◆ phalMfNtag42XDna_ReadData()

phStatus_t phalMfNtag42XDna_ReadData ( void *  pDataParams,
uint8_t  bOption,
uint8_t  bIns,
uint8_t  bFileNo,
uint8_t pOffset,
uint8_t pLength,
uint8_t **  ppRxdata,
uint16_t pRxdataLen 
)

Reads data from standard data files or backup data files.

Remarks

Chaining upto the size of the HAL Rx buffer is handled within this function. If more data is to be read, the user has to call this function again with bOption = PH_EXCHANGE_RXCHAINING | [one of the communication options]

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_SUCCESS_CHAININGindicating more data to be read.
Dependingon implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bOption[In] Communication settings for the file. PH_EXCHANGE_RXCHAINING: To be Or'd with the above option flag if Chaining status is returned.
[in]bIns[In] If set, uses ISO 14443-4 chaining instead of DESFire application chaining.
[in]bFileNo[In] The file number from where the data to be read.
[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. If 0x10 bytes need to be read then it will be 10 00 00.
If complete file need to be read then it will be 00 00 00.
[out]ppRxdata[Out] The data retuned by the PICC.
[out]pRxdataLen[Out] Length of bytes available in RxData buffer.

◆ phalMfNtag42XDna_WriteData()

phStatus_t phalMfNtag42XDna_WriteData ( void *  pDataParams,
uint8_t  bOption,
uint8_t  bIns,
uint8_t  bFileNo,
uint8_t pOffset,
uint8_t pTxData,
uint8_t pTxDataLen 
)

Writes data to standard data files or backup data files.

Remarks
Implements chaining to the card.
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] Communication settings for the file.
[in]bIns[In] If set, uses ISO 14443-4 chaining instead of DESFire application chaining.
[in]bFileNo[In] The file number from where the data to be read.
[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]pTxData[In] The data to be written to the PICC.
[in]pTxDataLen[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.