NXP Reader Library  v17.1.0.2535
Component : Software

Software implementation of the NTAG X DNA commands. Here the NTAG X DNA commands are framed and exchanged to tag. More...

Collaboration diagram for Component : Software:

Data Structures

struct  phalNtagXDna_Sw_DataParams_t
 Data structure for NTAG X DNA Software layer implementation
More...
 

Macros

#define PHAL_NTAGXDNA_SW_ID   0x01U
 ID for Software NTAG X DNA layer.
 

Functions

phStatus_t phalNtagXDna_Sw_Init (phalNtagXDna_Sw_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pPalMifareDataParams, void *pKeyStoreDataParams, void *pCryptoDataParamsASym, void *pCryptoDataParamsEnc, void *pCryptoDataParamsMac, void *pCryptoRngDataParams, uint8_t *pCmdBuf, uint16_t wCmdBufSize, uint8_t *pPrsBuf, uint16_t wPrsBufSize)
 Initialization API for NTAG X DNA software component. More...
 
phStatus_t phalNtagXDna_Sw_DeInit (phalNtagXDna_Sw_DataParams_t *pDataParams)
 Initialization API for NTAG X DNA software component. More...
 

Detailed Description

Software implementation of the NTAG X DNA commands. Here the NTAG X DNA commands are framed and exchanged to tag.

Function Documentation

◆ phalNtagXDna_Sw_Init()

phStatus_t phalNtagXDna_Sw_Init ( phalNtagXDna_Sw_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pPalMifareDataParams,
void *  pKeyStoreDataParams,
void *  pCryptoDataParamsASym,
void *  pCryptoDataParamsEnc,
void *  pCryptoDataParamsMac,
void *  pCryptoRngDataParams,
uint8_t pCmdBuf,
uint16_t  wCmdBufSize,
uint8_t pPrsBuf,
uint16_t  wPrsBufSize 
)

Initialization API for NTAG X DNA software component.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_INVALID_DATA_PARAMS
  • If the input size doest not match the DataParams size of this component.
  • If any of the DataParams are null.
PH_ERR_INVALID_PARAMETERIf the buffers are null.
PH_ERR_PARAMETER_SIZE
  • If the buffer size is less than minimum.
  • If command buffer (wCmdBufSize) is higher than processing buffer (wPrsBufSize).
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure
[in]pPalMifareDataParams[In] Pointer to a palMifare component context.
[in]pKeyStoreDataParams[In] Pointer to Key Store data parameters.
[in]pCryptoDataParamsASym[In] Pointer to the parameter structure of the ASymmetric Crypto component.
[in]pCryptoDataParamsEnc[In] Pointer to Symmetric Crypto component context for encryption.
[in]pCryptoDataParamsMac[In] Pointer to Symmetric Crypto component context for MACing.
[in]pCryptoRngDataParams[In] Pointer to a CryptoRng component context.
[in]pCmdBuf[In] Pointer to global buffer for processing the command.
[in]wCmdBufSize[In] Size of global command buffer. Should be >= Minimum Command Buffer Size
[in]pPrsBuf[In] Pointer to global buffer for processing the response / secure messaging information.
[in]wPrsBufSize[In] Size of global response / secure messaging buffer. Should be >= Minimum Processing Buffer Size

◆ phalNtagXDna_Sw_DeInit()

phStatus_t phalNtagXDna_Sw_DeInit ( phalNtagXDna_Sw_DataParams_t pDataParams)

Initialization API for NTAG X DNA software component.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_INVALID_DATA_PARAMSIf any of the DataParams are null.
XXXXOther Depending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.