Regarding MiFare. According to PN5180 sw352236, in phNfcLib_MFC.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding MiFare. According to PN5180 sw352236, in phNfcLib_MFC.c

117 Views
jekim0109
Contributor II

Hello, I'm je.kim.

Here are the questions I found while using Lib of PN5180.

This is a Lib question regarding MiFare. According to sw352236, in phNfcLib_MFC.c,

in the partial source of Increment, Decrement, and Restore, in the case of PH_ERR_TO_TIMEOUT as a result of Transmit, it is supposed to be returned to PH_ERR_SUCCESS.

~~

    wStatus = phNfcLib_Mifare_Transmit(
    ((phNfcLib_Transmit_t *)pTxBuffer)->phNfcLib_MifareClassic.pBuffer,
4);
    if((wStatus & PH_ERR_MASK) == PH_ERR_IO_TIMEOUT)
    {
        return PH_ERR_SUCCESS;
    }

~~

I was wondering because there was no separate comment on the source. I would like to know if there is any special reason.

I look forward to your kind response to the above question.

Thank you.

 

0 Kudos
Reply
2 Replies

49 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @jekim0109 :

 

MIFARE DESFire product is secured with NDA. I would suggest you create a ticket for this.

 

Regards

Daniel

0 Kudos
Reply

112 Views
esther598
Contributor I

Hello,

Thank you for your question! In the PN5180 library, when Transmit encounters a PH_ERR_IO_TIMEOUT during MiFare operations (such as Increment, Decrement, or Restore), it returns PH_ERR_SUCCESS. While there isn’t a specific comment in the source, this behavior likely ensures smoother error handling. If you have any further queries, feel free to ask.

Flying Together

Best Regards

esther598

Tags (1)
0 Kudos
Reply