<?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>topic SPI RxData event not found in S32K344 in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/SPI-RxData-event-not-found-in-S32K344/m-p/1862532#M12264</link>
    <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;We are using S32K344 EVK board and S32 design studio 3.5.&lt;/P&gt;&lt;P&gt;We configured a simple LPSPI driver to transfer and receive the data through SPI communication.&lt;/P&gt;&lt;P&gt;The ISR has the following event checking options:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;typedef enum
{
    LPSPI_IP_EVENT_END_TRANSFER = 0, /**&amp;lt; The transfer is successfully done. */
    LPSPI_IP_EVENT_FAULT = 1         /**&amp;lt; The transfer failed due to overflow/underflow. */
} Lpspi_Ip_EventType;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevertheless, the ISR does not provide event checking for received data.&lt;/P&gt;&lt;P&gt;How can we obtain the interrupt each time a slave device sends data to us?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hareesh&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 12:42:50 GMT</pubDate>
    <dc:creator>Hareesh</dc:creator>
    <dc:date>2024-05-09T12:42:50Z</dc:date>
    <item>
      <title>SPI RxData event not found in S32K344</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/SPI-RxData-event-not-found-in-S32K344/m-p/1862532#M12264</link>
      <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;We are using S32K344 EVK board and S32 design studio 3.5.&lt;/P&gt;&lt;P&gt;We configured a simple LPSPI driver to transfer and receive the data through SPI communication.&lt;/P&gt;&lt;P&gt;The ISR has the following event checking options:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;typedef enum
{
    LPSPI_IP_EVENT_END_TRANSFER = 0, /**&amp;lt; The transfer is successfully done. */
    LPSPI_IP_EVENT_FAULT = 1         /**&amp;lt; The transfer failed due to overflow/underflow. */
} Lpspi_Ip_EventType;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevertheless, the ISR does not provide event checking for received data.&lt;/P&gt;&lt;P&gt;How can we obtain the interrupt each time a slave device sends data to us?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hareesh&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 12:42:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/SPI-RxData-event-not-found-in-S32K344/m-p/1862532#M12264</guid>
      <dc:creator>Hareesh</dc:creator>
      <dc:date>2024-05-09T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPI RxData event not found in S32K344</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/SPI-RxData-event-not-found-in-S32K344/m-p/1863315#M12265</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Hareesh,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to the discussion in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/td-p/1716314" target="_self"&gt;SPI Lpspi_Ip_AsyncTransmit not work&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;as I wrote, for async function you need to wait for end of transfer. Function just prepare transmission/reception and leave. So either you will check module status using&amp;nbsp;&lt;STRONG&gt;Lpspi_Ip_GetStatus&lt;/STRONG&gt;, it returns IDLE after transfer is finished. Or if you define &lt;STRONG&gt;callback&lt;/STRONG&gt; within Async function, this callback will be called with event &lt;STRONG&gt;LPSPI_IP_EVENT_END_TRANSFER&lt;/STRONG&gt; after transfer is done.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lpspi_Ip_AsyncTransmit SPI_Callback.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278180iCC7050660E82CAC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lpspi_Ip_AsyncTransmit SPI_Callback.png" alt="Lpspi_Ip_AsyncTransmit SPI_Callback.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the TX data are don't care, customer can use half duplex transfers. There is an api for that &lt;STRONG&gt;Lpspi_Ip_AsyncTransmitHalfDuplex&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;TransferType&lt;/EM&gt;=&lt;EM&gt;LPSPI_IP_HALF_DUPLEX_RECEIVE&lt;/EM&gt;, also examples are available in the RTD (Lpspi_Ip_HalfDuplexTransfer_S32K344).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 09:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/SPI-RxData-event-not-found-in-S32K344/m-p/1863315#M12265</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-05-10T09:09:12Z</dc:date>
    </item>
  </channel>
</rss>

