<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>NFCのトピックRe: NXP discovery loop on Interrupt</title>
    <link>https://community.nxp.com/t5/NFC/NXP-discovery-loop-on-Interrupt/m-p/1281478#M8541</link>
    <description>&lt;P&gt;Hello NXP Team,&lt;/P&gt;&lt;P&gt;Please help us to resolve the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 05:11:46 GMT</pubDate>
    <dc:creator>sandip_sathvara</dc:creator>
    <dc:date>2021-05-25T05:11:46Z</dc:date>
    <item>
      <title>NXP discovery loop on Interrupt</title>
      <link>https://community.nxp.com/t5/NFC/NXP-discovery-loop-on-Interrupt/m-p/1276400#M8520</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are using AM335x based custom board. We have connected the CLRC663&amp;nbsp;RFID card reader to the I2C lines. and we have integrated RFID&amp;nbsp;NFC Reader Library in our application. everything works fine. We are able to read/write the Mifare Classic RFID card's memory. We have used the Discovery loop to detect the RFID card. below is the code snippet for that.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;do&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* Field OFF */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;status = phhalHw_FieldOff(pHal);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;CHECK_STATUS(status);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;/* Polling interval for the card detection */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;/* Configure Discovery loop for Poll Mode */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;status = phacDiscLoop_SetConfig(pDiscLoop,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PHAC_DISCLOOP_CONFIG_NEXT_POLL_STATE,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PHAC_DISCLOOP_POLL_STATE_DETECTION);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CHECK_STATUS(status);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Run Discovery loop */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; status = phacDiscLoop_Run(pDiscLoop,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PHAC_DISCLOOP_ENTRY_POINT_POLL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Exit on Card detection */&lt;BR /&gt;} while ((status &amp;amp; PH_ERR_MASK) != PHAC_DISCLOOP_DEVICE_ACTIVATED);&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;As you can see, Here we are polling for the RFID card using the Discovery loop, which uses a high CPU bandwidth.&lt;/P&gt;&lt;P&gt;So, I want to know that, Is there any event type mechanism is there in the NXP RFID library so that I don't want to continuously poll the RFID card. or Do we have any provision in the discovery loop? by using that we can implement it on the event/interrupt based? Please guide us with any example If it is there.&lt;/P&gt;&lt;P&gt;It is also ok for us If&amp;nbsp;&lt;STRONG&gt;phacDiscLoop_Run()&lt;/STRONG&gt; API blocks until the card gets detect event received. that also solves our CPU Usage issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I search a lot over the internet also read lots of NXPLib related documents, but I haven't found any clue.&lt;/P&gt;&lt;P&gt;Please provide your guidance to resolve the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:13:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-discovery-loop-on-Interrupt/m-p/1276400#M8520</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2021-05-13T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: NXP discovery loop on Interrupt</title>
      <link>https://community.nxp.com/t5/NFC/NXP-discovery-loop-on-Interrupt/m-p/1281478#M8541</link>
      <description>&lt;P&gt;Hello NXP Team,&lt;/P&gt;&lt;P&gt;Please help us to resolve the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 05:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-discovery-loop-on-Interrupt/m-p/1281478#M8541</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2021-05-25T05:11:46Z</dc:date>
    </item>
  </channel>
</rss>

