<?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>S32KのトピックS32K322 LPI2C Reading</title>
    <link>https://community.nxp.com/t5/S32K/S32K322-LPI2C-Reading/m-p/2071954#M47350</link>
    <description>&lt;P&gt;I need to read 5 bytes of data from slave through I2C DMA,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I need to send the starting register address of the slave to read the data that precent inside the particular 2 byte address, So I need send the 2byte address like "Lpi2c_Ip_MasterSendData(I2C_0, address, 2, false);" here I should not give the stop condition on the I2C bus right?&lt;/P&gt;&lt;P&gt;Then I need to receive the 5 bytes of data by calling "Lpi2c_Ip_MasterReceiveData(I2C_0, rx_data, 2, true)"; but here I can generate the start condition right?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 10:14:53 GMT</pubDate>
    <dc:creator>vignesh3</dc:creator>
    <dc:date>2025-04-01T10:14:53Z</dc:date>
    <item>
      <title>S32K322 LPI2C Reading</title>
      <link>https://community.nxp.com/t5/S32K/S32K322-LPI2C-Reading/m-p/2071954#M47350</link>
      <description>&lt;P&gt;I need to read 5 bytes of data from slave through I2C DMA,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I need to send the starting register address of the slave to read the data that precent inside the particular 2 byte address, So I need send the 2byte address like "Lpi2c_Ip_MasterSendData(I2C_0, address, 2, false);" here I should not give the stop condition on the I2C bus right?&lt;/P&gt;&lt;P&gt;Then I need to receive the 5 bytes of data by calling "Lpi2c_Ip_MasterReceiveData(I2C_0, rx_data, 2, true)"; but here I can generate the start condition right?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 10:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K322-LPI2C-Reading/m-p/2071954#M47350</guid>
      <dc:creator>vignesh3</dc:creator>
      <dc:date>2025-04-01T10:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K322 LPI2C Reading</title>
      <link>https://community.nxp.com/t5/S32K/S32K322-LPI2C-Reading/m-p/2072068#M47357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;yes, your understanding is correct. &lt;SPAN&gt;Lpi2c_Ip_MasterReceiveData is generating repeated start. In function you should have 5 for byte to be read.&lt;BR /&gt;Also if using non-blocking function you should check transfer status before calling Receive function and for waiting for slave response using&amp;nbsp; Lpi2c_Ip_MasterGetTransferStatus(). Or use blocking functions. For example&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lpi2c_Ip_MasterSendDataBlocking(I2C_0, address, 2, false, timeout);&lt;BR /&gt;Lpi2c_Ip_MasterReceiveData(I2C_0, rx_data, 5, true);&lt;BR /&gt;while(((Lpi2c_Ip_MasterGetTransferStatus(I2C_0, NULL_PTR)) == LPI2C_IP_BUSY_STATUS)){};&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 13:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K322-LPI2C-Reading/m-p/2072068#M47357</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-04-01T13:11:26Z</dc:date>
    </item>
  </channel>
</rss>

