<?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 Re: Freedom Kl46Z i2c in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458872#M3304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify; text-indent: 9.0pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"&gt;These two parameters are about the slave register you wan to write.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify; text-indent: 9.0pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"&gt;“cmdBuff” is the address of the slave register , the size is the size of slave register (for example , if the register is 1byte , the here you can write 1). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify; text-indent: 9.0pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"&gt;How to configure these two parameters you need Check the Reference manual of &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MMA8451Q . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 08:48:22 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-11-06T08:48:22Z</dc:date>
    <item>
      <title>Freedom Kl46Z i2c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458871#M3303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every body,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to implement an i2c communication between the FRDM-KL46Z and the MMA8451Q accelerometer but unfortunetly I don't understand the KSDK ver 1.3 API Reference Manual (I think traditional PExpert was a lot more helpful), so I want to know somebody who can explain me the following function:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i2c_status_t I2C_DRV_MasterSendDataBlocking ( uint32_t instance, const&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i2c_device_t&amp;nbsp;&amp;nbsp; device, const uint8_t&amp;nbsp;&amp;nbsp; cmdBuff, uint32_t cmdSize, const uint8_t&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; txBuff, uint32_t txSize, uint32_t timeout_ms )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand the cmdBuff purpouse, what kind of information should be filled in? I think the txBuff already contains the bytes to be transmitted to the slave.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way this function returns a succesful flag is with cmdBuff = NULL an cmd size = 0.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another issue is that the MMA8451Q manual explain the need of a Repeated Start, and as I bealive there is no way to do that with the standar i2c API, or at least I have no idea how to do that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the KSDK API reference manual could be done a lot better by freescale.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 04:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458871#M3303</guid>
      <dc:creator>OROZO</dc:creator>
      <dc:date>2015-11-06T04:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Kl46Z i2c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458872#M3304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify; text-indent: 9.0pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"&gt;These two parameters are about the slave register you wan to write.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify; text-indent: 9.0pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"&gt;“cmdBuff” is the address of the slave register , the size is the size of slave register (for example , if the register is 1byte , the here you can write 1). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify; text-indent: 9.0pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"&gt;How to configure these two parameters you need Check the Reference manual of &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MMA8451Q . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 08:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458872#M3304</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-06T08:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Kl46Z i2c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458873#M3305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to try to implement the function again this weekend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:54:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freedom-Kl46Z-i2c/m-p/458873#M3305</guid>
      <dc:creator>OROZO</dc:creator>
      <dc:date>2015-11-06T15:54:30Z</dc:date>
    </item>
  </channel>
</rss>

